charcode-is-valid-xml-name-character 2.2.0 → 2.2.1
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name charcode-is-valid-xml-name-character
|
|
3
3
|
* @fileoverview Does a given character belong to XML spec's "Production 4 OR 4a" type (is acceptable for XML element's name)
|
|
4
|
-
* @version 2.2.
|
|
4
|
+
* @version 2.2.1
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/charcode-is-valid-xml-name-character/}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
2
|
* @name charcode-is-valid-xml-name-character
|
|
3
3
|
* @fileoverview Does a given character belong to XML spec's "Production 4 OR 4a" type (is acceptable for XML element's name)
|
|
4
|
-
* @version 2.2.
|
|
4
|
+
* @version 2.2.1
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/charcode-is-valid-xml-name-character/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var charcodeIsValidXmlNameCharacter=(()=>{var t=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var c=(n,e,r)=>e in n?t(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,u=(n,e)=>{for(var r in e||(e={}))g.call(e,r)&&c(n,r,e[r]);if(d)for(var r of d(e))f.call(e,r)&&c(n,r,e[r]);return n};var p=(n,e)=>{for(var r in e)t(n,r,{get:e[r],enumerable:!0})},R=(n,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of b(e))!g.call(n,a)&&a!==r&&t(n,a,{get:()=>e[a],enumerable:!(o=l(e,a))||o.enumerable});return n};var h=n=>R(t({},"__esModule",{value:!0}),n);var P={};p(P,{isProduction4:()=>x,isProduction4a:()=>A,validFirstChar:()=>x,validSecondCharOnwards:()=>A});var v={inclusiveRangeEnds:!1,returnMatchedRangeInsteadOfTrue:!1};function s(n,e,r){let o=u(u({},v),r);if(!Number.isInteger(n))throw new Error(`ranges-is-index-within: [THROW_ID_01] the first input argument should be string index, a natural number (or zero). It was given as ${n} (type ${typeof n})`);return Array.isArray(e)?o.returnMatchedRangeInsteadOfTrue?e.find(a=>o.inclusiveRangeEnds?n>=a[0]&&n<=a[1]:n>a[0]&&n<a[1])||!1:e.some(a=>o.inclusiveRangeEnds?n>=a[0]&&n<=a[1]:n>a[0]&&n<a[1]):!1}var I=[[58,58],[65,90],[95,95],[192,214],[216,246],[248,767],[880,893],[895,8191],[8204,8205],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],y=[[45,45],[46,46],[48,57],[58,58],[65,90],[95,95],[183,183],[192,214],[216,246],[248,767],[768,879],[880,893],[895,8191],[8204,8205],[8255,8256],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],m=[[97,122]],i={inclusiveRangeEnds:!0,skipIncomingRangeSorting:!0};function x(n){return s(n.codePointAt(0),m,i)||s(n.codePointAt(0),I,i)}function A(n){return s(n.codePointAt(0),m,i)||s(n.codePointAt(0),y,i)}return h(P);})();
|
|
10
|
+
"use strict";var charcodeIsValidXmlNameCharacter=(()=>{var t=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var c=(n,e,r)=>e in n?t(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,u=(n,e)=>{for(var r in e||(e={}))g.call(e,r)&&c(n,r,e[r]);if(d)for(var r of d(e))f.call(e,r)&&c(n,r,e[r]);return n};var p=(n,e)=>{for(var r in e)t(n,r,{get:e[r],enumerable:!0})},R=(n,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of b(e))!g.call(n,a)&&a!==r&&t(n,a,{get:()=>e[a],enumerable:!(o=l(e,a))||o.enumerable});return n};var h=n=>R(t({},"__esModule",{value:!0}),n);var P={};p(P,{isProduction4:()=>x,isProduction4a:()=>A,validFirstChar:()=>x,validSecondCharOnwards:()=>A});var v={inclusiveRangeEnds:!1,returnMatchedRangeInsteadOfTrue:!1};function s(n,e,r){let o=u(u({},v),r);if(!Number.isInteger(n))throw new Error(`ranges-is-index-within: [THROW_ID_01] the first input argument should be string index, a natural number (or zero). It was given as ${n} (type ${typeof n})`);return Array.isArray(e)?o.returnMatchedRangeInsteadOfTrue?e.find(a=>o.inclusiveRangeEnds?n>=a[0]&&n<=a[1]:n>a[0]&&n<a[1])||!1:e.some(a=>o.inclusiveRangeEnds?n>=a[0]&&n<=a[1]:n>a[0]&&n<a[1]):!1}var I=[[58,58],[65,90],[95,95],[192,214],[216,246],[248,767],[880,893],[895,8191],[8204,8205],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],y=[[45,45],[46,46],[48,57],[58,58],[65,90],[95,95],[183,183],[192,214],[216,246],[248,767],[768,879],[880,893],[895,8191],[8204,8205],[8255,8256],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],m=[[97,122]],i={inclusiveRangeEnds:!0,skipIncomingRangeSorting:!0};function x(n){return s(n.codePointAt(0),m,i)||s(n.codePointAt(0),I,i)}function A(n){return s(n.codePointAt(0),m,i)||s(n.codePointAt(0),y,i)}return h(P);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name ranges-is-index-within
|
|
13
13
|
* @fileoverview Checks if index is within any of the given string index ranges
|
|
14
|
-
* @version 3.2.
|
|
14
|
+
* @version 3.2.1
|
|
15
15
|
* @author Roy Revelt, Codsen Ltd
|
|
16
16
|
* @license MIT
|
|
17
17
|
* {@link https://codsen.com/os/ranges-is-index-within/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "charcode-is-valid-xml-name-character",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Does a given character belong to XML spec's \"Production 4 OR 4a\" type (is acceptable for XML element's name)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"4",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"valid",
|
|
20
20
|
"xml"
|
|
21
21
|
],
|
|
22
|
-
"homepage": "https://codsen.com/os/charcode-is-valid-xml-name-character
|
|
22
|
+
"homepage": "https://codsen.com/os/charcode-is-valid-xml-name-character",
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
25
|
"url": "https://github.com/codsen/codsen.git",
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"ranges-is-index-within": "^3.2.
|
|
76
|
+
"ranges-is-index-within": "^3.2.1"
|
|
77
77
|
}
|
|
78
78
|
}
|