rregex 1.0.2 → 1.0.3
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/lib/browser.d.ts +13 -6
- package/lib/browser.js +20 -16
- package/lib/commonjs.d.ts +12 -4
- package/lib/commonjs.js +20 -16
- package/lib/module.d.ts +12 -4
- package/lib/module.js +8 -16
- package/lib/rregex.wasm +0 -0
- package/lib/rregex.wasm.d.ts +1 -2
- package/lib/types.d.ts +13 -6
- package/package.json +15 -2
package/lib/browser.d.ts
CHANGED
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
* @returns {string}
|
|
6
6
|
*/
|
|
7
7
|
export function escape(text: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* @returns {any}
|
|
10
|
-
*/
|
|
11
|
-
export function get_metadata(): any;
|
|
12
8
|
|
|
13
9
|
export type Hir = {
|
|
14
10
|
'@type': 'struct'
|
|
@@ -509,7 +505,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
509
505
|
|
|
510
506
|
export interface InitOutput {
|
|
511
507
|
readonly memory: WebAssembly.Memory;
|
|
512
|
-
readonly escape: (a: number, b: number, c: number) => void;
|
|
513
508
|
readonly __wbg_rregex_free: (a: number) => void;
|
|
514
509
|
readonly rregex_new: (a: number, b: number) => number;
|
|
515
510
|
readonly rregex_isMatch: (a: number, b: number, c: number) => number;
|
|
@@ -526,11 +521,11 @@ export interface InitOutput {
|
|
|
526
521
|
readonly rregex_shortestMatchAt: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
527
522
|
readonly rregex_syntax: (a: number) => number;
|
|
528
523
|
readonly rregex_toString: (a: number, b: number) => void;
|
|
529
|
-
readonly get_metadata: () => number;
|
|
530
524
|
readonly __wbg_rregexset_free: (a: number) => void;
|
|
531
525
|
readonly rregexset_new: (a: number) => number;
|
|
532
526
|
readonly rregexset_isMatch: (a: number, b: number, c: number) => number;
|
|
533
527
|
readonly rregexset_matches: (a: number, b: number, c: number) => number;
|
|
528
|
+
readonly escape: (a: number, b: number, c: number) => void;
|
|
534
529
|
readonly __wbindgen_malloc: (a: number) => number;
|
|
535
530
|
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
|
536
531
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
@@ -547,3 +542,15 @@ export interface InitOutput {
|
|
|
547
542
|
* @returns {Promise<InitOutput>}
|
|
548
543
|
*/
|
|
549
544
|
export default function init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
545
|
+
|
|
546
|
+
export const metadata: {
|
|
547
|
+
"name": "rregex",
|
|
548
|
+
"description": "Rust Regex binding for Javascript",
|
|
549
|
+
"authors": [
|
|
550
|
+
"Fede Ramirez <i@2fd.me>"
|
|
551
|
+
],
|
|
552
|
+
"homepage": "https://2fd.github.io/rregex",
|
|
553
|
+
"repository": "https://github.com/2fd/rregex",
|
|
554
|
+
"regex": "1.0.6",
|
|
555
|
+
"regex-syntax": "0.6.25"
|
|
556
|
+
}
|
package/lib/browser.js
CHANGED
|
@@ -177,6 +177,14 @@ function debugString(val) {
|
|
|
177
177
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
178
178
|
return className;
|
|
179
179
|
}
|
|
180
|
+
|
|
181
|
+
let stack_pointer = 32;
|
|
182
|
+
|
|
183
|
+
function addBorrowedObject(obj) {
|
|
184
|
+
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
185
|
+
heap[--stack_pointer] = obj;
|
|
186
|
+
return stack_pointer;
|
|
187
|
+
}
|
|
180
188
|
/**
|
|
181
189
|
* @param {string} text
|
|
182
190
|
* @returns {string}
|
|
@@ -196,22 +204,6 @@ export function escape(text) {
|
|
|
196
204
|
}
|
|
197
205
|
}
|
|
198
206
|
|
|
199
|
-
/**
|
|
200
|
-
* @returns {any}
|
|
201
|
-
*/
|
|
202
|
-
export function get_metadata() {
|
|
203
|
-
var ret = wasm.get_metadata();
|
|
204
|
-
return takeObject(ret);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
let stack_pointer = 32;
|
|
208
|
-
|
|
209
|
-
function addBorrowedObject(obj) {
|
|
210
|
-
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
211
|
-
heap[--stack_pointer] = obj;
|
|
212
|
-
return stack_pointer;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
207
|
function handleError(f, args) {
|
|
216
208
|
try {
|
|
217
209
|
return f.apply(this, args);
|
|
@@ -670,3 +662,15 @@ async function init(input) {
|
|
|
670
662
|
|
|
671
663
|
export default init;
|
|
672
664
|
|
|
665
|
+
|
|
666
|
+
export const metadata = {
|
|
667
|
+
"name": "rregex",
|
|
668
|
+
"description": "Rust Regex binding for Javascript",
|
|
669
|
+
"authors": [
|
|
670
|
+
"Fede Ramirez <i@2fd.me>"
|
|
671
|
+
],
|
|
672
|
+
"homepage": "https://2fd.github.io/rregex",
|
|
673
|
+
"repository": "https://github.com/2fd/rregex",
|
|
674
|
+
"regex": "1.0.6",
|
|
675
|
+
"regex-syntax": "0.6.25"
|
|
676
|
+
}
|
package/lib/commonjs.d.ts
CHANGED
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
* @returns {string}
|
|
6
6
|
*/
|
|
7
7
|
export function escape(text: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* @returns {any}
|
|
10
|
-
*/
|
|
11
|
-
export function get_metadata(): any;
|
|
12
8
|
|
|
13
9
|
export type Hir = {
|
|
14
10
|
'@type': 'struct'
|
|
@@ -504,3 +500,15 @@ export class RRegexSet {
|
|
|
504
500
|
*/
|
|
505
501
|
matches(text: string): any;
|
|
506
502
|
}
|
|
503
|
+
|
|
504
|
+
export const metadata: {
|
|
505
|
+
"name": "rregex",
|
|
506
|
+
"description": "Rust Regex binding for Javascript",
|
|
507
|
+
"authors": [
|
|
508
|
+
"Fede Ramirez <i@2fd.me>"
|
|
509
|
+
],
|
|
510
|
+
"homepage": "https://2fd.github.io/rregex",
|
|
511
|
+
"repository": "https://github.com/2fd/rregex",
|
|
512
|
+
"regex": "1.0.6",
|
|
513
|
+
"regex-syntax": "0.6.25"
|
|
514
|
+
}
|
package/lib/commonjs.js
CHANGED
|
@@ -179,6 +179,14 @@ function debugString(val) {
|
|
|
179
179
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
180
180
|
return className;
|
|
181
181
|
}
|
|
182
|
+
|
|
183
|
+
let stack_pointer = 32;
|
|
184
|
+
|
|
185
|
+
function addBorrowedObject(obj) {
|
|
186
|
+
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
187
|
+
heap[--stack_pointer] = obj;
|
|
188
|
+
return stack_pointer;
|
|
189
|
+
}
|
|
182
190
|
/**
|
|
183
191
|
* @param {string} text
|
|
184
192
|
* @returns {string}
|
|
@@ -198,22 +206,6 @@ module.exports.escape = function(text) {
|
|
|
198
206
|
}
|
|
199
207
|
};
|
|
200
208
|
|
|
201
|
-
/**
|
|
202
|
-
* @returns {any}
|
|
203
|
-
*/
|
|
204
|
-
module.exports.get_metadata = function() {
|
|
205
|
-
var ret = wasm.get_metadata();
|
|
206
|
-
return takeObject(ret);
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
let stack_pointer = 32;
|
|
210
|
-
|
|
211
|
-
function addBorrowedObject(obj) {
|
|
212
|
-
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
213
|
-
heap[--stack_pointer] = obj;
|
|
214
|
-
return stack_pointer;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
209
|
function handleError(f, args) {
|
|
218
210
|
try {
|
|
219
211
|
return f.apply(this, args);
|
|
@@ -643,3 +635,15 @@ const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
|
643
635
|
wasm = wasmInstance.exports;
|
|
644
636
|
module.exports.__wasm = wasm;
|
|
645
637
|
|
|
638
|
+
|
|
639
|
+
module.exports.metadata = {
|
|
640
|
+
"name": "rregex",
|
|
641
|
+
"description": "Rust Regex binding for Javascript",
|
|
642
|
+
"authors": [
|
|
643
|
+
"Fede Ramirez <i@2fd.me>"
|
|
644
|
+
],
|
|
645
|
+
"homepage": "https://2fd.github.io/rregex",
|
|
646
|
+
"repository": "https://github.com/2fd/rregex",
|
|
647
|
+
"regex": "1.0.6",
|
|
648
|
+
"regex-syntax": "0.6.25"
|
|
649
|
+
}
|
package/lib/module.d.ts
CHANGED
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
* @returns {string}
|
|
6
6
|
*/
|
|
7
7
|
export function escape(text: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* @returns {any}
|
|
10
|
-
*/
|
|
11
|
-
export function get_metadata(): any;
|
|
12
8
|
|
|
13
9
|
export type Hir = {
|
|
14
10
|
'@type': 'struct'
|
|
@@ -504,3 +500,15 @@ export class RRegexSet {
|
|
|
504
500
|
*/
|
|
505
501
|
matches(text: string): any;
|
|
506
502
|
}
|
|
503
|
+
|
|
504
|
+
export const metadata: {
|
|
505
|
+
"name": "rregex",
|
|
506
|
+
"description": "Rust Regex binding for Javascript",
|
|
507
|
+
"authors": [
|
|
508
|
+
"Fede Ramirez <i@2fd.me>"
|
|
509
|
+
],
|
|
510
|
+
"homepage": "https://2fd.github.io/rregex",
|
|
511
|
+
"repository": "https://github.com/2fd/rregex",
|
|
512
|
+
"regex": "1.0.6",
|
|
513
|
+
"regex-syntax": "0.6.25"
|
|
514
|
+
}
|
package/lib/module.js
CHANGED
|
@@ -180,6 +180,14 @@ function debugString(val) {
|
|
|
180
180
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
181
181
|
return className;
|
|
182
182
|
}
|
|
183
|
+
|
|
184
|
+
let stack_pointer = 32;
|
|
185
|
+
|
|
186
|
+
function addBorrowedObject(obj) {
|
|
187
|
+
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
188
|
+
heap[--stack_pointer] = obj;
|
|
189
|
+
return stack_pointer;
|
|
190
|
+
}
|
|
183
191
|
/**
|
|
184
192
|
* @param {string} text
|
|
185
193
|
* @returns {string}
|
|
@@ -199,22 +207,6 @@ export function escape(text) {
|
|
|
199
207
|
}
|
|
200
208
|
}
|
|
201
209
|
|
|
202
|
-
/**
|
|
203
|
-
* @returns {any}
|
|
204
|
-
*/
|
|
205
|
-
export function get_metadata() {
|
|
206
|
-
var ret = wasm.get_metadata();
|
|
207
|
-
return takeObject(ret);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
let stack_pointer = 32;
|
|
211
|
-
|
|
212
|
-
function addBorrowedObject(obj) {
|
|
213
|
-
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
214
|
-
heap[--stack_pointer] = obj;
|
|
215
|
-
return stack_pointer;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
210
|
function handleError(f, args) {
|
|
219
211
|
try {
|
|
220
212
|
return f.apply(this, args);
|
package/lib/rregex.wasm
CHANGED
|
Binary file
|
package/lib/rregex.wasm.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function escape(a: number, b: number, c: number): void;
|
|
5
4
|
export function __wbg_rregex_free(a: number): void;
|
|
6
5
|
export function rregex_new(a: number, b: number): number;
|
|
7
6
|
export function rregex_isMatch(a: number, b: number, c: number): number;
|
|
@@ -18,11 +17,11 @@ export function rregex_shortestMatch(a: number, b: number, c: number, d: number)
|
|
|
18
17
|
export function rregex_shortestMatchAt(a: number, b: number, c: number, d: number, e: number): void;
|
|
19
18
|
export function rregex_syntax(a: number): number;
|
|
20
19
|
export function rregex_toString(a: number, b: number): void;
|
|
21
|
-
export function get_metadata(): number;
|
|
22
20
|
export function __wbg_rregexset_free(a: number): void;
|
|
23
21
|
export function rregexset_new(a: number): number;
|
|
24
22
|
export function rregexset_isMatch(a: number, b: number, c: number): number;
|
|
25
23
|
export function rregexset_matches(a: number, b: number, c: number): number;
|
|
24
|
+
export function escape(a: number, b: number, c: number): void;
|
|
26
25
|
export function __wbindgen_malloc(a: number): number;
|
|
27
26
|
export function __wbindgen_realloc(a: number, b: number, c: number): number;
|
|
28
27
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
package/lib/types.d.ts
CHANGED
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
* @returns {string}
|
|
6
6
|
*/
|
|
7
7
|
export function escape(text: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* @returns {any}
|
|
10
|
-
*/
|
|
11
|
-
export function get_metadata(): any;
|
|
12
8
|
|
|
13
9
|
export type Hir = {
|
|
14
10
|
'@type': 'struct'
|
|
@@ -509,7 +505,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
509
505
|
|
|
510
506
|
export interface InitOutput {
|
|
511
507
|
readonly memory: WebAssembly.Memory;
|
|
512
|
-
readonly escape: (a: number, b: number, c: number) => void;
|
|
513
508
|
readonly __wbg_rregex_free: (a: number) => void;
|
|
514
509
|
readonly rregex_new: (a: number, b: number) => number;
|
|
515
510
|
readonly rregex_isMatch: (a: number, b: number, c: number) => number;
|
|
@@ -526,11 +521,11 @@ export interface InitOutput {
|
|
|
526
521
|
readonly rregex_shortestMatchAt: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
527
522
|
readonly rregex_syntax: (a: number) => number;
|
|
528
523
|
readonly rregex_toString: (a: number, b: number) => void;
|
|
529
|
-
readonly get_metadata: () => number;
|
|
530
524
|
readonly __wbg_rregexset_free: (a: number) => void;
|
|
531
525
|
readonly rregexset_new: (a: number) => number;
|
|
532
526
|
readonly rregexset_isMatch: (a: number, b: number, c: number) => number;
|
|
533
527
|
readonly rregexset_matches: (a: number, b: number, c: number) => number;
|
|
528
|
+
readonly escape: (a: number, b: number, c: number) => void;
|
|
534
529
|
readonly __wbindgen_malloc: (a: number) => number;
|
|
535
530
|
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
|
536
531
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
@@ -547,3 +542,15 @@ export interface InitOutput {
|
|
|
547
542
|
* @returns {Promise<InitOutput>}
|
|
548
543
|
*/
|
|
549
544
|
export default function init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
545
|
+
|
|
546
|
+
export const metadata: {
|
|
547
|
+
"name": "rregex",
|
|
548
|
+
"description": "Rust Regex binding for Javascript",
|
|
549
|
+
"authors": [
|
|
550
|
+
"Fede Ramirez <i@2fd.me>"
|
|
551
|
+
],
|
|
552
|
+
"homepage": "https://2fd.github.io/rregex",
|
|
553
|
+
"repository": "https://github.com/2fd/rregex",
|
|
554
|
+
"regex": "1.0.6",
|
|
555
|
+
"regex-syntax": "0.6.25"
|
|
556
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rregex",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Rust Regex binding for Javascript",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./lib/commonjs.js",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"babel-jest": "^27.4.2",
|
|
17
17
|
"jest": "^27.4.3",
|
|
18
18
|
"semantic-release": "^18.0.1",
|
|
19
|
+
"toml": "^3.0.0",
|
|
19
20
|
"typescript": "^4.5.2"
|
|
20
21
|
},
|
|
21
22
|
"scripts": {
|
|
@@ -29,7 +30,19 @@
|
|
|
29
30
|
"release": {
|
|
30
31
|
"ci": false,
|
|
31
32
|
"branches": [
|
|
32
|
-
|
|
33
|
+
{
|
|
34
|
+
"name": "1.0.x",
|
|
35
|
+
"range": "1.0.x",
|
|
36
|
+
"channel": "1.0.x"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "1.1.x",
|
|
40
|
+
"range": "1.1.x",
|
|
41
|
+
"channel": "1.1.x"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "master"
|
|
45
|
+
}
|
|
33
46
|
]
|
|
34
47
|
},
|
|
35
48
|
"repository": {
|