regex-is-jsp 3.0.7 → 3.0.10
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/README.md +4 -1
- package/dist/regex-is-jsp.esm.js +2 -9
- package/dist/regex-is-jsp.umd.js +2 -2
- package/examples/_quickTake.js +1 -0
- package/package.json +21 -76
- package/types/index.d.ts +0 -0
- package/examples/api.json +0 -1
package/README.md
CHANGED
|
@@ -38,6 +38,7 @@ If you need a legacy version which works with `require`, use version 2.1.0
|
|
|
38
38
|
|
|
39
39
|
```js
|
|
40
40
|
import { strict as assert } from "assert";
|
|
41
|
+
|
|
41
42
|
import { isJSP } from "regex-is-jsp";
|
|
42
43
|
|
|
43
44
|
// detects JSP code
|
|
@@ -49,7 +50,7 @@ assert.equal(isJSP().test(`<div>tralala</div>`), false);
|
|
|
49
50
|
|
|
50
51
|
## Documentation
|
|
51
52
|
|
|
52
|
-
Please [visit codsen.com](https://codsen.com/os/regex-is-jsp/) for a full description of the API
|
|
53
|
+
Please [visit codsen.com](https://codsen.com/os/regex-is-jsp/) for a full description of the API.
|
|
53
54
|
|
|
54
55
|
## Contributing
|
|
55
56
|
|
|
@@ -61,4 +62,6 @@ MIT License
|
|
|
61
62
|
|
|
62
63
|
Copyright (c) 2010-2021 Roy Revelt and other contributors
|
|
63
64
|
|
|
65
|
+
|
|
64
66
|
<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">
|
|
67
|
+
|
package/dist/regex-is-jsp.esm.js
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name regex-is-jsp
|
|
3
3
|
* @fileoverview Regular expression for detecting JSP (Java Server Pages) code
|
|
4
|
-
* @version 3.0.
|
|
4
|
+
* @version 3.0.10
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/regex-is-jsp/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
const version = version$1;
|
|
13
|
-
function isJSP() {
|
|
14
|
-
return /<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { isJSP, version };
|
|
10
|
+
var e="3.0.10";var n=e;function i(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}export{i as isJSP,n as version};
|
package/dist/regex-is-jsp.umd.js
CHANGED
|
@@ -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 3.0.
|
|
4
|
+
* @version 3.0.10
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/regex-is-jsp/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
var regexIsJsp=(()=>{var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var l=s=>n(s,"__esModule",{value:!0});var u=(s,e)=>{for(var r in e)n(s,r,{get:e[r],enumerable:!0})},a=(s,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of c(e))!d.call(s,t)&&(r||t!=="default")&&n(s,t,{get:()=>e[t],enumerable:!(i=p(e,t))||i.enumerable});return s};var g=(s=>(e,r)=>s&&s.get(e)||(r=a(l({}),e,1),s&&s.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var j={};u(j,{isJSP:()=>m,version:()=>y});var o="3.0.10";var y=o;function m(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}return g(j);})();
|
package/examples/_quickTake.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "regex-is-jsp",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"description": "Regular expression for detecting JSP (Java Server Pages) code",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code",
|
|
@@ -37,89 +37,34 @@
|
|
|
37
37
|
},
|
|
38
38
|
"types": "types/index.d.ts",
|
|
39
39
|
"scripts": {
|
|
40
|
-
"build": "
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"republish": "npm publish || :",
|
|
53
|
-
"tap": "tap",
|
|
54
|
-
"pretest": "npm run build",
|
|
55
|
-
"test": "npm run test:ci && npm run perf",
|
|
56
|
-
"test:ci": "npm run unittest && npm run test:examples && npm run format",
|
|
57
|
-
"test:examples": "../../scripts/test-examples.js && npm run lect && npm run prettier",
|
|
58
|
-
"tsc": "tsc",
|
|
59
|
-
"unittest": "tap --no-only --reporter=terse && tsc -p tsconfig.json --noEmit"
|
|
40
|
+
"build": "node '../../ops/scripts/esbuild.js' && yarn run dts",
|
|
41
|
+
"dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts",
|
|
42
|
+
"dts": "rollup -c",
|
|
43
|
+
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
44
|
+
"lect": "node '../../ops/lect/lect.js'",
|
|
45
|
+
"letspublish": "yarn publish || :",
|
|
46
|
+
"lint": "eslint . --fix",
|
|
47
|
+
"perf": "node perf/check.js",
|
|
48
|
+
"prepare": "echo 'ready'",
|
|
49
|
+
"pretest": "yarn run lect && yarn run build",
|
|
50
|
+
"test": "c8 yarn run unit && yarn run examples && yarn run lint",
|
|
51
|
+
"unit": "uvu test"
|
|
60
52
|
},
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
55
|
+
},
|
|
56
|
+
"c8": {
|
|
57
|
+
"check-coverage": true,
|
|
58
|
+
"exclude": [
|
|
59
|
+
"**/test/**/*.*"
|
|
67
60
|
],
|
|
68
|
-
"
|
|
61
|
+
"lines": 100
|
|
69
62
|
},
|
|
70
63
|
"lect": {
|
|
71
64
|
"licence": {
|
|
72
65
|
"extras": [
|
|
73
66
|
""
|
|
74
67
|
]
|
|
75
|
-
},
|
|
76
|
-
"req": "{ isJSP }",
|
|
77
|
-
"various": {
|
|
78
|
-
"devDependencies": []
|
|
79
68
|
}
|
|
80
|
-
},
|
|
81
|
-
"dependencies": {
|
|
82
|
-
"@babel/runtime": "^7.16.3"
|
|
83
|
-
},
|
|
84
|
-
"devDependencies": {
|
|
85
|
-
"@babel/cli": "^7.16.0",
|
|
86
|
-
"@babel/core": "^7.16.0",
|
|
87
|
-
"@babel/node": "^7.16.0",
|
|
88
|
-
"@babel/plugin-external-helpers": "^7.16.0",
|
|
89
|
-
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
90
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
|
|
91
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.16.0",
|
|
92
|
-
"@babel/plugin-proposal-optional-chaining": "^7.16.0",
|
|
93
|
-
"@babel/plugin-transform-runtime": "^7.16.4",
|
|
94
|
-
"@babel/preset-env": "^7.16.4",
|
|
95
|
-
"@babel/preset-typescript": "^7.16.0",
|
|
96
|
-
"@babel/register": "^7.16.0",
|
|
97
|
-
"@istanbuljs/esm-loader-hook": "^0.1.2",
|
|
98
|
-
"@rollup/plugin-babel": "^5.3.0",
|
|
99
|
-
"@rollup/plugin-commonjs": "^21.0.1",
|
|
100
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
101
|
-
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
102
|
-
"@rollup/plugin-strip": "^2.1.0",
|
|
103
|
-
"@rollup/plugin-typescript": "^8.3.0",
|
|
104
|
-
"@types/node": "^16.11.10",
|
|
105
|
-
"@types/tap": "^15.0.5",
|
|
106
|
-
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
107
|
-
"@typescript-eslint/parser": "^5.5.0",
|
|
108
|
-
"core-js": "^3.19.2",
|
|
109
|
-
"cross-env": "^7.0.3",
|
|
110
|
-
"eslint": "^8.3.0",
|
|
111
|
-
"lect": "^0.18.7",
|
|
112
|
-
"rollup": "^2.60.1",
|
|
113
|
-
"rollup-plugin-ascii": "^0.0.3",
|
|
114
|
-
"rollup-plugin-banner": "^0.2.1",
|
|
115
|
-
"rollup-plugin-cleanup": "^3.2.1",
|
|
116
|
-
"rollup-plugin-dts": "^4.0.1",
|
|
117
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
118
|
-
"tap": "^15.1.5",
|
|
119
|
-
"tslib": "^2.3.1",
|
|
120
|
-
"typescript": "^4.5.2"
|
|
121
|
-
},
|
|
122
|
-
"engines": {
|
|
123
|
-
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
124
69
|
}
|
|
125
70
|
}
|
package/types/index.d.ts
CHANGED
|
File without changes
|
package/examples/api.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"_quickTake.js":{"title":"Quick Take","content":"import { strict as assert } from \"assert\";\nimport { isJSP } from \"regex-is-jsp\";\n\n// detects JSP code\nassert.equal(isJSP().test(`<div><% out.println(\"Hi!\"); %></div>`), true);\n\n// in case if it's not nunjucks\nassert.equal(isJSP().test(`<div>tralala</div>`), false);"}}
|