string-character-is-astral-surrogate 2.1.2 → 2.1.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
@@ -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
  ## 1.13.0 (2021-05-24)
23
23
 
@@ -33,9 +33,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
33
33
 
34
34
  ## 1.12.1 (2021-01-28)
35
35
 
36
- ### Bug Fixes
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
  ## 1.12.0 (2021-01-23)
41
41
 
@@ -45,7 +45,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
45
45
 
46
46
  ## 1.11.0 (2020-11-28)
47
47
 
48
- Accidental version bump during migration to sourcehut. Sorry about that.
48
+ Accidental version bump during migration to SourceHut. Sorry about that.
49
49
 
50
50
  ## 1.10.0 (2019-01-20)
51
51
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @name string-character-is-astral-surrogate
3
3
  * @fileoverview Tells, is given character a part of astral character, specifically, a high and low surrogate
4
- * @version 2.1.2
4
+ * @version 2.1.4
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/string-character-is-astral-surrogate/}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @name string-character-is-astral-surrogate
3
3
  * @fileoverview Tells, is given character a part of astral character, specifically, a high and low surrogate
4
- * @version 2.1.2
4
+ * @version 2.1.4
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/string-character-is-astral-surrogate/}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "string-character-is-astral-surrogate",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Tells, is given character a part of astral character, specifically, a high and low surrogate",
5
5
  "keywords": [
6
6
  "astral",
@@ -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,23 +0,0 @@
1
- // Quick Take
2
-
3
- import { strict as assert } from "assert";
4
-
5
- import {
6
- isHighSurrogate,
7
- isLowSurrogate,
8
- } from "../dist/string-character-is-astral-surrogate.esm.js";
9
-
10
- // 🧢 = \uD83E\uDDE2
11
-
12
- assert.equal(isHighSurrogate("\uD83E"), true);
13
- // the first character, high surrogate of the cap is indeed a high surrogate
14
-
15
- assert.equal(isHighSurrogate("\uDDE2"), false);
16
- // the second character, low surrogate of the cap is NOT a high surrogate
17
-
18
- assert.equal(isLowSurrogate("\uD83E"), false);
19
- // the first character, high surrogate of the cap is NOT a low surrogate
20
- // it's a high surrogate
21
-
22
- assert.equal(isLowSurrogate("\uDDE2"), true);
23
- // the second character, low surrogate of the cap is indeed a low surrogate