Comparing version 1.2.4 to 1.2.5
@@ -9,3 +9,3 @@ var assert = require("assert"); | ||
? source | ||
: acorn.parse(source, { ecmaVersion: 2019 }); | ||
: acorn.parse(source, { ecmaVersion: 2021 }); | ||
if (opts && opts.source) { | ||
@@ -12,0 +12,0 @@ source = opts.source; |
{ | ||
"name": "dpacker", | ||
"version": "1.2.04", | ||
"version": "1.2.5", | ||
"main": "dist/index.js", | ||
@@ -18,3 +18,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"acorn": "^8.7.0", | ||
"acorn": "^8.8.0", | ||
"assert": "^2.0.0", | ||
@@ -21,0 +21,0 @@ "astring": "^1.8.1", |
@@ -15,3 +15,3 @@ # DPacker | ||
```shell | ||
npx dpacker -i ./assetsfolder [-b] [-d] | ||
npx dpacker ./assets-canary [-b] [-d] | ||
``` | ||
@@ -31,1 +31,9 @@ | ||
| --help | -h | | Show the help menu | | ||
## Flags: | ||
`-b` is optional, and will auto-beautify the JS files as they're written. | ||
`-d` is optional, and will write duplicate files if they share the ID. (By default, it ignores duplicate files as there's usually not any difference) | ||
The files will be written into an `out` folder :) |
@@ -115,5 +115,3 @@ import fs from "fs"; | ||
if (!options.input) { | ||
console.error( | ||
"No input directory specified. Try running with `--help` for command usage." | ||
); | ||
console.error("No input directory specified. Try running with `--help` for command usage."); | ||
process.exit(1); | ||
@@ -120,0 +118,0 @@ } |
@@ -15,3 +15,3 @@ // webpack-unpack | ||
? source | ||
: acorn.parse(source, { ecmaVersion: 2019 }); | ||
: acorn.parse(source, { ecmaVersion: 2021 }); | ||
@@ -18,0 +18,0 @@ if (opts && opts.source) { |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
29524
38
0
806
Updatedacorn@^8.8.0