regex-is-jsp 3.0.10 → 3.0.13

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2010-2021 Roy Revelt and other contributors
3
+ Copyright (c) 2010-2022 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
@@ -26,14 +26,12 @@
26
26
 
27
27
  ## Install
28
28
 
29
- This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required:
29
+ This package is [pure ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). If you're not ready yet, install an older version of this program, 2.1.0 (`npm i regex-is-jsp@2.1.0`).
30
30
 
31
31
  ```bash
32
32
  npm i regex-is-jsp
33
33
  ```
34
34
 
35
- If you need a legacy version which works with `require`, use version 2.1.0
36
-
37
35
  ## Quick Take
38
36
 
39
37
  ```js
@@ -60,8 +58,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
60
58
 
61
59
  MIT License
62
60
 
63
- Copyright (c) 2010-2021 Roy Revelt and other contributors
64
-
61
+ Copyright (c) 2010-2022 Roy Revelt and other contributors
65
62
 
66
63
  <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
-
@@ -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.10
4
+ * @version 3.0.13
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 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};
10
+ var e="3.0.13";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 3.0.10
4
+ * @version 3.0.13
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 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);})();
10
+ var regexIsJsp=(()=>{var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var u=(s,e)=>{for(var t in e)n(s,t,{get:e[t],enumerable:!0})},a=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!d.call(s,r)&&r!==t&&n(s,r,{get:()=>e[r],enumerable:!(i=p(e,r))||i.enumerable});return s};var l=s=>a(n({},"__esModule",{value:!0}),s);var x={};u(x,{isJSP:()=>m,version:()=>y});var o="3.0.13";var y=o;function m(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}return l(x);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "regex-is-jsp",
3
- "version": "3.0.10",
3
+ "version": "3.0.13",
4
4
  "description": "Regular expression for detecting JSP (Java Server Pages) code",
5
5
  "keywords": [
6
6
  "code",
@@ -39,15 +39,18 @@
39
39
  "scripts": {
40
40
  "build": "node '../../ops/scripts/esbuild.js' && yarn run dts",
41
41
  "dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts",
42
- "dts": "rollup -c",
42
+ "devtest": "c8 yarn run unit && yarn run examples && yarn run lint",
43
+ "dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write",
43
44
  "examples": "node '../../ops/scripts/run-examples.js'",
44
- "lect": "node '../../ops/lect/lect.js'",
45
+ "lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
45
46
  "letspublish": "yarn publish || :",
46
47
  "lint": "eslint . --fix",
47
48
  "perf": "node perf/check.js",
48
49
  "prepare": "echo 'ready'",
50
+ "prettier": "prettier",
51
+ "prettier:format": "prettier --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern",
49
52
  "pretest": "yarn run lect && yarn run build",
50
- "test": "c8 yarn run unit && yarn run examples && yarn run lint",
53
+ "test": "yarn run devtest",
51
54
  "unit": "uvu test"
52
55
  },
53
56
  "engines": {