string-character-is-astral-surrogate 3.2.0 → 3.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,12 +3,22 @@
|
|
|
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.2.1 (2026-09-01)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- allow omitted surrogate inputs ([ae1f614](https://github.com/codsen/codsen/commit/ae1f6146d4a1e6e868e2612934bcc5e5dec95967))
|
|
11
|
+
|
|
12
|
+
### Performance Improvements
|
|
13
|
+
|
|
14
|
+
- optimise package hot paths and JSON editing ([f3112bd](https://github.com/codsen/codsen/commit/f3112bd7fc0d7c9bc09312d3744c950691d72ca5))
|
|
15
|
+
|
|
6
16
|
## 3.2.0 (2026-08-19)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
|
9
19
|
|
|
10
20
|
- add throw identifiers to surrogate validation ([511ddce](https://github.com/codsen/codsen/commit/511ddce7dc70343d6ca87342992bc11c6cbdd400))
|
|
11
|
-
- resolve review findings
|
|
21
|
+
- resolve various review findings ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
|
|
12
22
|
- retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
|
|
13
23
|
|
|
14
24
|
### Features
|
|
@@ -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 3.2.
|
|
4
|
+
* @version 3.2.1
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/string-character-is-astral-surrogate/}
|
|
@@ -1,10 +1,10 @@
|
|
|
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 3.2.
|
|
4
|
+
* @version 3.2.1
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/string-character-is-astral-surrogate/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var stringCharacterIsAstralSurrogate=(()=>{var
|
|
10
|
+
"use strict";var stringCharacterIsAstralSurrogate=(()=>{var n=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var s=(r,t)=>{for(var a in t)n(r,a,{get:t[a],enumerable:!0})},c=(r,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of o(t))!f.call(r,e)&&e!==a&&n(r,e,{get:()=>t[e],enumerable:!(i=u(t,e))||i.enumerable});return r};var l=r=>c(n({},"__esModule",{value:!0}),r);var g={};s(g,{isHighSurrogate:()=>p,isLowSurrogate:()=>d});function p(r){if(typeof r=="string")return r.length===0?!1:r.charCodeAt(0)>=55296&&r.charCodeAt(0)<=56319;if(r===void 0)return!1;throw new TypeError("string-character-is-astral-surrogate/isHighSurrogate(): [THROW_ID_01] the input is not string but ".concat(typeof r))}function d(r){if(typeof r=="string")return r.length===0?!1:r.charCodeAt(0)>=56320&&r.charCodeAt(0)<=57343;if(r===void 0)return!1;throw new TypeError("string-character-is-astral-surrogate/isLowSurrogate(): [THROW_ID_02] the input is not string but ".concat(typeof r))}return l(g);})();
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function isHighSurrogate(something
|
|
2
|
-
declare function isLowSurrogate(something
|
|
1
|
+
declare function isHighSurrogate(something?: string): boolean;
|
|
2
|
+
declare function isLowSurrogate(something?: string): boolean;
|
|
3
3
|
|
|
4
4
|
export { isHighSurrogate, isLowSurrogate };
|