Skip to content

js: package.js and package-lock.json use different package name and version #3

@perillo

Description

@perillo

package.js declares:

{
  "name": "zig-js-glue",
  "version": "0.1.3",
}

but package-lock.json declares:

{
  "name": "zig-js-glue",
  "version": "0.1.3",
}

Additionally, when trying to install dependencies I got several warnings and npm reported 3 vulnerabilities:

$ npm install                                                                        [0]
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility

> [email protected] prepare
> parcel build


console: (node:796729) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

console: Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme

console: DeprecationWarning: 'updateBundle' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your 
transformation context instead.

console: DeprecationWarning: 'createIdentifier' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your
 transformation context instead.

console: DeprecationWarning: 'createModifier' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your 
transformation context instead.

console: DeprecationWarning: 'getMutableClone' has been deprecated since v4.0.0. Use an appropriate `factory.update...` method instead, use `setCommentRange` 
or `setSourceMapRange`, and avoid setting `parent`.

console: DeprecationWarning: 'updateQualifiedName' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by 
your transformation context instead.
✨ Built in 3.46s

dist/index.js      8.29 KB    652ms
dist/module.js     7.99 KB    835ms
dist/types.d.ts    3.42 KB    646ms

added 423 packages, and audited 424 packages in 36s

99 packages are looking for funding
  run `npm fund` for details

3 vulnerabilities (1 moderate, 1 high, 1 critical)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

Unfortunately, after running npm audit fix, the deprecated punycode package is still used.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions