charcode-is-valid-xml-name-character 2.2.2 → 2.2.4

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
@@ -23,7 +23,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
23
23
 
24
24
  ### BREAKING CHANGES
25
25
 
26
- - programs now are in ES Modules and won't work with Common JS require()
26
+ - programs now are in ES Modules and won't work with Common JS `require()`
27
27
 
28
28
  ## 1.13.0 (2021-05-24)
29
29
 
@@ -39,9 +39,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
39
39
 
40
40
  ## 1.12.1 (2021-01-28)
41
41
 
42
- ### Bug Fixes
42
+ ### Fixed
43
43
 
44
- - add testStats to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
44
+ - add `testStats` to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
45
45
 
46
46
  ## 1.12.0 (2021-01-23)
47
47
 
@@ -51,7 +51,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
51
51
 
52
52
  ## 1.11.0 (2020-11-28)
53
53
 
54
- Accidental version bump during migration to sourcehut. Sorry about that.
54
+ Accidental version bump during migration to SourceHut. Sorry about that.
55
55
 
56
56
  ## 1.10.0 (2019-01-20)
57
57
 
@@ -86,7 +86,7 @@ GitHub sold us out. In the meantime, we:
86
86
 
87
87
  ## 1.2.0 (2018-02-16)
88
88
 
89
- ### Added
89
+ ### Features
90
90
 
91
91
  - First checking lowercase letters, then the rest.
92
92
 
@@ -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.2
4
+ * @version 2.2.4
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,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.2
4
+ * @version 2.2.4
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/charcode-is-valid-xml-name-character/}
@@ -11,7 +11,7 @@
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.2
14
+ * @version 3.2.4
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.2",
3
+ "version": "2.2.4",
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",
@@ -46,7 +46,7 @@
46
46
  "examples": "node '../../ops/scripts/run-examples.js'",
47
47
  "lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
48
48
  "letspublish": "yarn publish || :",
49
- "lint": "eslint . --fix",
49
+ "lint": "eslint . --ext .js --ext .ts --fix",
50
50
  "perf": "node perf/check.js",
51
51
  "prepare": "echo 'ready'",
52
52
  "prettier": "prettier",
@@ -73,6 +73,6 @@
73
73
  }
74
74
  },
75
75
  "dependencies": {
76
- "ranges-is-index-within": "^3.2.2"
76
+ "ranges-is-index-within": "^3.2.4"
77
77
  }
78
78
  }
@@ -1,24 +0,0 @@
1
- // Quick Take
2
-
3
- import { strict as assert } from "assert";
4
-
5
- import {
6
- isProduction4,
7
- isProduction4a,
8
- validFirstChar,
9
- validSecondCharOnwards,
10
- } from "../dist/charcode-is-valid-xml-name-character.esm.js";
11
-
12
- // Spec: https://www.w3.org/TR/REC-xml/#NT-NameStartChar
13
-
14
- assert.equal(isProduction4("Z"), true);
15
- assert.equal(isProduction4("?"), false);
16
-
17
- assert.equal(isProduction4a("?"), false);
18
- assert.equal(isProduction4a("-"), true);
19
-
20
- assert.equal(validFirstChar("a"), true);
21
- assert.equal(validFirstChar("1"), false);
22
-
23
- assert.equal(validSecondCharOnwards("a"), true);
24
- assert.equal(validSecondCharOnwards("?"), false);