jscrambler 9.0.0-alpha.0 → 9.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,15 +1,10 @@
1
1
  # jscrambler
2
2
 
3
- ## 9.0.0-alpha.0
3
+ ## 8.1.0
4
4
 
5
- ### Major Changes
5
+ ### Minor Changes
6
6
 
7
- - [20aa311]: Remove reference to unnecessary lib fs-extra in cli.
8
- This library was making it harder than necessary to use this package in non-node contexts, but
9
- removing it was a breaking change since it was unnecessarily exported in one of the files.
10
- Since we're doing a breaking change anyway, this is a good opportunity to get rid of it.
11
- This is only a breaking change for libraries that were importing sub-files from `jscrambler` directly.
12
- - [21f7b05]: Make CLI compatible with newer API, drop compatibility with older ones.
7
+ - [4752980]: Add the ability to instrument the app from the config file - instrument: true
13
8
 
14
9
  ## 8.0.1
15
10
 
@@ -139,6 +139,7 @@ config.inputSymbolTable = _commander.default.inputSymbolTable || config.inputSym
139
139
  config.removeProfilingData = _commander.default.removeProfilingData;
140
140
  config.skipSources = _commander.default.skipSources;
141
141
  config.debugMode = _commander.default.debugMode || config.debugMode;
142
+ config.instrument = _commander.default.instrument || config.instrument;
142
143
 
143
144
  // handle codeHardening = 0
144
145
  if (typeof _commander.default.codeHardeningThreshold === 'undefined') {
@@ -322,7 +323,7 @@ if (_commander.default.sourceMaps) {
322
323
  process.exit(1);
323
324
  }
324
325
  })();
325
- } else if (_commander.default.instrument) {
326
+ } else if (config.instrument) {
326
327
  _.default.instrumentAndDownload(_objectSpread(_objectSpread({}, clientSettings), {}, {
327
328
  applicationId,
328
329
  filesSrc,
package/dist/zip.js CHANGED
@@ -145,7 +145,7 @@ async function unzip(zipFile, dest) {
145
145
  });
146
146
  destPath = (0, _path2.join)(dest, _file);
147
147
  }
148
- await fs.outputFile(destPath, buffer);
148
+ await fs.writeFile(destPath, buffer);
149
149
  }
150
150
  }
151
151
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jscrambler",
3
3
  "description": "Jscrambler API client.",
4
- "version": "9.0.0-alpha.0",
4
+ "version": "9.0.0-alpha.1",
5
5
  "homepage": "https://github.com/jscrambler/jscrambler",
6
6
  "author": "Jscrambler <support@jscrambler.com>",
7
7
  "repository": {
@@ -17,8 +17,16 @@
17
17
  "access": "public",
18
18
  "registry": "https://registry.npmjs.org/"
19
19
  },
20
+ "scripts": {
21
+ "clean": "rm -rf ./dist",
22
+ "build": "babel src --out-dir dist",
23
+ "watch": "babel -w src --out-dir dist",
24
+ "prepublish": "npm run build",
25
+ "eslint": "eslint src/",
26
+ "eslint:fix": "eslint src/ --fix"
27
+ },
20
28
  "engines": {
21
- "node": ">= 6.10.0"
29
+ "node": ">= 12.17.0"
22
30
  },
23
31
  "dependencies": {
24
32
  "@jscrambler/https-proxy-agent": "^5.0.1",
@@ -48,7 +56,7 @@
48
56
  "dist",
49
57
  "CHANGELOG.md"
50
58
  ],
51
- "main": "dist/index.js",
59
+ "exports": "./dist/index.js",
52
60
  "bin": {
53
61
  "jscrambler": "dist/bin/jscrambler.js"
54
62
  },
@@ -59,13 +67,5 @@
59
67
  "protect",
60
68
  "js",
61
69
  "javascript"
62
- ],
63
- "scripts": {
64
- "clean": "rm -rf ./dist",
65
- "build": "babel src --out-dir dist",
66
- "watch": "babel -w src --out-dir dist",
67
- "prepublish": "npm run build",
68
- "eslint": "eslint src/",
69
- "eslint:fix": "eslint src/ --fix"
70
- }
71
- }
70
+ ]
71
+ }
package/LICENSE DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2014 Jscrambler
2
-
3
- Permission is hereby granted, free of charge, to any person
4
- obtaining a copy of this software and associated documentation
5
- files (the "Software"), to deal in the Software without
6
- restriction, including without limitation the rights to use,
7
- copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the
9
- Software is furnished to do so, subject to the following
10
- conditions:
11
-
12
- The above copyright notice and this permission notice shall be
13
- included in all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
- OTHER DEALINGS IN THE SOFTWARE.