rregex 1.0.4 → 1.1.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 CHANGED
@@ -9,9 +9,7 @@ export function escape(text: string): string;
9
9
  export type Hir = {
10
10
  '@type': 'struct'
11
11
  '@name': 'regex_syntax::hir::Hir'
12
- bold: boolean;
13
- italic: boolean;
14
- size: number;
12
+ kind: HirKind
15
13
  }
16
14
 
17
15
 
@@ -505,6 +503,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
505
503
 
506
504
  export interface InitOutput {
507
505
  readonly memory: WebAssembly.Memory;
506
+ readonly escape: (a: number, b: number, c: number) => void;
508
507
  readonly __wbg_rregex_free: (a: number) => void;
509
508
  readonly rregex_new: (a: number, b: number) => number;
510
509
  readonly rregex_isMatch: (a: number, b: number, c: number) => number;
@@ -525,7 +524,6 @@ export interface InitOutput {
525
524
  readonly rregexset_new: (a: number) => number;
526
525
  readonly rregexset_isMatch: (a: number, b: number, c: number) => number;
527
526
  readonly rregexset_matches: (a: number, b: number, c: number) => number;
528
- readonly escape: (a: number, b: number, c: number) => void;
529
527
  readonly __wbindgen_malloc: (a: number) => number;
530
528
  readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
531
529
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
@@ -551,6 +549,6 @@ export const metadata: {
551
549
  ],
552
550
  "homepage": "https://2fd.github.io/rregex",
553
551
  "repository": "https://github.com/2fd/rregex",
554
- "regex": "1.0.6",
552
+ "regex": "1.1.9",
555
553
  "regex-syntax": "0.6.25"
556
554
  }
package/lib/browser.js CHANGED
@@ -177,14 +177,6 @@ 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
- }
188
180
  /**
189
181
  * @param {string} text
190
182
  * @returns {string}
@@ -204,6 +196,14 @@ export function escape(text) {
204
196
  }
205
197
  }
206
198
 
199
+ let stack_pointer = 32;
200
+
201
+ function addBorrowedObject(obj) {
202
+ if (stack_pointer == 1) throw new Error('out of js stack');
203
+ heap[--stack_pointer] = obj;
204
+ return stack_pointer;
205
+ }
206
+
207
207
  function handleError(f, args) {
208
208
  try {
209
209
  return f.apply(this, args);
@@ -671,6 +671,6 @@ export const metadata = {
671
671
  ],
672
672
  "homepage": "https://2fd.github.io/rregex",
673
673
  "repository": "https://github.com/2fd/rregex",
674
- "regex": "1.0.6",
674
+ "regex": "1.1.9",
675
675
  "regex-syntax": "0.6.25"
676
676
  }
package/lib/commonjs.d.ts CHANGED
@@ -9,9 +9,7 @@ export function escape(text: string): string;
9
9
  export type Hir = {
10
10
  '@type': 'struct'
11
11
  '@name': 'regex_syntax::hir::Hir'
12
- bold: boolean;
13
- italic: boolean;
14
- size: number;
12
+ kind: HirKind
15
13
  }
16
14
 
17
15
 
@@ -509,6 +507,6 @@ export const metadata: {
509
507
  ],
510
508
  "homepage": "https://2fd.github.io/rregex",
511
509
  "repository": "https://github.com/2fd/rregex",
512
- "regex": "1.0.6",
510
+ "regex": "1.1.9",
513
511
  "regex-syntax": "0.6.25"
514
512
  }
package/lib/commonjs.js CHANGED
@@ -179,14 +179,6 @@ 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
- }
190
182
  /**
191
183
  * @param {string} text
192
184
  * @returns {string}
@@ -206,6 +198,14 @@ module.exports.escape = function(text) {
206
198
  }
207
199
  };
208
200
 
201
+ let stack_pointer = 32;
202
+
203
+ function addBorrowedObject(obj) {
204
+ if (stack_pointer == 1) throw new Error('out of js stack');
205
+ heap[--stack_pointer] = obj;
206
+ return stack_pointer;
207
+ }
208
+
209
209
  function handleError(f, args) {
210
210
  try {
211
211
  return f.apply(this, args);
@@ -644,6 +644,6 @@ module.exports.metadata = {
644
644
  ],
645
645
  "homepage": "https://2fd.github.io/rregex",
646
646
  "repository": "https://github.com/2fd/rregex",
647
- "regex": "1.0.6",
647
+ "regex": "1.1.9",
648
648
  "regex-syntax": "0.6.25"
649
649
  }
package/lib/module.d.ts CHANGED
@@ -9,9 +9,7 @@ export function escape(text: string): string;
9
9
  export type Hir = {
10
10
  '@type': 'struct'
11
11
  '@name': 'regex_syntax::hir::Hir'
12
- bold: boolean;
13
- italic: boolean;
14
- size: number;
12
+ kind: HirKind
15
13
  }
16
14
 
17
15
 
@@ -509,6 +507,6 @@ export const metadata: {
509
507
  ],
510
508
  "homepage": "https://2fd.github.io/rregex",
511
509
  "repository": "https://github.com/2fd/rregex",
512
- "regex": "1.0.6",
510
+ "regex": "1.1.9",
513
511
  "regex-syntax": "0.6.25"
514
512
  }
package/lib/module.js CHANGED
@@ -180,14 +180,6 @@ 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
- }
191
183
  /**
192
184
  * @param {string} text
193
185
  * @returns {string}
@@ -207,6 +199,14 @@ export function escape(text) {
207
199
  }
208
200
  }
209
201
 
202
+ let stack_pointer = 32;
203
+
204
+ function addBorrowedObject(obj) {
205
+ if (stack_pointer == 1) throw new Error('out of js stack');
206
+ heap[--stack_pointer] = obj;
207
+ return stack_pointer;
208
+ }
209
+
210
210
  function handleError(f, args) {
211
211
  try {
212
212
  return f.apply(this, args);
package/lib/rregex.wasm CHANGED
Binary file
@@ -1,6 +1,7 @@
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;
4
5
  export function __wbg_rregex_free(a: number): void;
5
6
  export function rregex_new(a: number, b: number): number;
6
7
  export function rregex_isMatch(a: number, b: number, c: number): number;
@@ -21,7 +22,6 @@ export function __wbg_rregexset_free(a: number): void;
21
22
  export function rregexset_new(a: number): number;
22
23
  export function rregexset_isMatch(a: number, b: number, c: number): number;
23
24
  export function rregexset_matches(a: number, b: number, c: number): number;
24
- export function escape(a: number, b: number, c: number): void;
25
25
  export function __wbindgen_malloc(a: number): number;
26
26
  export function __wbindgen_realloc(a: number, b: number, c: number): number;
27
27
  export function __wbindgen_add_to_stack_pointer(a: number): number;
package/lib/types.d.ts CHANGED
@@ -9,9 +9,7 @@ export function escape(text: string): string;
9
9
  export type Hir = {
10
10
  '@type': 'struct'
11
11
  '@name': 'regex_syntax::hir::Hir'
12
- bold: boolean;
13
- italic: boolean;
14
- size: number;
12
+ kind: HirKind
15
13
  }
16
14
 
17
15
 
@@ -505,6 +503,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
505
503
 
506
504
  export interface InitOutput {
507
505
  readonly memory: WebAssembly.Memory;
506
+ readonly escape: (a: number, b: number, c: number) => void;
508
507
  readonly __wbg_rregex_free: (a: number) => void;
509
508
  readonly rregex_new: (a: number, b: number) => number;
510
509
  readonly rregex_isMatch: (a: number, b: number, c: number) => number;
@@ -525,7 +524,6 @@ export interface InitOutput {
525
524
  readonly rregexset_new: (a: number) => number;
526
525
  readonly rregexset_isMatch: (a: number, b: number, c: number) => number;
527
526
  readonly rregexset_matches: (a: number, b: number, c: number) => number;
528
- readonly escape: (a: number, b: number, c: number) => void;
529
527
  readonly __wbindgen_malloc: (a: number) => number;
530
528
  readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
531
529
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
@@ -551,6 +549,6 @@ export const metadata: {
551
549
  ],
552
550
  "homepage": "https://2fd.github.io/rregex",
553
551
  "repository": "https://github.com/2fd/rregex",
554
- "regex": "1.0.6",
552
+ "regex": "1.1.9",
555
553
  "regex-syntax": "0.6.25"
556
554
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rregex",
3
- "version": "1.0.4",
3
+ "version": "1.1.3",
4
4
  "description": "Rust Regex binding for Javascript",
5
5
  "private": false,
6
6
  "main": "./lib/commonjs.js",