cdk-from-cfn 0.248.0 → 0.249.0
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/index.js +18 -13
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -4,10 +4,6 @@ imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
4
|
let wasm;
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
6
6
|
|
7
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
8
|
-
|
9
|
-
cachedTextDecoder.decode();
|
10
|
-
|
11
7
|
let cachedUint8ArrayMemory0 = null;
|
12
8
|
|
13
9
|
function getUint8ArrayMemory0() {
|
@@ -17,14 +13,22 @@ function getUint8ArrayMemory0() {
|
|
17
13
|
return cachedUint8ArrayMemory0;
|
18
14
|
}
|
19
15
|
|
16
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
17
|
+
|
18
|
+
cachedTextDecoder.decode();
|
19
|
+
|
20
|
+
function decodeText(ptr, len) {
|
21
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
22
|
+
}
|
23
|
+
|
20
24
|
function getStringFromWasm0(ptr, len) {
|
21
25
|
ptr = ptr >>> 0;
|
22
|
-
return
|
26
|
+
return decodeText(ptr, len);
|
23
27
|
}
|
24
28
|
|
25
29
|
let WASM_VECTOR_LEN = 0;
|
26
30
|
|
27
|
-
|
31
|
+
const cachedTextEncoder = new TextEncoder('utf-8');
|
28
32
|
|
29
33
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
30
34
|
? function (arg, view) {
|
@@ -150,6 +154,11 @@ module.exports.wasm_init = function() {
|
|
150
154
|
wasm.wasm_init();
|
151
155
|
};
|
152
156
|
|
157
|
+
module.exports.__wbg_Error_1f3748b298f99708 = function(arg0, arg1) {
|
158
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
159
|
+
return ret;
|
160
|
+
};
|
161
|
+
|
153
162
|
module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
154
163
|
let deferred0_0;
|
155
164
|
let deferred0_1;
|
@@ -175,8 +184,9 @@ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
175
184
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
176
185
|
};
|
177
186
|
|
178
|
-
module.exports.
|
179
|
-
|
187
|
+
module.exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
188
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
189
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
180
190
|
return ret;
|
181
191
|
};
|
182
192
|
|
@@ -191,11 +201,6 @@ module.exports.__wbindgen_init_externref_table = function() {
|
|
191
201
|
;
|
192
202
|
};
|
193
203
|
|
194
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
195
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
196
|
-
return ret;
|
197
|
-
};
|
198
|
-
|
199
204
|
const path = require('path').join(__dirname, 'index_bg.wasm');
|
200
205
|
const bytes = require('fs').readFileSync(path);
|
201
206
|
|
package/index_bg.wasm
CHANGED
Binary file
|