cdk-from-cfn 0.247.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.
Files changed (3) hide show
  1. package/index.js +18 -13
  2. package/index_bg.wasm +0 -0
  3. 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 cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
26
+ return decodeText(ptr, len);
23
27
  }
24
28
 
25
29
  let WASM_VECTOR_LEN = 0;
26
30
 
27
- let cachedTextEncoder = new TextEncoder('utf-8');
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.__wbindgen_error_new = function(arg0, arg1) {
179
- const ret = new Error(getStringFromWasm0(arg0, arg1));
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cdk-from-cfn",
3
3
  "description": "Turn AWS CloudFormation templates into AWS CDK applications",
4
- "version": "0.247.0",
4
+ "version": "0.249.0",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",