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.5 to 0.1.6

esm/intl_segmenter_polyfill_rs.mjs

4

cjs/intl_segmenter_polyfill_rs.d.ts

@@ -28,3 +28,3 @@ /* tslint:disable */

export class Segmenter {
export const Segmenter: {
prototype: Segmenter;

@@ -49,3 +49,3 @@

new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter;
}
};

@@ -52,0 +52,0 @@

let imports = {};
imports['__wbindgen_placeholder__'] = module.exports;
let wasm;
const { TextDecoder, TextEncoder } = require(`util`);
const { TextEncoder, TextDecoder } = require(`util`);

@@ -26,6 +26,4 @@ const heap = new Array(128).fill(undefined);

let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
let WASM_VECTOR_LEN = 0;
cachedTextDecoder.decode();
let cachedUint8Memory0 = null;

@@ -40,18 +38,2 @@

function getStringFromWasm0(ptr, len) {
ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
heap[idx] = obj;
return idx;
}
let WASM_VECTOR_LEN = 0;
let cachedTextEncoder = new TextEncoder('utf-8');

@@ -123,2 +105,20 @@

let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
function getStringFromWasm0(ptr, len) {
ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
heap[idx] = obj;
return idx;
}
let cachedFloat64Memory0 = null;

@@ -309,16 +309,2 @@

module.exports.__wbg_makeiter_ee6c40edfef16a6b = function(arg0) {
__make_iter(getObject(arg0));
};
module.exports.__wbg_segments_new = function(arg0) {
const ret = Segments.__wrap(arg0);
return addHeapObject(ret);
};
module.exports.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
module.exports.__wbindgen_is_undefined = function(arg0) {

@@ -349,2 +335,16 @@ const ret = getObject(arg0) === undefined;

module.exports.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
module.exports.__wbg_segments_new = function(arg0) {
const ret = Segments.__wrap(arg0);
return addHeapObject(ret);
};
module.exports.__wbg_makeiter_508dd15b82dc98f9 = function(arg0) {
__make_iter(getObject(arg0));
};
module.exports.__wbg_new_abda76e883ba8a5f = function() {

@@ -375,12 +375,2 @@ const ret = new Error();

module.exports.__wbindgen_number_new = function(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
const ret = BigInt.asUintN(64, arg0);
return addHeapObject(ret);
};
module.exports.__wbindgen_object_clone_ref = function(arg0) {

@@ -409,2 +399,17 @@ const ret = getObject(arg0);

module.exports.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
module.exports.__wbindgen_number_new = function(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
const ret = BigInt.asUintN(64, arg0);
return addHeapObject(ret);
};
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {

@@ -419,7 +424,2 @@ const ret = getObject(arg0)[getObject(arg1)];

module.exports.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
module.exports.__wbg_new_b51585de1b234aff = function() {

@@ -426,0 +426,0 @@ const ret = new Object();

@@ -27,8 +27,4 @@ let wasm;

const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
let WASM_VECTOR_LEN = 0;
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
let cachedUint8Memory0 = null;

@@ -43,18 +39,2 @@

function getStringFromWasm0(ptr, len) {
ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
heap[idx] = obj;
return idx;
}
let WASM_VECTOR_LEN = 0;
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;

@@ -128,2 +108,22 @@

const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
function getStringFromWasm0(ptr, len) {
ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
heap[idx] = obj;
return idx;
}
let cachedFloat64Memory0 = null;

@@ -312,16 +312,2 @@

export function __wbg_makeiter_ee6c40edfef16a6b(arg0) {
__make_iter(getObject(arg0));
};
export function __wbg_segments_new(arg0) {
const ret = Segments.__wrap(arg0);
return addHeapObject(ret);
};
export function __wbindgen_string_new(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
export function __wbindgen_is_undefined(arg0) {

@@ -352,2 +338,16 @@ const ret = getObject(arg0) === undefined;

export function __wbindgen_string_new(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
export function __wbg_segments_new(arg0) {
const ret = Segments.__wrap(arg0);
return addHeapObject(ret);
};
export function __wbg_makeiter_508dd15b82dc98f9(arg0) {
__make_iter(getObject(arg0));
};
export function __wbg_new_abda76e883ba8a5f() {

@@ -378,12 +378,2 @@ const ret = new Error();

export function __wbindgen_number_new(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
export function __wbindgen_bigint_from_u64(arg0) {
const ret = BigInt.asUintN(64, arg0);
return addHeapObject(ret);
};
export function __wbindgen_object_clone_ref(arg0) {

@@ -412,2 +402,17 @@ const ret = getObject(arg0);

export function __wbindgen_error_new(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
export function __wbindgen_number_new(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
export function __wbindgen_bigint_from_u64(arg0) {
const ret = BigInt.asUintN(64, arg0);
return addHeapObject(ret);
};
export function __wbg_getwithrefkey_15c62c2b8546208d(arg0, arg1) {

@@ -422,7 +427,2 @@ const ret = getObject(arg0)[getObject(arg1)];

export function __wbindgen_error_new(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
export function __wbg_new_b51585de1b234aff() {

@@ -429,0 +429,0 @@ const ret = new Object();

@@ -28,3 +28,3 @@ /* tslint:disable */

export class Segmenter {
export const Segmenter: {
prototype: Segmenter;

@@ -49,3 +49,3 @@

new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter;
}
};

@@ -52,0 +52,0 @@

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

@@ -18,7 +18,7 @@ "repository": {

],
"module": "./esm/intl_segmenter_polyfill_rs.js",
"module": "./esm/intl_segmenter_polyfill_rs.mjs",
"homepage": "https://github.com/toeverything/intl-segmenter-polyfill-rs",
"types": "./cjs/intl_segmenter_polyfill_rs.d.ts",
"sideEffects": [
"./esm/intl_segmenter_polyfill_rs.js",
"./esm/intl_segmenter_polyfill_rs.mjs",
"./snippets/*"

@@ -31,3 +31,3 @@ ],

"types": "./esm/intl_segmenter_polyfill_rs.d.ts",
"default": "./esm/intl_segmenter_polyfill_rs.js"
"default": "./esm/intl_segmenter_polyfill_rs.mjs"
},

@@ -34,0 +34,0 @@ "require": {

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