string-character-is-astral-surrogate 2.1.3 → 2.1.5
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
|
|
|
@@ -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
|
## 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
|
|
48
|
+
Accidental version bump during migration to SourceHut. Sorry about that.
|
|
49
49
|
|
|
50
50
|
## 1.10.0 (2019-01-20)
|
|
51
51
|
|
package/README.md
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">string-character-is-astral-surrogate</h1>
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
<p align="center">Tells, is given character a part of astral character, specifically, a high and low surrogate</p>
|
|
4
4
|
|
|
5
|
-
<
|
|
6
|
-
<a href="https://www.npmjs.com/package/string-character-is-astral-surrogate" rel="nofollow noreferrer noopener">
|
|
7
|
-
<img src="https://img.shields.io/badge/-npm-blue?style=flat-square" alt="page on npm">
|
|
8
|
-
</a>
|
|
5
|
+
<p align="center">
|
|
9
6
|
<a href="https://codsen.com/os/string-character-is-astral-surrogate" rel="nofollow noreferrer noopener">
|
|
10
7
|
<img src="https://img.shields.io/badge/-codsen-blue?style=flat-square" alt="page on codsen.com">
|
|
11
8
|
</a>
|
|
9
|
+
<a href="https://www.npmjs.com/package/string-character-is-astral-surrogate" rel="nofollow noreferrer noopener">
|
|
10
|
+
<img src="https://img.shields.io/badge/-npm-blue?style=flat-square" alt="page on npm">
|
|
11
|
+
</a>
|
|
12
12
|
<a href="https://github.com/codsen/codsen/tree/main/packages/string-character-is-astral-surrogate" rel="nofollow noreferrer noopener">
|
|
13
13
|
<img src="https://img.shields.io/badge/-github-blue?style=flat-square" alt="page on github">
|
|
14
14
|
</a>
|
|
15
15
|
<a href="https://npmcharts.com/compare/string-character-is-astral-surrogate?interval=30" rel="nofollow noreferrer noopener" target="_blank">
|
|
16
16
|
<img src="https://img.shields.io/npm/dm/string-character-is-astral-surrogate.svg?style=flat-square" alt="Downloads per month">
|
|
17
17
|
</a>
|
|
18
|
-
<a href="https://
|
|
19
|
-
<img src="https://img.shields.io/badge/
|
|
20
|
-
</a>
|
|
21
|
-
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT License">
|
|
22
|
-
<a href="https://liberamanifesto.com" rel="nofollow noreferrer noopener" target="_blank">
|
|
23
|
-
<img src="https://img.shields.io/badge/libera-manifesto-lightgrey.svg?style=flat-square" alt="libera manifesto">
|
|
18
|
+
<a href="https://codsen.com/os/string-character-is-astral-surrogate/changelog" rel="nofollow noreferrer noopener">
|
|
19
|
+
<img src="https://img.shields.io/badge/changelog-here-brightgreen?style=flat-square" alt="changelog">
|
|
24
20
|
</a>
|
|
25
|
-
|
|
21
|
+
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT Licence">
|
|
22
|
+
</p>
|
|
26
23
|
|
|
27
24
|
## Install
|
|
28
25
|
|
|
@@ -68,8 +65,8 @@ To report bugs or request features or assistance, [raise an issue](https://githu
|
|
|
68
65
|
|
|
69
66
|
## Licence
|
|
70
67
|
|
|
71
|
-
MIT License
|
|
68
|
+
MIT License.
|
|
72
69
|
|
|
73
|
-
Copyright
|
|
70
|
+
Copyright © 2010-2022 Roy Revelt and other contributors.
|
|
74
71
|
|
|
75
|
-
<img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center">
|
|
72
|
+
<p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
|
|
@@ -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.
|
|
4
|
+
* @version 2.1.5
|
|
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.
|
|
4
|
+
* @version 2.1.5
|
|
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.
|
|
3
|
+
"version": "2.1.5",
|
|
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",
|
package/examples/_quickTake.js
DELETED
|
@@ -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
|