cdk-from-cfn 0.263.0 → 0.264.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.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Transforms the provided template into a CDK application in the specified
5
- * language.
6
- */
7
- export function transmute(template: string, language: string, stack_name: string): string;
8
3
  export function wasm_init(): void;
9
4
  /**
10
5
  * Returns an array containing all supported language names.
11
6
  */
12
7
  export function supported_languages(): any[];
8
+ /**
9
+ * Transforms the provided template into a CDK application in the specified
10
+ * language.
11
+ */
12
+ export function transmute(template: string, language: string, stack_name: string): string;
package/index.js CHANGED
@@ -91,6 +91,31 @@ function getDataViewMemory0() {
91
91
  return cachedDataViewMemory0;
92
92
  }
93
93
 
94
+ module.exports.wasm_init = function() {
95
+ wasm.wasm_init();
96
+ };
97
+
98
+ function getArrayJsValueFromWasm0(ptr, len) {
99
+ ptr = ptr >>> 0;
100
+ const mem = getDataViewMemory0();
101
+ const result = [];
102
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
103
+ result.push(wasm.__wbindgen_export_3.get(mem.getUint32(i, true)));
104
+ }
105
+ wasm.__externref_drop_slice(ptr, len);
106
+ return result;
107
+ }
108
+ /**
109
+ * Returns an array containing all supported language names.
110
+ * @returns {any[]}
111
+ */
112
+ module.exports.supported_languages = function() {
113
+ const ret = wasm.supported_languages();
114
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
115
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
116
+ return v1;
117
+ };
118
+
94
119
  function takeFromExternrefTable0(idx) {
95
120
  const value = wasm.__wbindgen_export_3.get(idx);
96
121
  wasm.__externref_table_dealloc(idx);
@@ -129,31 +154,6 @@ module.exports.transmute = function(template, language, stack_name) {
129
154
  }
130
155
  };
131
156
 
132
- module.exports.wasm_init = function() {
133
- wasm.wasm_init();
134
- };
135
-
136
- function getArrayJsValueFromWasm0(ptr, len) {
137
- ptr = ptr >>> 0;
138
- const mem = getDataViewMemory0();
139
- const result = [];
140
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
141
- result.push(wasm.__wbindgen_export_3.get(mem.getUint32(i, true)));
142
- }
143
- wasm.__externref_drop_slice(ptr, len);
144
- return result;
145
- }
146
- /**
147
- * Returns an array containing all supported language names.
148
- * @returns {any[]}
149
- */
150
- module.exports.supported_languages = function() {
151
- const ret = wasm.supported_languages();
152
- var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
153
- wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
154
- return v1;
155
- };
156
-
157
157
  module.exports.__wbg_Error_1f3748b298f99708 = function(arg0, arg1) {
158
158
  const ret = Error(getStringFromWasm0(arg0, arg1));
159
159
  return ret;
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.263.0",
4
+ "version": "0.264.0",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",