rregex 1.10.3 → 1.10.5
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/README.md +33 -1
- package/jsr.json +14 -0
- package/lib/{module.d.ts → bundler.d.ts} +0 -12
- package/lib/bundler.mjs +16 -0
- package/lib/{module.js → bundler_bg.mjs} +32 -23
- package/lib/{commonjs.js → commonjs.cjs} +32 -35
- package/lib/commonjs.d.ts +0 -12
- package/lib/{browser.d.ts → esm.d.ts} +0 -69
- package/lib/esm.mjs +1210 -0
- package/lib/rregex.wasm +0 -0
- package/lib/standalone.d.ts +1300 -0
- package/lib/standalone.js +1283 -0
- package/lib/types.d.ts +2 -2
- package/lib/{browser.js → web.js} +33 -24
- package/package.json +46 -20
package/README.md
CHANGED
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
A WebAssembly build of [Rust Regex](https://docs.rs/regex/latest/regex/) for Javascript
|
|
4
4
|
|
|
5
|
+
  
|
|
6
|
+

|
|
7
|
+
|
|
5
8
|
> Note: this project is not intended to be used in production jet
|
|
6
9
|
|
|
7
10
|
- [Why Rust Regex](#why-rust-regex)
|
|
8
11
|
- [Install](#install)
|
|
12
|
+
- [Supported Runtimes](#supported-runtimes)
|
|
9
13
|
- [API](https://tsdocs.dev/docs/rregex/latest)
|
|
10
14
|
- [`RRegex`](https://tsdocs.dev/docs/rregex/latest/classes/RRegex.html)
|
|
11
15
|
- [`RRegexSet`](https://tsdocs.dev/docs/rregex/latest/classes/RRegexSet.html)
|
|
@@ -23,9 +27,37 @@ Rust has a powerful Regex library with a lot of features that don't exists en th
|
|
|
23
27
|
## Install
|
|
24
28
|
|
|
25
29
|
```bash
|
|
26
|
-
|
|
30
|
+
# NPM
|
|
31
|
+
npm install rregex
|
|
32
|
+
|
|
33
|
+
# Yarn
|
|
34
|
+
yarn add rregex
|
|
35
|
+
|
|
36
|
+
# PNPM
|
|
37
|
+
pnpm add rregex
|
|
38
|
+
|
|
39
|
+
# Deno
|
|
40
|
+
deno add @rregex/rregex
|
|
41
|
+
|
|
42
|
+
# JSR
|
|
43
|
+
npx jsr add @rregex/rregex
|
|
27
44
|
```
|
|
28
45
|
|
|
46
|
+
## Supported Runtimes
|
|
47
|
+
|
|
48
|
+
This package includes builds for multiple runtimes
|
|
49
|
+
|
|
50
|
+
| Runtime | File |
|
|
51
|
+
| ------------------ | ----------------------------------------------- |
|
|
52
|
+
| Node.js (esm) | [`lib/esm.mjs` (default)](./test/node.test.mjs) |
|
|
53
|
+
| Node.js (commonjs) | [`lib/commonjs.cjs`](./test/node.test.cjs) |
|
|
54
|
+
| Deno | [`lib/esm.mjs`](./test/deno.test.mjs) |
|
|
55
|
+
| Bun | [`lib/esm.mjs`](./test/bun.test.mjs) |
|
|
56
|
+
| Cloudflare Workers | TODO |
|
|
57
|
+
| Browser | TODO |
|
|
58
|
+
| Standalone | TODO |
|
|
59
|
+
| Typescript | `lib/types.d.ts` |
|
|
60
|
+
|
|
29
61
|
## Known Issues
|
|
30
62
|
|
|
31
63
|
If you call `splitn(text, limit)` and the expected result length is equal to `limit - 1` the result will include an extra item `""`, this behavior does not happen if `limit` es greater. **`fixed at >=1.3`**
|
package/jsr.json
ADDED
|
@@ -1249,15 +1249,3 @@ export class RRegexSet {
|
|
|
1249
1249
|
*/
|
|
1250
1250
|
matches(text: string): number[];
|
|
1251
1251
|
}
|
|
1252
|
-
|
|
1253
|
-
export const metadata: {
|
|
1254
|
-
"name": "rregex",
|
|
1255
|
-
"description": "Rust Regex binding for Javascript",
|
|
1256
|
-
"authors": [
|
|
1257
|
-
"Fede Ramirez <i@2fd.me>"
|
|
1258
|
-
],
|
|
1259
|
-
"homepage": "http://rregex.dev",
|
|
1260
|
-
"repository": "https://github.com/2fd/rregex",
|
|
1261
|
-
"regex": "1.10.3",
|
|
1262
|
-
"regex-syntax": "0.8.2"
|
|
1263
|
-
}
|
package/lib/bundler.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as wasm from "./rregex.wasm";
|
|
2
|
+
import { __wbg_set_wasm } from "./bundler_bg.mjs";
|
|
3
|
+
__wbg_set_wasm(wasm);
|
|
4
|
+
export * from "./bundler_bg.mjs";
|
|
5
|
+
|
|
6
|
+
export const metadata = {
|
|
7
|
+
"name": "rregex",
|
|
8
|
+
"description": "Rust Regex binding for Javascript",
|
|
9
|
+
"authors": [
|
|
10
|
+
"Fede Ramirez <i@2fd.me>"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "http://rregex.dev",
|
|
13
|
+
"repository": "https://github.com/2fd/rregex",
|
|
14
|
+
"regex": "1.10.4",
|
|
15
|
+
"regex-syntax": "0.8.3"
|
|
16
|
+
}
|
|
@@ -104,6 +104,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
104
104
|
const ret = encodeString(arg, view);
|
|
105
105
|
|
|
106
106
|
offset += ret.written;
|
|
107
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
WASM_VECTOR_LEN = offset;
|
|
@@ -184,6 +185,10 @@ function handleError(f, args) {
|
|
|
184
185
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
185
186
|
}
|
|
186
187
|
}
|
|
188
|
+
|
|
189
|
+
const RRegexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
190
|
+
? { register: () => {}, unregister: () => {} }
|
|
191
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rregex_free(ptr >>> 0));
|
|
187
192
|
/**
|
|
188
193
|
* A compiled regular expression for matching Unicode strings.
|
|
189
194
|
*
|
|
@@ -230,7 +235,7 @@ export class RRegex {
|
|
|
230
235
|
__destroy_into_raw() {
|
|
231
236
|
const ptr = this.__wbg_ptr;
|
|
232
237
|
this.__wbg_ptr = 0;
|
|
233
|
-
|
|
238
|
+
RRegexFinalization.unregister(this);
|
|
234
239
|
return ptr;
|
|
235
240
|
}
|
|
236
241
|
|
|
@@ -940,6 +945,10 @@ export class RRegex {
|
|
|
940
945
|
}
|
|
941
946
|
}
|
|
942
947
|
}
|
|
948
|
+
|
|
949
|
+
const RRegexSetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
950
|
+
? { register: () => {}, unregister: () => {} }
|
|
951
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rregexset_free(ptr >>> 0));
|
|
943
952
|
/**
|
|
944
953
|
* Match multiple (possibly overlapping) regular expressions in a single scan.
|
|
945
954
|
* A regex set corresponds to the union of two or more regular expressions.
|
|
@@ -957,7 +966,7 @@ export class RRegexSet {
|
|
|
957
966
|
__destroy_into_raw() {
|
|
958
967
|
const ptr = this.__wbg_ptr;
|
|
959
968
|
this.__wbg_ptr = 0;
|
|
960
|
-
|
|
969
|
+
RRegexSetFinalization.unregister(this);
|
|
961
970
|
return ptr;
|
|
962
971
|
}
|
|
963
972
|
|
|
@@ -1097,15 +1106,15 @@ export function __wbindgen_string_new(arg0, arg1) {
|
|
|
1097
1106
|
return addHeapObject(ret);
|
|
1098
1107
|
};
|
|
1099
1108
|
|
|
1100
|
-
export function __wbindgen_object_drop_ref(arg0) {
|
|
1101
|
-
takeObject(arg0);
|
|
1102
|
-
};
|
|
1103
|
-
|
|
1104
1109
|
export function __wbindgen_number_new(arg0) {
|
|
1105
1110
|
const ret = arg0;
|
|
1106
1111
|
return addHeapObject(ret);
|
|
1107
1112
|
};
|
|
1108
1113
|
|
|
1114
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
1115
|
+
takeObject(arg0);
|
|
1116
|
+
};
|
|
1117
|
+
|
|
1109
1118
|
export function __wbindgen_string_get(arg0, arg1) {
|
|
1110
1119
|
const obj = getObject(arg1);
|
|
1111
1120
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -1120,75 +1129,75 @@ export function __wbindgen_error_new(arg0, arg1) {
|
|
|
1120
1129
|
return addHeapObject(ret);
|
|
1121
1130
|
};
|
|
1122
1131
|
|
|
1123
|
-
export function
|
|
1124
|
-
const ret =
|
|
1132
|
+
export function __wbindgen_bigint_from_u64(arg0) {
|
|
1133
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1125
1134
|
return addHeapObject(ret);
|
|
1126
1135
|
};
|
|
1127
1136
|
|
|
1128
|
-
export function
|
|
1129
|
-
const ret =
|
|
1137
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
|
1138
|
+
const ret = getObject(arg0);
|
|
1130
1139
|
return addHeapObject(ret);
|
|
1131
1140
|
};
|
|
1132
1141
|
|
|
1133
|
-
export function
|
|
1142
|
+
export function __wbg_set_f975102236d3c502(arg0, arg1, arg2) {
|
|
1134
1143
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
1135
1144
|
};
|
|
1136
1145
|
|
|
1137
|
-
export function
|
|
1146
|
+
export function __wbg_get_bd8e338fbd5f5cc8(arg0, arg1) {
|
|
1138
1147
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1139
1148
|
return addHeapObject(ret);
|
|
1140
1149
|
};
|
|
1141
1150
|
|
|
1142
|
-
export function
|
|
1151
|
+
export function __wbg_length_cd7af8117672b8b8(arg0) {
|
|
1143
1152
|
const ret = getObject(arg0).length;
|
|
1144
1153
|
return ret;
|
|
1145
1154
|
};
|
|
1146
1155
|
|
|
1147
|
-
export function
|
|
1156
|
+
export function __wbg_new_16b304a2cfa7ff4a() {
|
|
1148
1157
|
const ret = new Array();
|
|
1149
1158
|
return addHeapObject(ret);
|
|
1150
1159
|
};
|
|
1151
1160
|
|
|
1152
|
-
export function
|
|
1161
|
+
export function __wbg_new_72fb9a18b5ae2624() {
|
|
1153
1162
|
const ret = new Object();
|
|
1154
1163
|
return addHeapObject(ret);
|
|
1155
1164
|
};
|
|
1156
1165
|
|
|
1157
|
-
export function
|
|
1166
|
+
export function __wbg_set_d4638f722068f043(arg0, arg1, arg2) {
|
|
1158
1167
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1159
1168
|
};
|
|
1160
1169
|
|
|
1161
|
-
export function
|
|
1170
|
+
export function __wbg_from_89e3fc3ba5e6fb48(arg0) {
|
|
1162
1171
|
const ret = Array.from(getObject(arg0));
|
|
1163
1172
|
return addHeapObject(ret);
|
|
1164
1173
|
};
|
|
1165
1174
|
|
|
1166
|
-
export function
|
|
1175
|
+
export function __wbg_push_a5b05aedc7234f9f(arg0, arg1) {
|
|
1167
1176
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
1168
1177
|
return ret;
|
|
1169
1178
|
};
|
|
1170
1179
|
|
|
1171
|
-
export function
|
|
1180
|
+
export function __wbg_fromCodePoint_cedd7612a2ff688f() { return handleError(function (arg0) {
|
|
1172
1181
|
const ret = String.fromCodePoint(arg0 >>> 0);
|
|
1173
1182
|
return addHeapObject(ret);
|
|
1174
1183
|
}, arguments) };
|
|
1175
1184
|
|
|
1176
|
-
export function
|
|
1185
|
+
export function __wbg_buffer_12d079cc21e14bdb(arg0) {
|
|
1177
1186
|
const ret = getObject(arg0).buffer;
|
|
1178
1187
|
return addHeapObject(ret);
|
|
1179
1188
|
};
|
|
1180
1189
|
|
|
1181
|
-
export function
|
|
1190
|
+
export function __wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb(arg0, arg1, arg2) {
|
|
1182
1191
|
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1183
1192
|
return addHeapObject(ret);
|
|
1184
1193
|
};
|
|
1185
1194
|
|
|
1186
|
-
export function
|
|
1195
|
+
export function __wbg_new_63b92bc8671ed464(arg0) {
|
|
1187
1196
|
const ret = new Uint8Array(getObject(arg0));
|
|
1188
1197
|
return addHeapObject(ret);
|
|
1189
1198
|
};
|
|
1190
1199
|
|
|
1191
|
-
export function
|
|
1200
|
+
export function __wbg_set_1f9b04f170055d33() { return handleError(function (arg0, arg1, arg2) {
|
|
1192
1201
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
1193
1202
|
return ret;
|
|
1194
1203
|
}, arguments) };
|
|
@@ -99,6 +99,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
99
99
|
const ret = encodeString(arg, view);
|
|
100
100
|
|
|
101
101
|
offset += ret.written;
|
|
102
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
WASM_VECTOR_LEN = offset;
|
|
@@ -179,6 +180,10 @@ function handleError(f, args) {
|
|
|
179
180
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
180
181
|
}
|
|
181
182
|
}
|
|
183
|
+
|
|
184
|
+
const RRegexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
185
|
+
? { register: () => {}, unregister: () => {} }
|
|
186
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rregex_free(ptr >>> 0));
|
|
182
187
|
/**
|
|
183
188
|
* A compiled regular expression for matching Unicode strings.
|
|
184
189
|
*
|
|
@@ -225,7 +230,7 @@ class RRegex {
|
|
|
225
230
|
__destroy_into_raw() {
|
|
226
231
|
const ptr = this.__wbg_ptr;
|
|
227
232
|
this.__wbg_ptr = 0;
|
|
228
|
-
|
|
233
|
+
RRegexFinalization.unregister(this);
|
|
229
234
|
return ptr;
|
|
230
235
|
}
|
|
231
236
|
|
|
@@ -936,6 +941,10 @@ class RRegex {
|
|
|
936
941
|
}
|
|
937
942
|
}
|
|
938
943
|
module.exports.RRegex = RRegex;
|
|
944
|
+
|
|
945
|
+
const RRegexSetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
946
|
+
? { register: () => {}, unregister: () => {} }
|
|
947
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rregexset_free(ptr >>> 0));
|
|
939
948
|
/**
|
|
940
949
|
* Match multiple (possibly overlapping) regular expressions in a single scan.
|
|
941
950
|
* A regex set corresponds to the union of two or more regular expressions.
|
|
@@ -953,7 +962,7 @@ class RRegexSet {
|
|
|
953
962
|
__destroy_into_raw() {
|
|
954
963
|
const ptr = this.__wbg_ptr;
|
|
955
964
|
this.__wbg_ptr = 0;
|
|
956
|
-
|
|
965
|
+
RRegexSetFinalization.unregister(this);
|
|
957
966
|
return ptr;
|
|
958
967
|
}
|
|
959
968
|
|
|
@@ -1094,15 +1103,15 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
1094
1103
|
return addHeapObject(ret);
|
|
1095
1104
|
};
|
|
1096
1105
|
|
|
1097
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
1098
|
-
takeObject(arg0);
|
|
1099
|
-
};
|
|
1100
|
-
|
|
1101
1106
|
module.exports.__wbindgen_number_new = function(arg0) {
|
|
1102
1107
|
const ret = arg0;
|
|
1103
1108
|
return addHeapObject(ret);
|
|
1104
1109
|
};
|
|
1105
1110
|
|
|
1111
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
1112
|
+
takeObject(arg0);
|
|
1113
|
+
};
|
|
1114
|
+
|
|
1106
1115
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
1107
1116
|
const obj = getObject(arg1);
|
|
1108
1117
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -1117,75 +1126,75 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
1117
1126
|
return addHeapObject(ret);
|
|
1118
1127
|
};
|
|
1119
1128
|
|
|
1120
|
-
module.exports.
|
|
1121
|
-
const ret =
|
|
1129
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1130
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1122
1131
|
return addHeapObject(ret);
|
|
1123
1132
|
};
|
|
1124
1133
|
|
|
1125
|
-
module.exports.
|
|
1126
|
-
const ret =
|
|
1134
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
1135
|
+
const ret = getObject(arg0);
|
|
1127
1136
|
return addHeapObject(ret);
|
|
1128
1137
|
};
|
|
1129
1138
|
|
|
1130
|
-
module.exports.
|
|
1139
|
+
module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
1131
1140
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
1132
1141
|
};
|
|
1133
1142
|
|
|
1134
|
-
module.exports.
|
|
1143
|
+
module.exports.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
|
|
1135
1144
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1136
1145
|
return addHeapObject(ret);
|
|
1137
1146
|
};
|
|
1138
1147
|
|
|
1139
|
-
module.exports.
|
|
1148
|
+
module.exports.__wbg_length_cd7af8117672b8b8 = function(arg0) {
|
|
1140
1149
|
const ret = getObject(arg0).length;
|
|
1141
1150
|
return ret;
|
|
1142
1151
|
};
|
|
1143
1152
|
|
|
1144
|
-
module.exports.
|
|
1153
|
+
module.exports.__wbg_new_16b304a2cfa7ff4a = function() {
|
|
1145
1154
|
const ret = new Array();
|
|
1146
1155
|
return addHeapObject(ret);
|
|
1147
1156
|
};
|
|
1148
1157
|
|
|
1149
|
-
module.exports.
|
|
1158
|
+
module.exports.__wbg_new_72fb9a18b5ae2624 = function() {
|
|
1150
1159
|
const ret = new Object();
|
|
1151
1160
|
return addHeapObject(ret);
|
|
1152
1161
|
};
|
|
1153
1162
|
|
|
1154
|
-
module.exports.
|
|
1163
|
+
module.exports.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) {
|
|
1155
1164
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1156
1165
|
};
|
|
1157
1166
|
|
|
1158
|
-
module.exports.
|
|
1167
|
+
module.exports.__wbg_from_89e3fc3ba5e6fb48 = function(arg0) {
|
|
1159
1168
|
const ret = Array.from(getObject(arg0));
|
|
1160
1169
|
return addHeapObject(ret);
|
|
1161
1170
|
};
|
|
1162
1171
|
|
|
1163
|
-
module.exports.
|
|
1172
|
+
module.exports.__wbg_push_a5b05aedc7234f9f = function(arg0, arg1) {
|
|
1164
1173
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
1165
1174
|
return ret;
|
|
1166
1175
|
};
|
|
1167
1176
|
|
|
1168
|
-
module.exports.
|
|
1177
|
+
module.exports.__wbg_fromCodePoint_cedd7612a2ff688f = function() { return handleError(function (arg0) {
|
|
1169
1178
|
const ret = String.fromCodePoint(arg0 >>> 0);
|
|
1170
1179
|
return addHeapObject(ret);
|
|
1171
1180
|
}, arguments) };
|
|
1172
1181
|
|
|
1173
|
-
module.exports.
|
|
1182
|
+
module.exports.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
|
|
1174
1183
|
const ret = getObject(arg0).buffer;
|
|
1175
1184
|
return addHeapObject(ret);
|
|
1176
1185
|
};
|
|
1177
1186
|
|
|
1178
|
-
module.exports.
|
|
1187
|
+
module.exports.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb = function(arg0, arg1, arg2) {
|
|
1179
1188
|
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1180
1189
|
return addHeapObject(ret);
|
|
1181
1190
|
};
|
|
1182
1191
|
|
|
1183
|
-
module.exports.
|
|
1192
|
+
module.exports.__wbg_new_63b92bc8671ed464 = function(arg0) {
|
|
1184
1193
|
const ret = new Uint8Array(getObject(arg0));
|
|
1185
1194
|
return addHeapObject(ret);
|
|
1186
1195
|
};
|
|
1187
1196
|
|
|
1188
|
-
module.exports.
|
|
1197
|
+
module.exports.__wbg_set_1f9b04f170055d33 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1189
1198
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
1190
1199
|
return ret;
|
|
1191
1200
|
}, arguments) };
|
|
@@ -1207,15 +1216,3 @@ const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
|
1207
1216
|
wasm = wasmInstance.exports;
|
|
1208
1217
|
module.exports.__wasm = wasm;
|
|
1209
1218
|
|
|
1210
|
-
|
|
1211
|
-
module.exports.metadata = {
|
|
1212
|
-
"name": "rregex",
|
|
1213
|
-
"description": "Rust Regex binding for Javascript",
|
|
1214
|
-
"authors": [
|
|
1215
|
-
"Fede Ramirez <i@2fd.me>"
|
|
1216
|
-
],
|
|
1217
|
-
"homepage": "http://rregex.dev",
|
|
1218
|
-
"repository": "https://github.com/2fd/rregex",
|
|
1219
|
-
"regex": "1.10.3",
|
|
1220
|
-
"regex-syntax": "0.8.2"
|
|
1221
|
-
}
|
package/lib/commonjs.d.ts
CHANGED
|
@@ -1249,15 +1249,3 @@ export class RRegexSet {
|
|
|
1249
1249
|
*/
|
|
1250
1250
|
matches(text: string): number[];
|
|
1251
1251
|
}
|
|
1252
|
-
|
|
1253
|
-
export const metadata: {
|
|
1254
|
-
"name": "rregex",
|
|
1255
|
-
"description": "Rust Regex binding for Javascript",
|
|
1256
|
-
"authors": [
|
|
1257
|
-
"Fede Ramirez <i@2fd.me>"
|
|
1258
|
-
],
|
|
1259
|
-
"homepage": "http://rregex.dev",
|
|
1260
|
-
"repository": "https://github.com/2fd/rregex",
|
|
1261
|
-
"regex": "1.10.3",
|
|
1262
|
-
"regex-syntax": "0.8.2"
|
|
1263
|
-
}
|
|
@@ -1249,72 +1249,3 @@ export class RRegexSet {
|
|
|
1249
1249
|
*/
|
|
1250
1250
|
matches(text: string): number[];
|
|
1251
1251
|
}
|
|
1252
|
-
|
|
1253
|
-
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
1254
|
-
|
|
1255
|
-
export interface InitOutput {
|
|
1256
|
-
readonly memory: WebAssembly.Memory;
|
|
1257
|
-
readonly __wbg_rregex_free: (a: number) => void;
|
|
1258
|
-
readonly rregex_new: (a: number, b: number, c: number) => void;
|
|
1259
|
-
readonly rregex_isMatch: (a: number, b: number, c: number) => number;
|
|
1260
|
-
readonly rregex_isMatchAt: (a: number, b: number, c: number, d: number) => number;
|
|
1261
|
-
readonly rregex_find: (a: number, b: number, c: number, d: number) => void;
|
|
1262
|
-
readonly rregex_findAt: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1263
|
-
readonly rregex_findAll: (a: number, b: number, c: number, d: number) => void;
|
|
1264
|
-
readonly rregex_captureNames: (a: number, b: number) => void;
|
|
1265
|
-
readonly rregex_captures: (a: number, b: number, c: number, d: number) => void;
|
|
1266
|
-
readonly rregex_capturesAll: (a: number, b: number, c: number, d: number) => void;
|
|
1267
|
-
readonly rregex_capturesLength: (a: number) => number;
|
|
1268
|
-
readonly rregex_replace: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1269
|
-
readonly rregex_replacen: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1270
|
-
readonly rregex_replaceAll: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1271
|
-
readonly rregex_split: (a: number, b: number, c: number, d: number) => void;
|
|
1272
|
-
readonly rregex_splitn: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1273
|
-
readonly rregex_shortestMatch: (a: number, b: number, c: number, d: number) => void;
|
|
1274
|
-
readonly rregex_shortestMatchAt: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1275
|
-
readonly rregex_syntax: (a: number, b: number) => void;
|
|
1276
|
-
readonly rregex_toString: (a: number, b: number) => void;
|
|
1277
|
-
readonly __wbg_rregexset_free: (a: number) => void;
|
|
1278
|
-
readonly rregexset_new: (a: number, b: number) => void;
|
|
1279
|
-
readonly rregexset_isMatch: (a: number, b: number, c: number) => number;
|
|
1280
|
-
readonly rregexset_matches: (a: number, b: number, c: number, d: number) => void;
|
|
1281
|
-
readonly escape: (a: number, b: number, c: number) => void;
|
|
1282
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1283
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1284
|
-
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
1285
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
1286
|
-
readonly __wbindgen_exn_store: (a: number) => void;
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
1290
|
-
/**
|
|
1291
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
1292
|
-
* a precompiled `WebAssembly.Module`.
|
|
1293
|
-
*
|
|
1294
|
-
* @param {SyncInitInput} module
|
|
1295
|
-
*
|
|
1296
|
-
* @returns {InitOutput}
|
|
1297
|
-
*/
|
|
1298
|
-
export function initSync(module: SyncInitInput): InitOutput;
|
|
1299
|
-
|
|
1300
|
-
/**
|
|
1301
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
1302
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
1303
|
-
*
|
|
1304
|
-
* @param {InitInput | Promise<InitInput>} module_or_path
|
|
1305
|
-
*
|
|
1306
|
-
* @returns {Promise<InitOutput>}
|
|
1307
|
-
*/
|
|
1308
|
-
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
1309
|
-
|
|
1310
|
-
export const metadata: {
|
|
1311
|
-
"name": "rregex",
|
|
1312
|
-
"description": "Rust Regex binding for Javascript",
|
|
1313
|
-
"authors": [
|
|
1314
|
-
"Fede Ramirez <i@2fd.me>"
|
|
1315
|
-
],
|
|
1316
|
-
"homepage": "http://rregex.dev",
|
|
1317
|
-
"repository": "https://github.com/2fd/rregex",
|
|
1318
|
-
"regex": "1.10.3",
|
|
1319
|
-
"regex-syntax": "0.8.2"
|
|
1320
|
-
}
|