@jslint-org/jslint 2024.3.26 → 2024.6.28

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
@@ -7,6 +7,10 @@
7
7
  - jslint - add new warning requiring paren around plus-separated concatenations.
8
8
  - jslint - try to improve parser to be able to parse jquery.js without stopping.
9
9
 
10
+ # v2024.6.28
11
+ - coverage - Fix coverage-function v8CoverageReportCreate() throwing error EINVAL in latest nodejs-security-patch, when running win32-coverage with npm.cmd.
12
+ - jslint - Remove unnecessary shell-function shCurlExe().
13
+
10
14
  # v2024.3.26
11
15
  - ci - Add shell-functions shGitPullrequestCleanup(), shGitPullrequest() to automatically cleanup or create-and-push github-pull-commit to origin/alpha.
12
16
  - jslint - Allow destructuring-assignment after function-definition.
package/README.md CHANGED
@@ -3,7 +3,7 @@ Douglas Crockford <douglas@crockford.com>
3
3
 
4
4
 
5
5
  # Status
6
- | Branch | [master<br>(v2024.3.26)](https://github.com/jslint-org/jslint/tree/master) | [beta<br>(Web Demo)](https://github.com/jslint-org/jslint/tree/beta) | [alpha<br>(Development)](https://github.com/jslint-org/jslint/tree/alpha) |
6
+ | Branch | [master<br>(v2024.6.28)](https://github.com/jslint-org/jslint/tree/master) | [beta<br>(Web Demo)](https://github.com/jslint-org/jslint/tree/beta) | [alpha<br>(Development)](https://github.com/jslint-org/jslint/tree/alpha) |
7
7
  |--:|:--:|:--:|:--:|
8
8
  | CI | [![ci](https://github.com/jslint-org/jslint/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jslint-org/jslint/actions?query=branch%3Amaster) | [![ci](https://github.com/jslint-org/jslint/actions/workflows/ci.yml/badge.svg?branch=beta)](https://github.com/jslint-org/jslint/actions?query=branch%3Abeta) | [![ci](https://github.com/jslint-org/jslint/actions/workflows/ci.yml/badge.svg?branch=alpha)](https://github.com/jslint-org/jslint/actions?query=branch%3Aalpha) |
9
9
  | Coverage | [![coverage](https://jslint-org.github.io/jslint/branch-master/.artifact/coverage/coverage_badge.svg)](https://jslint-org.github.io/jslint/branch-master/.artifact/coverage/index.html) | [![coverage](https://jslint-org.github.io/jslint/branch-beta/.artifact/coverage/coverage_badge.svg)](https://jslint-org.github.io/jslint/branch-beta/.artifact/coverage/index.html) | [![coverage](https://jslint-org.github.io/jslint/branch-alpha/.artifact/coverage/coverage_badge.svg)](https://jslint-org.github.io/jslint/branch-alpha/.artifact/coverage/index.html) |
@@ -917,13 +917,13 @@ eval("1"); //jslint-ignore-line
917
917
  <br><br>
918
918
  ### pull-request merge
919
919
  - find highest issue-number at https://github.com/jslint-org/jslint/issues/, https://github.com/jslint-org/jslint/pulls/, and add +1 to it for PR-xxx
920
- - $ `shGitPullrequest beta beta`
920
+ - `shGitPullrequest beta beta`
921
921
  - verify ci-success for origin-branch-alpha
922
- - https://github.com/kaizhu256/jslint/actions/workflows/ci.yml
923
- - $ `git push upstream alpha -f`
922
+ - https://github.com/kaizhu256/jslint/actions
923
+ - `git push upstream alpha -f`
924
924
  - verify ci-success for upstream-branch-alpha
925
- - https://github.com/jslint-org/jslint/actions/workflows/ci.yml
926
- - goto https://github.com/jslint-org/jslint/compare/beta...kaizhu256:jslint:branch-p2024.3.21
925
+ - https://github.com/jslint-org/jslint/actions
926
+ - goto https://github.com/jslint-org/jslint/compare/beta...kaizhu256:jslint:branch-p2024.6.23
927
927
  - click `Create pull request`
928
928
  - input `Add your description here...` with:
929
929
  ```
@@ -945,25 +945,25 @@ this PR will additionally:
945
945
  - wait awhile before continuing ...
946
946
  - click `Rebase and merge`
947
947
  - verify ci-success for upstream-branch-beta
948
- - https://github.com/jslint-org/jslint/actions/workflows/ci.yml
949
- - $ `shGitPullrequestCleanup`
948
+ - https://github.com/jslint-org/jslint/actions
949
+ - `shGitPullrequestCleanup`
950
950
  - verify ci-success for origin-branch-alpha
951
- - https://github.com/kaizhu256/jslint/actions/workflows/ci.yml
952
- - $ `git push upstream alpha -f`
951
+ - https://github.com/kaizhu256/jslint/actions
952
+ - `git push upstream alpha -f`
953
953
  - verify ci-success for upstream-branch-alpha
954
- - https://github.com/jslint-org/jslint/actions/workflows/ci.yml
954
+ - https://github.com/jslint-org/jslint/actions
955
955
  - click `Delete branch`
956
956
 
957
957
 
958
958
  <br><br>
959
959
  ### branch-master commit
960
- - $ `shGitPullrequest master beta`
960
+ - `shGitPullrequest master beta`
961
961
  - verify ci-success for origin-branch-alpha
962
- - https://github.com/kaizhu256/jslint/actions/workflows/ci.yml
963
- - $ `git push upstream alpha -f`
962
+ - https://github.com/kaizhu256/jslint/actions
963
+ - `git push upstream alpha -f`
964
964
  - verify ci-success for upstream-branch-alpha
965
- - https://github.com/jslint-org/jslint/actions/workflows/ci.yml
966
- - goto https://github.com/jslint-org/jslint/compare/beta...kaizhu256:jslint:branch-v2024.3.26
965
+ - https://github.com/jslint-org/jslint/actions
966
+ - goto https://github.com/jslint-org/jslint/compare/beta...kaizhu256:jslint:branch-v2024.6.28
967
967
  - click `Create pull request`
968
968
  - input `Add a title` with: `# v20yy.mm.dd`
969
969
  - input `Add a description` with:
@@ -978,27 +978,27 @@ this PR will additionally:
978
978
  - wait awhile before continuing ...
979
979
  - click `Rebase and merge`
980
980
  - verify ci-success for upstream-branch-beta
981
- - https://github.com/jslint-org/jslint/actions/workflows/ci.yml
982
- - $ `shGitPullrequestCleanup`
981
+ - https://github.com/jslint-org/jslint/actions
982
+ - `shGitPullrequestCleanup`
983
983
  - verify ci-success for origin-branch-alpha
984
- - https://github.com/kaizhu256/jslint/actions/workflows/ci.yml
985
- - $ `git push upstream alpha -f`
984
+ - https://github.com/kaizhu256/jslint/actions
985
+ - `git push upstream alpha -f`
986
986
  - verify ci-success for upstream-branch-alpha
987
- - https://github.com/jslint-org/jslint/actions/workflows/ci.yml
987
+ - https://github.com/jslint-org/jslint/actions
988
988
  - click `Delete branch`
989
- - $ `git push origin beta:master`
989
+ - `git push origin beta:master`
990
990
  - verify ci-success for origin-branch-master
991
- - https://github.com/kaizhu256/jslint/actions/workflows/ci.yml
992
- - $ `git push upstream beta:master`
991
+ - https://github.com/kaizhu256/jslint/actions
992
+ - `git push upstream beta:master`
993
993
  - verify ci-success for upstream-branch-master
994
- - https://github.com/jslint-org/jslint/actions/workflows/ci.yml
994
+ - https://github.com/jslint-org/jslint/actions
995
995
 
996
996
 
997
997
  <br><br>
998
998
  ### branch-master publish
999
- - $ `git push upstream beta:master`
999
+ - `git push upstream beta:master`
1000
1000
  - verify ci-success for upstream-branch-master
1001
- - https://github.com/jslint-org/jslint/actions/workflows/ci.yml
1001
+ - https://github.com/jslint-org/jslint/actions
1002
1002
  - goto https://github.com/jslint-org/jslint/releases/new
1003
1003
  - input `Choose a tag` with: `v20yy.mm.dd`
1004
1004
  - click `Create new tag: v20yy.mm.dd on publish`
@@ -1016,7 +1016,7 @@ this PR will additionally:
1016
1016
  - click `Preview` and review
1017
1017
  - click `Publish release`
1018
1018
  - verify ci-success for upstream-branch-publish
1019
- - https://github.com/jslint-org/jslint/actions/workflows/ci.yml
1019
+ - https://github.com/jslint-org/jslint/actions
1020
1020
  - verify email-notification `Successfully published @jslint-org/jslint@20yy.mm.dd`
1021
1021
 
1022
1022
 
@@ -1024,10 +1024,10 @@ this PR will additionally:
1024
1024
  ### vscode-jslint publish
1025
1025
  - goto https://github.com/jslint-org/jslint/tree/gh-pages/branch-beta/.artifact/jslint_wrapper_vscode
1026
1026
  - click `vscode-jslint-20yy.mm.dd.vsix`
1027
- - click `Download`
1027
+ - click `Raw` to download
1028
1028
  - goto https://marketplace.visualstudio.com/manage/publishers/jslint
1029
1029
  - right-click `Update`
1030
- - drag-and-drop downloaded `vscode-jslint-20yy.mm.dd.vsix`
1030
+ - upload downloaded file `vscode-jslint-20yy.mm.dd.vsix`
1031
1031
  - click 'Upload'
1032
1032
  - verify email-notification `[Succeeded] Extension publish on Visual Studio Marketplace - vscode-jslint`
1033
1033
 
package/jslint.mjs CHANGED
@@ -125,8 +125,8 @@
125
125
  process_env, process_exit, promises, property, property_dict, push, quote,
126
126
  ranges, readFile, readdir, readonly, recursive, reduce, repeat, replace,
127
127
  resolve, result, reverse, role, round, scriptId, search, set, shebang,
128
- shift, signature, single, slice, some, sort, source, spawn, splice, split,
129
- stack, stack_trace, start, startOffset, startsWith, statement,
128
+ shell, shift, signature, single, slice, some, sort, source, spawn, splice,
129
+ split, stack, stack_trace, start, startOffset, startsWith, statement,
130
130
  statement_prv, stdio, stop, stop_at, stringify, subscript, switch,
131
131
  syntax_dict, tenure, test, test_cause, test_internal_error, this, thru,
132
132
  toLocaleString, toString, token, token_global, token_list, token_nxt,
@@ -163,7 +163,7 @@ let jslint_charset_ascii = (
163
163
  + "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"
164
164
  + "`abcdefghijklmnopqrstuvwxyz{|}~\u007f"
165
165
  );
166
- let jslint_edition = "v2024.3.26";
166
+ let jslint_edition = "v2024.6.28";
167
167
  let jslint_export; // The jslint object to be exported.
168
168
  let jslint_fudge = 1; // Fudge starting line and starting
169
169
  // ... column to 1.
@@ -11285,24 +11285,37 @@ function sentinel() {}
11285
11285
  }
11286
11286
  }));
11287
11287
  exitCode = await new Promise(function (resolve) {
11288
- moduleChildProcess.spawn(
11289
- (
11290
- processArgv[0] === "npm"
11288
+ let processArgv0 = processArgv[0];
11291
11289
 
11292
11290
  // If win32 environment, then replace program npm with npm.cmd.
11293
11291
  // Coverage-hack - Ugly-hack to get test-coverage under both win32 and linux.
11294
11292
 
11295
- ? process.platform.replace("win32", "npm.cmd").replace(
11296
- process.platform,
11297
- "npm"
11298
- )
11299
- : processArgv[0]
11300
- ),
11293
+ if (processArgv0 === "npm") {
11294
+ processArgv0 = process.platform.replace(
11295
+ "win32",
11296
+ "npm.cmd"
11297
+ ).replace(
11298
+ process.platform,
11299
+ "npm"
11300
+ );
11301
+ }
11302
+ moduleChildProcess.spawn(
11303
+ processArgv0,
11301
11304
  processArgv.slice(1),
11302
11305
  {
11303
11306
  env: Object.assign({}, process.env, {
11304
11307
  NODE_V8_COVERAGE: coverageDir
11305
11308
  }),
11309
+
11310
+ // PR-465
11311
+ // https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2
11312
+ // Node.js will now error with EINVAL if a .bat or .cmd file is passed to
11313
+ // child_process.spawn and child_process.spawnSync without the shell option set.
11314
+
11315
+ shell: (
11316
+ processArgv0.endsWith(".bat")
11317
+ || processArgv0.endsWith(".cmd")
11318
+ ),
11306
11319
  stdio: ["ignore", 1, 2]
11307
11320
  }
11308
11321
  ).on("exit", resolve);
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "shCiArtifactUpload": 1,
36
36
  "shCiPublishNpm": 1,
37
37
  "type": "module",
38
- "version": "2024.3.26"
38
+ "version": "2024.6.28"
39
39
  }