Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

intl-segmenter-polyfill-rs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intl-segmenter-polyfill-rs - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

49

cjs/intl_segmenter_polyfill_rs.js

@@ -204,10 +204,2 @@ let imports = {};

static __wrap(ptr) {
ptr = ptr >>> 0;
const obj = Object.create(Segmenter.prototype);
obj.__wbg_ptr = ptr;
return obj;
}
__destroy_into_raw() {

@@ -245,3 +237,4 @@ const ptr = this.__wbg_ptr;

const ret = wasm.segmenter_new(addHeapObject(locales), addHeapObject(options));
return Segmenter.__wrap(ret);
this.__wbg_ptr = ret >>> 0;
return this;
}

@@ -308,2 +301,7 @@ /**

module.exports.__wbg_segments_new = function(arg0) {
const ret = Segments.__wrap(arg0);
return addHeapObject(ret);
};
module.exports.__wbindgen_is_undefined = function(arg0) {

@@ -339,8 +337,3 @@ const ret = getObject(arg0) === undefined;

module.exports.__wbg_segments_new = function(arg0) {
const ret = Segments.__wrap(arg0);
return addHeapObject(ret);
};
module.exports.__wbg_makeiter_508dd15b82dc98f9 = function(arg0) {
module.exports.__wbg_makeiter_99ccd6b658d32814 = function(arg0) {
__make_iter(getObject(arg0));

@@ -412,3 +405,3 @@ };

module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
module.exports.__wbg_getwithrefkey_4a92a5eca60879b9 = function(arg0, arg1) {
const ret = getObject(arg0)[getObject(arg1)];

@@ -418,7 +411,7 @@ return addHeapObject(ret);

module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
module.exports.__wbg_set_9182712abebf82ef = function(arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
};
module.exports.__wbg_new_b51585de1b234aff = function() {
module.exports.__wbg_new_9fb8d994e1c0aaac = function() {
const ret = new Object();

@@ -428,7 +421,7 @@ return addHeapObject(ret);

module.exports.__wbg_instanceof_ArrayBuffer_39ac22089b74fddb = function(arg0) {
module.exports.__wbg_instanceof_ArrayBuffer_e7d53d51371448e2 = function(arg0) {
let result;
try {
result = getObject(arg0) instanceof ArrayBuffer;
} catch {
} catch (_) {
result = false;

@@ -440,3 +433,3 @@ }

module.exports.__wbg_getPrototypeOf_0953c64f6ba47b38 = function(arg0) {
module.exports.__wbg_getPrototypeOf_a6e87842bce6351b = function(arg0) {
const ret = Object.getPrototypeOf(getObject(arg0));

@@ -446,3 +439,3 @@ return addHeapObject(ret);

module.exports.__wbg_new_0d7da8e129c00c84 = function(arg0, arg1) {
module.exports.__wbg_new_4a703d5c73064dfb = function(arg0, arg1) {
const ret = new TypeError(getStringFromWasm0(arg0, arg1));

@@ -452,3 +445,3 @@ return addHeapObject(ret);

module.exports.__wbg_buffer_085ec1f694018c4f = function(arg0) {
module.exports.__wbg_buffer_a448f833075b71ba = function(arg0) {
const ret = getObject(arg0).buffer;

@@ -458,3 +451,3 @@ return addHeapObject(ret);

module.exports.__wbg_new_8125e318e6245eed = function(arg0) {
module.exports.__wbg_new_8f67e318f15d7254 = function(arg0) {
const ret = new Uint8Array(getObject(arg0));

@@ -464,7 +457,7 @@ return addHeapObject(ret);

module.exports.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
module.exports.__wbg_set_2357bf09366ee480 = function(arg0, arg1, arg2) {
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
};
module.exports.__wbg_length_72e2208bbc0efc61 = function(arg0) {
module.exports.__wbg_length_1d25fa9e4ac21ce7 = function(arg0) {
const ret = getObject(arg0).length;

@@ -474,7 +467,7 @@ return ret;

module.exports.__wbg_instanceof_Uint8Array_d8d9cb2b8e8ac1d4 = function(arg0) {
module.exports.__wbg_instanceof_Uint8Array_bced6f43aed8c1aa = function(arg0) {
let result;
try {
result = getObject(arg0) instanceof Uint8Array;
} catch {
} catch (_) {
result = false;

@@ -481,0 +474,0 @@ }

@@ -209,10 +209,2 @@ let wasm;

static __wrap(ptr) {
ptr = ptr >>> 0;
const obj = Object.create(Segmenter.prototype);
obj.__wbg_ptr = ptr;
return obj;
}
__destroy_into_raw() {

@@ -250,3 +242,4 @@ const ptr = this.__wbg_ptr;

const ret = wasm.segmenter_new(addHeapObject(locales), addHeapObject(options));
return Segmenter.__wrap(ret);
this.__wbg_ptr = ret >>> 0;
return this;
}

@@ -311,2 +304,7 @@ /**

export function __wbg_segments_new(arg0) {
const ret = Segments.__wrap(arg0);
return addHeapObject(ret);
};
export function __wbindgen_is_undefined(arg0) {

@@ -342,8 +340,3 @@ const ret = getObject(arg0) === undefined;

export function __wbg_segments_new(arg0) {
const ret = Segments.__wrap(arg0);
return addHeapObject(ret);
};
export function __wbg_makeiter_508dd15b82dc98f9(arg0) {
export function __wbg_makeiter_99ccd6b658d32814(arg0) {
__make_iter(getObject(arg0));

@@ -415,3 +408,3 @@ };

export function __wbg_getwithrefkey_15c62c2b8546208d(arg0, arg1) {
export function __wbg_getwithrefkey_4a92a5eca60879b9(arg0, arg1) {
const ret = getObject(arg0)[getObject(arg1)];

@@ -421,7 +414,7 @@ return addHeapObject(ret);

export function __wbg_set_20cbc34131e76824(arg0, arg1, arg2) {
export function __wbg_set_9182712abebf82ef(arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
};
export function __wbg_new_b51585de1b234aff() {
export function __wbg_new_9fb8d994e1c0aaac() {
const ret = new Object();

@@ -431,7 +424,7 @@ return addHeapObject(ret);

export function __wbg_instanceof_ArrayBuffer_39ac22089b74fddb(arg0) {
export function __wbg_instanceof_ArrayBuffer_e7d53d51371448e2(arg0) {
let result;
try {
result = getObject(arg0) instanceof ArrayBuffer;
} catch {
} catch (_) {
result = false;

@@ -443,3 +436,3 @@ }

export function __wbg_getPrototypeOf_0953c64f6ba47b38(arg0) {
export function __wbg_getPrototypeOf_a6e87842bce6351b(arg0) {
const ret = Object.getPrototypeOf(getObject(arg0));

@@ -449,3 +442,3 @@ return addHeapObject(ret);

export function __wbg_new_0d7da8e129c00c84(arg0, arg1) {
export function __wbg_new_4a703d5c73064dfb(arg0, arg1) {
const ret = new TypeError(getStringFromWasm0(arg0, arg1));

@@ -455,3 +448,3 @@ return addHeapObject(ret);

export function __wbg_buffer_085ec1f694018c4f(arg0) {
export function __wbg_buffer_a448f833075b71ba(arg0) {
const ret = getObject(arg0).buffer;

@@ -461,3 +454,3 @@ return addHeapObject(ret);

export function __wbg_new_8125e318e6245eed(arg0) {
export function __wbg_new_8f67e318f15d7254(arg0) {
const ret = new Uint8Array(getObject(arg0));

@@ -467,7 +460,7 @@ return addHeapObject(ret);

export function __wbg_set_5cf90238115182c3(arg0, arg1, arg2) {
export function __wbg_set_2357bf09366ee480(arg0, arg1, arg2) {
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
};
export function __wbg_length_72e2208bbc0efc61(arg0) {
export function __wbg_length_1d25fa9e4ac21ce7(arg0) {
const ret = getObject(arg0).length;

@@ -477,7 +470,7 @@ return ret;

export function __wbg_instanceof_Uint8Array_d8d9cb2b8e8ac1d4(arg0) {
export function __wbg_instanceof_Uint8Array_bced6f43aed8c1aa(arg0) {
let result;
try {
result = getObject(arg0) instanceof Uint8Array;
} catch {
} catch (_) {
result = false;

@@ -484,0 +477,0 @@ }

@@ -9,2 +9,9 @@ # Intl-Segmenter-Polyfill-rs

**As firefox 122 will support the API, this project will be archived in a predictable future.**
Packages are available at:
- https://www.npmjs.com/package/intl-segmenter-polyfill-rs
- https://www.npmjs.com/package/intl-segmenter-polyfill-rs-web
## Usage

@@ -18,2 +25,6 @@

### Install `binaryen`
Use your package manager to install `binaryen`.
### Install `icu4x-datagen`

@@ -28,3 +39,3 @@

```
sh icu-datagen.sh
bash icu-datagen.sh
```

@@ -35,3 +46,3 @@

```
sh build.sh
bash build.sh
```

@@ -59,2 +70,9 @@

### Use it directly in the browser
```html
<!-- Modify your src according to your need -->
<script type="module" src="/node_modules/intl-segmenter-polyfill-rs-web/intl_segmenter_polyfill_rs.js"></script>
```
## License

@@ -61,0 +79,0 @@

{
"name": "intl-segmenter-polyfill-rs",
"description": "A polyfill for Intl.Segmenter",
"version": "0.1.6",
"version": "0.1.7",
"license": "MIT OR Apache-2.0",

@@ -6,0 +6,0 @@ "repository": {

@@ -9,2 +9,9 @@ # Intl-Segmenter-Polyfill-rs

**As firefox 122 will support the API, this project will be archived in a predictable future.**
Packages are available at:
- https://www.npmjs.com/package/intl-segmenter-polyfill-rs
- https://www.npmjs.com/package/intl-segmenter-polyfill-rs-web
## Usage

@@ -18,2 +25,6 @@

### Install `binaryen`
Use your package manager to install `binaryen`.
### Install `icu4x-datagen`

@@ -28,3 +39,3 @@

```
sh icu-datagen.sh
bash icu-datagen.sh
```

@@ -35,3 +46,3 @@

```
sh build.sh
bash build.sh
```

@@ -59,2 +70,9 @@

### Use it directly in the browser
```html
<!-- Modify your src according to your need -->
<script type="module" src="/node_modules/intl-segmenter-polyfill-rs-web/intl_segmenter_polyfill_rs.js"></script>
```
## License

@@ -61,0 +79,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc