regex-is-jsp 3.1.2 → 3.1.3

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
@@ -17,7 +17,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
17
17
 
18
18
  ### BREAKING CHANGES
19
19
 
20
- - programs now are in ES Modules and won't work with Common JS require()
20
+ - programs now are in ES Modules and won't work with Common JS `require()`
21
21
 
22
22
  ## 2.1.0 (2021-05-24)
23
23
 
@@ -35,7 +35,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
35
35
 
36
36
  ### Fixed
37
37
 
38
- - add testStats to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
38
+ - add `testStats` to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
39
39
 
40
40
  ## 2.0.0 (2021-01-23)
41
41
 
@@ -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.1.2
4
+ * @version 3.1.3
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.1.2";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.1.3";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.1.2
4
+ * @version 3.1.3
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
- "use strict";var regexIsJsp=(()=>{var n=Object.defineProperty;var o=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=o(e,r))||i.enumerable});return s};var l=s=>a(n({},"__esModule",{value:!0}),s);var m={};u(m,{isJSP:()=>x,version:()=>g});var p="3.1.2";var g=p;function x(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}return l(m);})();
10
+ "use strict";var regexIsJsp=(()=>{var n=Object.defineProperty;var o=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=o(e,r))||i.enumerable});return s};var l=s=>a(n({},"__esModule",{value:!0}),s);var m={};u(m,{isJSP:()=>g,version:()=>x});var p="3.1.3";var x=p;function g(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}return l(m);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "regex-is-jsp",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "Regular expression for detecting JSP (Java Server Pages) code",
5
5
  "keywords": [
6
6
  "code",
@@ -45,7 +45,7 @@
45
45
  "examples": "node '../../ops/scripts/run-examples.js'",
46
46
  "lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
47
47
  "letspublish": "yarn publish || :",
48
- "lint": "eslint . --fix",
48
+ "lint": "eslint . --ext .js --ext .ts --fix",
49
49
  "perf": "node perf/check.js",
50
50
  "prepare": "echo 'ready'",
51
51
  "prettier": "prettier",
@@ -1,11 +0,0 @@
1
- // Quick Take
2
-
3
- import { strict as assert } from "assert";
4
-
5
- import { isJSP } from "../dist/regex-is-jsp.esm.js";
6
-
7
- // detects JSP code
8
- assert.equal(isJSP().test(`<div><% out.println("Hi!"); %></div>`), true);
9
-
10
- // in case if it's not JSP
11
- assert.equal(isJSP().test(`<div>text</div>`), false);