npm package diff
Package: @forge/bundler
Versions: 6.0.0-next.13 - 6.0.0-next.14
File: package/out/stubs/unsupported.js
Index: package/out/stubs/unsupported.js
===================================================================
--- package/out/stubs/unsupported.js
+++ package/out/stubs/unsupported.js
@@ -1,22 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const text_1 = require("../text");
-const requestedModule = '';
-const once = (fn) => (...args) => {
- if (fn) {
- fn(...args);
- }
- fn = null;
-};
-const warnOnce = once((message) => console.warn(message));
-const stub = (path) => new Proxy(() => {
- const prop = `${path}()`;
- console.log(`${prop} called`);
- return stub(`${prop}`);
-}, {
- get: (_, prop) => {
- warnOnce(text_1.Text.unsupported(requestedModule));
- return prop === Symbol.toPrimitive ? () => 'unsupported' : stub(`${path}.${prop.toString()}`);
- }
-});
-module.exports = stub(requestedModule);