jscrambler 8.10.6 → 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,11 @@
1
1
  # jscrambler
2
2
 
3
+ ## 8.10.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [c3e93f7]: Improve glob documentation
8
+
3
9
  ## 8.10.6
4
10
 
5
11
  ### 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/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.6",
4
+ "version": "8.10.7",
5
5
  "homepage": "https://github.com/jscrambler/jscrambler",
6
6
  "author": "Jscrambler <support@jscrambler.com>",
7
7
  "repository": {