jscrambler 8.10.5 → 8.10.7

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,5 +1,17 @@
1
1
  # jscrambler
2
2
 
3
+ ## 8.10.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [c3e93f7]: Improve glob documentation
8
+
9
+ ## 8.10.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [0260a92]: Add warning message for the misuse of the output-symbol-table flag
14
+
3
15
  ## 8.10.5
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -15,7 +15,7 @@ If you're looking to gain control over third-party tags and achieve PCI DSS comp
15
15
  - [Required Fields](#required-fields)
16
16
  - [Output to a single file](#output-to-a-single-file)
17
17
  - [Output multiple files to a directory](#output-multiple-files-to-a-directory)
18
- - [Using minimatch](#using-minimatch)
18
+ - [Using glob patterns](#using-minimatch)
19
19
  - [Using configuration file](#using-configuration-file)
20
20
  - [Options](#options)
21
21
  - [Current working directory (--cwd)](#current-working-directory---cwd)
@@ -163,11 +163,23 @@ jscrambler -a _YOUR_ACCESS_KEY_ -s _YOUR_SECRET_KEY_ -i _YOUR_APPLICATION_ID_ -o
163
163
  jscrambler -a _YOUR_ACCESS_KEY_ -s _YOUR_SECRET_KEY_ -i _YOUR_APPLICATION_ID_ -o output/ input1.js input2.js
164
164
  ```
165
165
 
166
- ### Using minimatch
166
+ ### Using glob patterns
167
+
168
+ > Important: You should always enclose your glob patterns in quotes, otherwise the shell will prematurely expand the glob.
169
+
167
170
  ```bash
168
171
  jscrambler -a _YOUR_ACCESS_KEY_ -s _YOUR_SECRET_KEY_ -i _YOUR_APPLICATION_ID_ -o output/ "lib/**/*.js"
169
172
  ```
170
173
 
174
+ Some useful examples:
175
+ - `lib/**/*.js`: Matches all `.js` files in `lib` and all its subdirectories.
176
+ - `lib/**/priv_key.js`: Matches all `pri_key.js` files in `lib` and all its subdirectories.
177
+ - `scripts/*.js`: Matches all `.js` files in the `scripts` directory.
178
+ - `src/**/*.{js,html}`: Matches all `.js` and `.html` files in `src` and all its subdirectories.
179
+ - `!(node_modules)/**`: Excludes `node_modules` directory.
180
+
181
+ For additional patterns, [click here](https://github.com/isaacs/node-glob#glob-primer).
182
+
171
183
  ### Using configuration file
172
184
  ```bash
173
185
  jscrambler -c config.json
package/dist/index.js CHANGED
@@ -801,6 +801,7 @@ var _default = exports.default = {
801
801
  try {
802
802
  download = await this.downloadSymbolTableRequest(client, protectionId);
803
803
  } catch (e) {
804
+ console.warn('[Warning] The symbol table can only be output if you have Identifiers Renaming on UNSAFE mode or an includeList with global or public identifiers.');
804
805
  errorHandler(e);
805
806
  }
806
807
  if (typeof destCallback === 'function') {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jscrambler",
3
3
  "description": "Jscrambler Code Integrity API client.",
4
- "version": "8.10.5",
4
+ "version": "8.10.7",
5
5
  "homepage": "https://github.com/jscrambler/jscrambler",
6
6
  "author": "Jscrambler <support@jscrambler.com>",
7
7
  "repository": {