regex-is-jsp 3.0.13 → 3.1.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,6 +3,12 @@
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
+ # 3.1.0 (2022-08-12)
7
+
8
+ ### Features
9
+
10
+ - export types ([11b5fb9](https://github.com/codsen/codsen/commit/11b5fb936ce20e0a77c3a09806773e1cd7695c50))
11
+
6
12
  ## 3.0.0 (2021-09-09)
7
13
 
8
14
  ### Features
package/README.md CHANGED
@@ -42,8 +42,8 @@ import { isJSP } from "regex-is-jsp";
42
42
  // detects JSP code
43
43
  assert.equal(isJSP().test(`<div><% out.println("Hi!"); %></div>`), true);
44
44
 
45
- // in case if it's not nunjucks
46
- assert.equal(isJSP().test(`<div>tralala</div>`), false);
45
+ // in case if it's not JSP
46
+ assert.equal(isJSP().test(`<div>text</div>`), false);
47
47
  ```
48
48
 
49
49
  ## Documentation
@@ -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.13
4
+ * @version 3.1.0
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.13";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.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
+ "use strict";/**
2
2
  * @name regex-is-jsp
3
3
  * @fileoverview Regular expression for detecting JSP (Java Server Pages) code
4
- * @version 3.0.13
4
+ * @version 3.1.0
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 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);})();
10
+ 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.0";var g=p;function x(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}return l(m);})();
@@ -7,5 +7,5 @@ import { isJSP } from "../dist/regex-is-jsp.esm.js";
7
7
  // detects JSP code
8
8
  assert.equal(isJSP().test(`<div><% out.println("Hi!"); %></div>`), true);
9
9
 
10
- // in case if it's not nunjucks
11
- assert.equal(isJSP().test(`<div>tralala</div>`), false);
10
+ // in case if it's not JSP
11
+ assert.equal(isJSP().test(`<div>text</div>`), false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "regex-is-jsp",
3
- "version": "3.0.13",
3
+ "version": "3.1.0",
4
4
  "description": "Regular expression for detecting JSP (Java Server Pages) code",
5
5
  "keywords": [
6
6
  "code",
@@ -32,6 +32,7 @@
32
32
  },
33
33
  "type": "module",
34
34
  "exports": {
35
+ "types": "./types/index.d.ts",
35
36
  "script": "./dist/regex-is-jsp.umd.js",
36
37
  "default": "./dist/regex-is-jsp.esm.js"
37
38
  },