regex-is-jsp 4.1.0 → 4.2.0

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
@@ -3,11 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## 4.1.0 (2025-10-15)
6
+ ## 4.2.0 (2026-08-19)
7
+
8
+ ### Bug Fixes
9
+
10
+ - resolve review findings REV-004 through REV-007 ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
11
+ - retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
7
12
 
8
13
  ### Features
9
14
 
10
- - if value to be added is a number, keep it as is, don't stringify ([ce3e1a5](https://github.com/codsen/codsen/commit/ce3e1a525998ca3c0abf0142affef95b14cd1990))
15
+ - add codsen-glob and migrate glob consumers ([5595a2b](https://github.com/codsen/codsen/commit/5595a2b267eaa6cb60072d037aef00b7a28edd42))
16
+ - refresh the tooling and generate with the latest dependencies ([781f802](https://github.com/codsen/codsen/commit/781f802911066a82a4533b0e5a3fcbd742d0dd83))
17
+
18
+ ### Reverts
19
+
20
+ - Revert "Merge pull request #128 from codsen/release/npm-32198404552-1" ([5baeeaa](https://github.com/codsen/codsen/commit/5baeeaaa677b86f1eaa6396cadf3aea32b06416e)), closes [#128](https://github.com/codsen/codsen/issues/128)
21
+ - Revert "Merge pull request #127 from codsen/release/npm-32194020886-1" ([5f1e94d](https://github.com/codsen/codsen/commit/5f1e94deef910ce735266b16aeee08a76de7a862)), closes [#127](https://github.com/codsen/codsen/issues/127)
11
22
 
12
23
  ## 4.0.0 (2022-12-01)
13
24
 
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright © 2010-2025 Roy Revelt and other contributors
3
+ Copyright © 2010-2026 Roy Revelt and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -32,20 +32,18 @@ npm i regex-is-jsp
32
32
  ## Quick Take
33
33
 
34
34
  ```js
35
- import { strict as assert } from "assert";
35
+ import { strict as assert } from "node:assert";
36
36
 
37
37
  import { isJSP } from "regex-is-jsp";
38
38
 
39
39
  // detects JSP code
40
40
  assert.equal(isJSP().test('<div><% out.println("Hi!"); %></div>'), true);
41
-
42
- // in case if it's not JSP
43
- assert.equal(isJSP().test("<div>text</div>"), false);
44
41
  ```
45
42
 
43
+
46
44
  ## Documentation
47
45
 
48
- Please [visit codsen.com](https://codsen.com/os/regex-is-jsp/) for a full description of the API.
46
+ Please [visit codsen.com](https://codsen.com/os/regex-is-jsp/) for a full description of the API. If you’re looking for the **Changelog**, it’s [here](https://github.com/codsen/codsen/blob/main/packages/regex-is-jsp/CHANGELOG.md).
49
47
 
50
48
  ## Contributing
51
49
 
@@ -55,6 +53,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
55
53
 
56
54
  MIT License
57
55
 
58
- Copyright © 2010-2025 Roy Revelt and other contributors
56
+ Copyright © 2010-2026 Roy Revelt and other contributors
59
57
 
60
58
  <p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @name regex-is-jsp
3
3
  * @fileoverview Regular expression for detecting JSP (Java Server Pages) code
4
- * @version 4.1.0
4
+ * @version 4.2.0
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/regex-is-jsp/}
8
8
  */
9
9
 
10
- var e="4.1.0";var n=e;function p(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}export{p as isJSP,n as version};
10
+ var e="4.2.0";var n=e;function i(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}export{i as isJSP,n as version};
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @name regex-is-jsp
3
3
  * @fileoverview Regular expression for detecting JSP (Java Server Pages) code
4
- * @version 4.1.0
4
+ * @version 4.2.0
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/regex-is-jsp/}
8
8
  */
9
9
 
10
- "use strict";var regexIsJsp=(()=>{var n=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var d=(s,e)=>{for(var r in e)n(s,r,{get:e[r],enumerable:!0})},u=(s,e,r,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of c(e))!l.call(s,t)&&t!==r&&n(s,t,{get:()=>e[t],enumerable:!(p=o(e,t))||p.enumerable});return s};var m=s=>u(n({},"__esModule",{value:!0}),s);var j={};d(j,{isJSP:()=>x,version:()=>g});var i="4.1.0";var g=i;function x(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}return m(j);})();
10
+ "use strict";var regexIsJsp=(()=>{var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var l=(s,e)=>{for(var r in e)n(s,r,{get:e[r],enumerable:!0})},m=(s,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of c(e))!d.call(s,t)&&t!==r&&n(s,t,{get:()=>e[t],enumerable:!(i=p(e,t))||i.enumerable});return s};var u=s=>m(n({},"__esModule",{value:!0}),s);var x={};l(x,{isJSP:()=>j,version:()=>g});var o="4.2.0";var g=o;function j(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}return u(x);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "regex-is-jsp",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "Regular expression for detecting JSP (Java Server Pages) code",
5
5
  "keywords": [
6
6
  "code",
@@ -38,41 +38,40 @@
38
38
  },
39
39
  "types": "types/index.d.ts",
40
40
  "scripts": {
41
- "build": "node '../../ops/scripts/esbuild.js' && npm run dts",
42
- "cjs-off": "exit 0",
43
- "cjs-on": "exit 0",
44
- "dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
41
+ "build": "node ../../ops/scripts/esbuild.js && npm run dts",
42
+ "coverage": "c8 uvu test",
43
+ "dev": "node ../../ops/scripts/esbuild.js --dev && npm run dts",
45
44
  "devtest": "c8 npm run unit && npm run examples && npm run lint",
46
- "dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --log-level 'silent'",
45
+ "dts": "rollup -c && biome format --write --config-path=../../biome.json --vcs-enabled=false --use-editorconfig=false types/index.d.ts",
47
46
  "examples": "node '../../ops/scripts/run-examples.js'",
48
- "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
49
- "letspublish": "npm publish --provenance || :",
50
- "lint": "eslint . --fix --concurrency=auto --cache",
47
+ "lect": "node '../../ops/lect/lect.js'",
48
+ "lect:check": "node '../../ops/lect/lect.js' --check",
49
+ "lint": "biome lint --error-on-warnings . && npm run typecheck",
50
+ "lint:fix": "biome lint --write --error-on-warnings . && npm run typecheck",
51
51
  "perf": "node perf/check.js",
52
52
  "prep": "echo 'ready'",
53
- "prettier": "prettier",
54
- "prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --log-level 'silent'",
55
- "pretest": "npm run lect && npm run build",
53
+ "prettier": "biome format",
54
+ "prettier:format": "biome format --write .",
55
+ "pretest": "npm run lect:check && npm run build",
56
56
  "test": "npm run devtest",
57
+ "typecheck": "tsc --noEmit --pretty false --project tsconfig.json",
57
58
  "unit": "uvu test"
58
59
  },
59
- "engines": {
60
- "node": ">=14.18.0"
61
- },
62
60
  "c8": {
61
+ "all": true,
63
62
  "check-coverage": true,
64
- "exclude": [
65
- "**/test/**/*.*"
66
- ],
63
+ "exclude": ["**/test/**/*.*"],
64
+ "include": ["dist/*.esm.js"],
67
65
  "lines": 100
68
66
  },
69
67
  "lect": {
70
68
  "licence": {
71
- "extras": [
72
- ""
73
- ]
69
+ "extras": [""]
74
70
  }
75
71
  },
72
+ "engines": {
73
+ "node": ">=18.20.8"
74
+ },
76
75
  "publishConfig": {
77
76
  "registry": "https://registry.npmjs.org/"
78
77
  }
package/.eslintcache DELETED
@@ -1 +0,0 @@
1
- [{"/home/runner/work/codsen/codsen/packages/regex-is-jsp/examples/_quickTake.js":"1","/home/runner/work/codsen/codsen/packages/regex-is-jsp/perf/check.js":"2","/home/runner/work/codsen/codsen/packages/regex-is-jsp/rollup.config.js":"3","/home/runner/work/codsen/codsen/packages/regex-is-jsp/src/main.ts":"4","/home/runner/work/codsen/codsen/packages/regex-is-jsp/test/test.js":"5"},{"size":289,"mtime":1760566739134,"results":"6","hashOfConfig":"7"},{"size":251,"mtime":1760566739134,"results":"8","hashOfConfig":"9"},{"size":373,"mtime":1760566739134,"results":"10","hashOfConfig":"7"},{"size":189,"mtime":1760566739134,"results":"11","hashOfConfig":"9"},{"size":2525,"mtime":1760566739134,"results":"12","hashOfConfig":"13"},{"filePath":"14","messages":"15","suppressedMessages":"16","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1nlhngw",{"filePath":"17","messages":"18","suppressedMessages":"19","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1xjytlu",{"filePath":"20","messages":"21","suppressedMessages":"22","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"23","messages":"24","suppressedMessages":"25","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","suppressedMessages":"28","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"nrihsz","/home/runner/work/codsen/codsen/packages/regex-is-jsp/examples/_quickTake.js",[],[],"/home/runner/work/codsen/codsen/packages/regex-is-jsp/perf/check.js",[],[],"/home/runner/work/codsen/codsen/packages/regex-is-jsp/rollup.config.js",[],[],"/home/runner/work/codsen/codsen/packages/regex-is-jsp/src/main.ts",[],[],"/home/runner/work/codsen/codsen/packages/regex-is-jsp/test/test.js",[],["29","30","31","32","33"],{"ruleId":"34","severity":2,"message":"35","line":3,"column":10,"nodeType":null,"messageId":"36","endLine":3,"endColumn":15,"suppressions":"37"},{"ruleId":"34","severity":2,"message":"38","line":3,"column":17,"nodeType":null,"messageId":"36","endLine":3,"endColumn":19,"suppressions":"39"},{"ruleId":"34","severity":2,"message":"40","line":3,"column":21,"nodeType":null,"messageId":"36","endLine":3,"endColumn":23,"suppressions":"41"},{"ruleId":"34","severity":2,"message":"42","line":3,"column":25,"nodeType":null,"messageId":"36","endLine":3,"endColumn":31,"suppressions":"43"},{"ruleId":"34","severity":2,"message":"44","line":3,"column":33,"nodeType":null,"messageId":"36","endLine":3,"endColumn":37,"suppressions":"45"},"@typescript-eslint/no-unused-vars","'equal' is defined but never used.","unusedVar",["46"],"'is' is defined but never used.",["47"],"'ok' is defined but never used.",["48"],"'throws' is defined but never used.",["49"],"'type' is defined but never used.",["50"],{"kind":"51","justification":"52"},{"kind":"51","justification":"52"},{"kind":"51","justification":"52"},{"kind":"51","justification":"52"},{"kind":"51","justification":"52"},"directive",""]