@faasjs/load 0.0.2-beta.326 → 0.0.2-beta.330

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/dist/index.js CHANGED
@@ -138,7 +138,7 @@ function swc(externalModules) {
138
138
  }
139
139
  };
140
140
  }
141
- async function loadTs(filename, options = Object.create(null)) {
141
+ async function loadTs(filename, options = /* @__PURE__ */ Object.create(null)) {
142
142
  var _a;
143
143
  const PackageJSON = require(`${process.cwd()}/package.json`);
144
144
  const external = PackageJSON.dependencies ? Object.keys(PackageJSON.dependencies) : [];
@@ -151,7 +151,7 @@ async function loadTs(filename, options = Object.create(null)) {
151
151
  onwarn: () => null
152
152
  }, options.input || {});
153
153
  const bundle2 = await (0, import_rollup.rollup)(input);
154
- const dependencies = Object.create(null);
154
+ const dependencies = /* @__PURE__ */ Object.create(null);
155
155
  for (const m of ((_a = bundle2.cache) == null ? void 0 : _a.modules) || [])
156
156
  for (const d of m.dependencies)
157
157
  if (!d.startsWith("/") && !dependencies[d] && !import_ts_transform.NodeBuiltinModules.includes(d))
@@ -162,13 +162,13 @@ async function loadTs(filename, options = Object.create(null)) {
162
162
  exports: "auto"
163
163
  }, options.output || {});
164
164
  await bundle2.write(output);
165
- const result = Object.create(null);
165
+ const result = /* @__PURE__ */ Object.create(null);
166
166
  result.dependencies = dependencies;
167
167
  result.module = require(output.file);
168
168
  if (options.tmp)
169
169
  (0, import_fs2.unlinkSync)(output.file);
170
170
  if (options.modules) {
171
- const modules = Object.create(null);
171
+ const modules = /* @__PURE__ */ Object.create(null);
172
172
  Object.keys(dependencies).map((d) => findModule(modules, d, options.modules));
173
173
  if (options.modules.additions)
174
174
  options.modules.additions.map((d) => findModule(modules, d, options.modules));
package/dist/index.mjs CHANGED
@@ -124,7 +124,7 @@ function swc(externalModules) {
124
124
  }
125
125
  };
126
126
  }
127
- async function loadTs(filename, options = Object.create(null)) {
127
+ async function loadTs(filename, options = /* @__PURE__ */ Object.create(null)) {
128
128
  var _a;
129
129
  const PackageJSON = __require(`${process.cwd()}/package.json`);
130
130
  const external = PackageJSON.dependencies ? Object.keys(PackageJSON.dependencies) : [];
@@ -137,7 +137,7 @@ async function loadTs(filename, options = Object.create(null)) {
137
137
  onwarn: () => null
138
138
  }, options.input || {});
139
139
  const bundle2 = await rollup(input);
140
- const dependencies = Object.create(null);
140
+ const dependencies = /* @__PURE__ */ Object.create(null);
141
141
  for (const m of ((_a = bundle2.cache) == null ? void 0 : _a.modules) || [])
142
142
  for (const d of m.dependencies)
143
143
  if (!d.startsWith("/") && !dependencies[d] && !NodeBuiltinModules.includes(d))
@@ -148,13 +148,13 @@ async function loadTs(filename, options = Object.create(null)) {
148
148
  exports: "auto"
149
149
  }, options.output || {});
150
150
  await bundle2.write(output);
151
- const result = Object.create(null);
151
+ const result = /* @__PURE__ */ Object.create(null);
152
152
  result.dependencies = dependencies;
153
153
  result.module = __require(output.file);
154
154
  if (options.tmp)
155
155
  unlinkSync(output.file);
156
156
  if (options.modules) {
157
- const modules = Object.create(null);
157
+ const modules = /* @__PURE__ */ Object.create(null);
158
158
  Object.keys(dependencies).map((d) => findModule(modules, d, options.modules));
159
159
  if (options.modules.additions)
160
160
  options.modules.additions.map((d) => findModule(modules, d, options.modules));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/load",
3
- "version": "0.0.2-beta.326",
3
+ "version": "0.0.2-beta.330",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,9 +23,9 @@
23
23
  "dist"
24
24
  ],
25
25
  "peerDependencies": {
26
- "@faasjs/deep_merge": "^0.0.2-beta.326",
27
- "@faasjs/func": "^0.0.2-beta.326",
28
- "@faasjs/ts-transform": "^0.0.2-beta.326",
26
+ "@faasjs/deep_merge": "^0.0.2-beta.330",
27
+ "@faasjs/func": "^0.0.2-beta.330",
28
+ "@faasjs/ts-transform": "^0.0.2-beta.330",
29
29
  "js-yaml": "*",
30
30
  "rollup": "*"
31
31
  },