Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@reform/bundle

Package Overview
Dependencies
Maintainers
2
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reform/bundle - npm Package Compare versions

Comparing version 0.11.5 to 0.11.6

4

dist/build/BuildAbstract.js

@@ -9,2 +9,4 @@ "use strict";

class BuildAbstract {
args;
bundleScriptList;
constructor(args, bundleConfigList) {

@@ -48,2 +50,2 @@ this.args = args;

exports.BuildAbstract = BuildAbstract;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnVpbGRBYnN0cmFjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idWlsZC9CdWlsZEFic3RyYWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUNBLGdFQUF3QztBQUd4QyxNQUFzQixhQUFhO0lBSS9CLFlBQVksSUFBbUIsRUFBRSxnQkFBZ0M7UUFDN0QsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUM7UUFDakIsSUFBSSxDQUFDLGdCQUFnQixHQUFHLGdCQUFnQixDQUFDO1FBRXpDLGdCQUFNLENBQUMsS0FBSyxDQUNSLElBQUksRUFBRSxXQUFXLEVBQUUsR0FBRyxnQkFBZ0IsQ0FBQyxHQUFHLENBQ3RDLENBQUMsRUFBQyxFQUFFLEVBQUUsTUFBTSxFQUFFLEVBQUMsSUFBSSxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUMsRUFBQyxFQUFFLEVBQUUsQ0FBQztZQUNwQztnQkFDSSxFQUFFO2dCQUNGLEtBQUs7Z0JBQ0wsSUFBSSxFQUFFLElBQUksQ0FBQyxRQUFRO2dCQUNuQixLQUFLLEVBQUUsS0FBSyxDQUFDLFFBQVE7YUFDeEI7U0FDSixDQUNKLENBQ0osQ0FBQztJQUN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O1FBQ2QsZ0JBQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLGFBQWEsQ0FBQyxDQUFDO1FBRWpDLE1BQU0sR0FBRyxHQUFvQixFQUFFLENBQUM7UUFDaEMsS0FBSyxNQUFNLFlBQVksSUFBSSxJQUFJLENBQUMsZ0JBQWdCLEVBQUU7WUFDOUMsR0FBRyxDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQztTQUNsQztRQUVELE1BQU0sT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUV2QixnQkFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDOUIsQ0FBQztJQUVNLEtBQUssQ0FBQyxLQUFLO1FBQ2QsZ0JBQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLGFBQWEsQ0FBQyxDQUFDO1FBRWpDLE1BQU0sR0FBRyxHQUFvQixFQUFFLENBQUM7UUFDaEMsS0FBSyxNQUFNLFlBQVksSUFBSSxJQUFJLENBQUMsZ0JBQWdCLEVBQUU7WUFDOUMsR0FBRyxDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQztTQUNsQztRQUVELE1BQU0sT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUV2QixnQkFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDOUIsQ0FBQztDQUNKO0FBdkRELHNDQXVEQyJ9

@@ -9,22 +9,15 @@ "use strict";

class BuildContext {
id;
args;
cache;
base;
build;
format;
platform;
entries;
loader = new Map();
extensions = new Set();
// @todo
publicPath = "";
constructor(config) {
this.loader = new Map();
this.extensions = new Set();
// @todo
this.publicPath = "";
this.getRelative = (file) => {
return (0, path_1.relative)(this.base.path, file);
};
this.getSource = (file) => {
return (0, path_1.join)(this.base.path, file);
};
this.getSourceFile = (file) => {
return Resources_1.File.factory({ prefix: this.base.path, relative: file });
};
this.getDestination = (file) => {
return (0, path_1.join)(this.build.path, file);
};
this.getSourceMap = (files) => {
return files.map((file) => this.getSource(file));
};
this.id = `${config.id}`;

@@ -57,4 +50,19 @@ this.base = config.base;

}
getRelative = (file) => {
return (0, path_1.relative)(this.base.path, file);
};
getSource = (file) => {
return (0, path_1.join)(this.base.path, file);
};
getSourceFile = (file) => {
return Resources_1.File.factory({ prefix: this.base.path, relative: file });
};
getDestination = (file) => {
return (0, path_1.join)(this.build.path, file);
};
getSourceMap = (files) => {
return files.map((file) => this.getSource(file));
};
}
exports.BuildContext = BuildContext;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnVpbGRDb250ZXh0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2J1aWxkL0J1aWxkQ29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBb0M7QUFFcEMsMENBQWtEO0FBQ2xELDJDQUE0QztBQUM1QywrQ0FBMEM7QUFZMUMsTUFBYSxZQUFZO0lBZXJCLFlBQVksTUFBMkI7UUFOdkIsV0FBTSxHQUFHLElBQUksR0FBRyxFQUFrQixDQUFDO1FBQ25DLGVBQVUsR0FBRyxJQUFJLEdBQUcsRUFBVSxDQUFDO1FBRS9DLFFBQVE7UUFDUSxlQUFVLEdBQUcsRUFBRSxDQUFDO1FBeUN6QixnQkFBVyxHQUFHLENBQUMsSUFBWSxFQUFFLEVBQUU7WUFDbEMsT0FBTyxJQUFBLGVBQVEsRUFBQyxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQztRQUMxQyxDQUFDLENBQUM7UUFFSyxjQUFTLEdBQUcsQ0FBQyxJQUFZLEVBQUUsRUFBRTtZQUNoQyxPQUFPLElBQU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EVBQUUsRUFBRTtRQUN0QyxPQUFPLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFBRSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUNyRCxDQUFDLENBQUM7Q0FDTDtBQXpFRCxvQ0F5RUMifQ==
"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var _BundleCache_context, _BundleCache_queue, _BundleCache_store;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -27,14 +15,15 @@ exports.BundleCache = void 0;

class BundleCache {
base;
#context;
#queue;
#store = cache;
constructor(context, base) {
_BundleCache_context.set(this, void 0);
_BundleCache_queue.set(this, void 0);
_BundleCache_store.set(this, cache);
this.base = base;
__classPrivateFieldSet(this, _BundleCache_context, context, "f");
__classPrivateFieldSet(this, _BundleCache_queue, new CacheQueue_1.CacheQueue(__classPrivateFieldGet(this, _BundleCache_context, "f").id), "f");
this.#context = context;
this.#queue = new CacheQueue_1.CacheQueue(this.#context.id);
logger_1.default.debug(this, "open");
if (__classPrivateFieldGet(this, _BundleCache_context, "f").watch) {
if (this.#context.watch) {
const watcherOptions = { ignoreInitial: true, recursive: true };
const watcher = new watcher_1.default(this.base.path, watcherOptions, (event, file) => {
__classPrivateFieldGet(this, _BundleCache_queue, "f").fire(file, event);
this.#queue.fire(file, event);
});

@@ -49,21 +38,21 @@ internal_1.Disposer.add(() => watcher.close());

get id() {
return __classPrivateFieldGet(this, _BundleCache_context, "f").id;
return this.#context.id;
}
on(file, handle) {
logger_1.default.debug(this, "on -> %s", file);
__classPrivateFieldGet(this, _BundleCache_queue, "f").add(file, handle);
this.#queue.add(file, handle);
}
once(file, handle) {
__classPrivateFieldGet(this, _BundleCache_queue, "f").add(file, (0, internal_1.assign)(handle, { [interfaces_1.CACHE_QUEUE_ONCE_QUEUE_HANDLE]: true }));
this.#queue.add(file, (0, internal_1.assign)(handle, { [interfaces_1.CACHE_QUEUE_ONCE_QUEUE_HANDLE]: true }));
}
off(file) {
logger_1.default.debug(this, "off -> %s", file);
__classPrivateFieldGet(this, _BundleCache_queue, "f").off(file);
this.#queue.off(file);
}
has(file) {
return __classPrivateFieldGet(this, _BundleCache_store, "f").has(file.path);
return this.#store.has(file.path);
}
async store(file, callback) {
const key = this.base.getRelativePath(file);
const container = __classPrivateFieldGet(this, _BundleCache_store, "f").get(file);
const container = this.#store.get(file);
const { ctime } = await (0, promises_1.stat)(file);

@@ -83,15 +72,14 @@ if (container) {

logger_1.default.debug(this, "store -> %s", key);
__classPrivateFieldGet(this, _BundleCache_store, "f").set(file, { result, deps, modified: ctime });
this.#store.set(file, { result, deps, modified: ctime });
return result;
}
drop(file) {
__classPrivateFieldGet(this, _BundleCache_store, "f").delete(file);
this.#store.delete(file);
}
reset() {
__classPrivateFieldGet(this, _BundleCache_store, "f").clear();
__classPrivateFieldGet(this, _BundleCache_queue, "f").reset();
this.#store.clear();
this.#queue.reset();
}
}
exports.BundleCache = BundleCache;
_BundleCache_context = new WeakMap(), _BundleCache_queue = new WeakMap(), _BundleCache_store = new WeakMap();
//# sourceMappingURL=data:application/json;base64,ey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QUFPLElBQUksU0FBUyxDQUFDLFFBQVEsQ0FBQyxPQUFPLEVBQUUsRUFBRTtnQkFDekMsZ0JBQU0sQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLFdBQVcsRUFBRSxHQUFHLENBQUMsQ0FBQztnQkFDckMsT0FBTyxTQUFTLENBQUMsTUFBVyxDQUFDO2FBQ2hDO1NBQ0o7UUFFRCxNQUFNLElBQUksR0FBYSxFQUFFLENBQUM7UUFDMUIsTUFBTSxNQUFNLEdBQUcsTUFBTSxRQUFRLENBQUMsSUFBSSxDQUFDLENBQUM7UUFFcEMsZ0JBQU0sQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLGFBQWEsRUFBRSxHQUFHLENBQUMsQ0FBQztRQUN2QyxJQUFJLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsRUFBQyxNQUFNLEVBQUUsSUFBSSxFQUFFLFFBQVEsRUFBRSxLQUFLLEVBQUMsQ0FBQyxDQUFDO1FBRXZELE9BQU8sTUFBVyxDQUFDO0lBQ3ZCLENBQUM7SUFFTSxJQUFJLENBQUMsSUFBWTtRQUNwQixJQUFJLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUM3QixDQUFDO0lBRU0sS0FBSztRQUNSLElBQUksQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLENBQUM7UUFDcEIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUN4QixDQUFDO0NBQ0o7QUF2RkQsa0NBdUZDIn0=
"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var _BundleScript_config, _BundleScript_context;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -25,20 +13,20 @@ exports.BundleScript = void 0;

class BundleScript {
#config;
#context;
constructor(context, config) {
_BundleScript_config.set(this, void 0);
_BundleScript_context.set(this, void 0);
__classPrivateFieldSet(this, _BundleScript_config, config, "f");
__classPrivateFieldSet(this, _BundleScript_context, context, "f");
this.#config = config;
this.#context = context;
}
get id() {
return __classPrivateFieldGet(this, _BundleScript_context, "f").id;
return this.#context.id;
}
get args() {
return __classPrivateFieldGet(this, _BundleScript_context, "f").args;
return this.#context.args;
}
get config() {
return __classPrivateFieldGet(this, _BundleScript_config, "f");
return this.#config;
}
async build() {
logger_1.default.info(this, "build");
const { files } = __classPrivateFieldGet(this, _BundleScript_config, "f");
const { files } = this.#config;
await this.check();

@@ -52,3 +40,3 @@ await Promise.all([

logger_1.default.info(this, "watch");
const { files } = __classPrivateFieldGet(this, _BundleScript_config, "f");
const { files } = this.#config;
const onRebuild = async (error) => {

@@ -89,3 +77,3 @@ if (error) {

getBuildConfig() {
const { args } = __classPrivateFieldGet(this, _BundleScript_context, "f");
const { args } = this.#context;
const define = {};

@@ -98,3 +86,3 @@ const dotEnvVariables = {};

files, // eslint-disable-line
bundle = true, loader = {}, paths = {}, plugins, sourcemap = args.isDevelopment, variables = {}, environment = [], envFiles = [], entry: { paths: entryPoints }, ...options } = __classPrivateFieldGet(this, _BundleScript_config, "f");
bundle = true, loader = {}, paths = {}, plugins, sourcemap = args.isDevelopment, variables = {}, environment = [], envFiles = [], entry: { paths: entryPoints }, ...options } = this.#config;
const { path: envBasePath } = this.config.base;

@@ -128,7 +116,7 @@ for (const envFile of envFiles) {

minify: args.isProduction,
outdir: __classPrivateFieldGet(this, _BundleScript_config, "f").build.path,
outbase: __classPrivateFieldGet(this, _BundleScript_config, "f").base.path,
outdir: this.#config.build.path,
outbase: this.#config.base.path,
metafile: true,
tsconfig: (0, internal_1.resolveThrough)(args.path, "tsconfig.json"),
loader: (0, internal_1.fromEntries)(...__classPrivateFieldGet(this, _BundleScript_context, "f").getLoaders(), ...(0, internal_1.entries)(loader)),
loader: (0, internal_1.fromEntries)(...this.#context.getLoaders(), ...(0, internal_1.entries)(loader)),
...options,

@@ -139,3 +127,2 @@ };

exports.BundleScript = BundleScript;
_BundleScript_config = new WeakMap(), _BundleScript_context = new WeakMap();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnVuZGxlU2NyaXB0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2J1aWxkL0J1bmRsZVNjcmlwdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwyQkFBZ0M7QUFDaEMsbUNBQWdEO0FBQ2hELHFDQUEwRDtBQUMxRCwwQ0FTcUI7QUFDckIsZ0VBQXdDO0FBSXhDLE1BQWEsWUFBWTtJQUlyQixZQUFZLE9BQXFCLEVBQUUsTUFBMkI7UUFIOUQsdUNBQXNDO1FBQ3RDLHdDQUFnQztRQUc1Qix1QkFBQSxJQUFJLHdCQUFXLE1BQU0sTUFBQSxDQUFDO1FBQ3RCLHVCQUFBLElBQUkseUJBQVksT0FBTyxNQUFBLENBQUM7SUFDNUIsQ0FBQztJQUVELElBQVcsRUFBRTtRQUNULE9BQU8sdUJBQUEsSUFBSSw2QkFBUyxDQUFDLEVBQUUsQ0FBQztJQ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WSxDQUFDLEdBQUcsSUFBSSxDQUFDLElBQUksS0FBSyxhQUFhLENBQUM7UUFDbkQsTUFBTSxDQUFDLGFBQWEsQ0FBQyxHQUFHLENBQUMsTUFBTSxDQUFDLFlBQVksQ0FBQyxDQUFDO1FBRTlDLE9BQU87WUFDSCxNQUFNO1lBQ04sTUFBTTtZQUNOLE9BQU87WUFDUCxTQUFTO1lBQ1QsV0FBVztZQUNYLFVBQVUsRUFBRSxLQUFLLENBQUMsS0FBSztZQUN2QixVQUFVLEVBQUUsS0FBSyxDQUFDLEtBQUs7WUFDdkIsVUFBVSxFQUFFLEtBQUssQ0FBQyxLQUFLO1lBQ3ZCLFVBQVUsRUFBRSxHQUFHO1lBQ2YsTUFBTSxFQUFFLElBQUksQ0FBQyxZQUFZO1lBQ3pCLE1BQU0sRUFBRSxJQUFJLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxJQUFJO1lBQy9CLE9BQU8sRUFBRSxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJO1lBQy9CLFFBQVEsRUFBRSxJQUFJO1lBQ2QsUUFBUSxFQUFFLElBQUEseUJBQWMsRUFBQyxJQUFJLENBQUMsSUFBSSxFQUFFLGVBQWUsQ0FBQztZQUNwRCxNQUFNLEVBQUUsSUFBQSxzQkFBVyxFQUFDLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQyxVQUFVLEVBQUUsRUFBRSxHQUFHLElBQUEsa0JBQU8sRUFBQyxNQUFNLENBQUMsQ0FBQztZQUN0RSxHQUFHLE9BQU87U0FDYixDQUFDO0lBQ04sQ0FBQztDQUNKO0FBOUlELG9DQThJQyJ9
"use strict";
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var _CacheQueue_queue;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CacheQueue = void 0;
class CacheQueue {
id;
#queue = new Map();
constructor(id) {
_CacheQueue_queue.set(this, new Map());
this.id = id;

@@ -24,5 +19,5 @@ }

ensure(key) {
const queue = __classPrivateFieldGet(this, _CacheQueue_queue, "f").get(key) ?? new Set();
if (!__classPrivateFieldGet(this, _CacheQueue_queue, "f").has(key)) {
__classPrivateFieldGet(this, _CacheQueue_queue, "f").set(key, queue);
const queue = this.#queue.get(key) ?? new Set();
if (!this.#queue.has(key)) {
this.#queue.set(key, queue);
}

@@ -38,10 +33,9 @@ return queue;

reset() {
for (const queue of __classPrivateFieldGet(this, _CacheQueue_queue, "f").values()) {
for (const queue of this.#queue.values()) {
queue.clear();
}
__classPrivateFieldGet(this, _CacheQueue_queue, "f").clear();
this.#queue.clear();
}
}
exports.CacheQueue = CacheQueue;
_CacheQueue_queue = new WeakMap();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2FjaGVRdWV1ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9idWlsZC9DYWNoZS9DYWNoZVF1ZXVlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUdBLE1BQWEsVUFBVTtJQUtuQixZQUFZLEVBQVU7UUFGdEIsNEJBQWtCLElBQUksR0FBRyxFQUF3RCxFQUFDO1FBRzlFLElBQUksQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDO0lBQ2pCLENBQUM7SUFFTSxHQUFHLENBQUMsR0FBVyxFQUFFLE1BQStDO1FBQ25FLE1BQU0sS0FBSyxHQUFHLElBQUksQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDL0IsS0FBSyxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsQ0FBQztR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LEdBQUcsRUFBRSxLQUFLLENBQUMsQ0FBQztTQUMvQjtRQUVELE9BQU8sS0FBSyxDQUFDO0lBQ2pCLENBQUM7SUFFTSxJQUFJLENBQUMsR0FBVyxFQUFFLEtBQWtCO1FBQ3ZDLE1BQU0sS0FBSyxHQUFHLElBQUksQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDL0IsS0FBSyxNQUFNLEVBQUUsSUFBSSxLQUFLLENBQUMsTUFBTSxFQUFFLEVBQUU7WUFDN0IsRUFBRSxDQUFDLEtBQUssQ0FBQyxDQUFDO1NBQ2I7SUFDTCxDQUFDO0lBRU0sS0FBSztRQUNSLEtBQUssTUFBTSxLQUFLLElBQUksSUFBSSxDQUFDLE1BQU0sQ0FBQyxNQUFNLEVBQUUsRUFBRTtZQUN0QyxLQUFLLENBQUMsS0FBSyxFQUFFLENBQUM7U0FDakI7UUFFRCxJQUFJLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQ3hCLENBQUM7Q0FDSjtBQTNDRCxnQ0EyQ0MifQ==

@@ -8,2 +8,3 @@ "use strict";

class Directory extends ResourceAbstract_1.ResourceAbstract {
fileFactory;
constructor(prefix, relative) {

@@ -21,2 +22,2 @@ super(prefix, relative);

exports.Directory = Directory;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGlyZWN0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2J1aWxkL1Jlc291cmNlcy9EaXJlY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQThCO0FBQzlCLHlEQUFvRDtBQUVwRCwrQ0FBMEM7QUFFMUMsTUFBYSxTQUFVLFNBQVEsbUNBQWdCO0lBRzNDLFlBQVksTUFBa0IsRUFBRSxRQUFnQjtRQUM1QyxLQUFLLENBQUMsTUFBTSxFQUFFLFFBQVEsQ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UFFTSxlQUFlLENBQUMsSUFBZ0I7UUFDbkMsT0FBTyxJQUFBLGVBQVEsRUFBQyxJQUFJLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDO0lBQ2hELENBQUM7Q0FDSjtBQWhCRCw4QkFnQkMifQ==
"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var _File_contents, _File_hash, _File_config;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -25,9 +13,9 @@ exports.File = void 0;

class File extends ResourceAbstract_1.ResourceAbstract {
#contents;
#hash;
#config;
constructor(config, contents) {
super(config.prefix, config.relative);
_File_contents.set(this, void 0);
_File_hash.set(this, void 0);
_File_config.set(this, void 0);
__classPrivateFieldSet(this, _File_config, config, "f");
__classPrivateFieldSet(this, _File_contents, contents, "f");
this.#config = config;
this.#contents = contents;
}

@@ -38,3 +26,3 @@ get id() {

get contents() {
return __classPrivateFieldGet(this, _File_contents, "f");
return this.#contents;
}

@@ -45,6 +33,6 @@ get dir() {

get config() {
return __classPrivateFieldGet(this, _File_config, "f");
return this.#config;
}
includes(chunk) {
return __classPrivateFieldGet(this, _File_contents, "f")?.includes(chunk);
return this.#contents?.includes(chunk);
}

@@ -98,13 +86,12 @@ hasContent() {

getHash(len = 4) {
if (__classPrivateFieldGet(this, _File_hash, "f")) {
return __classPrivateFieldGet(this, _File_hash, "f").substr(0, len);
if (this.#hash) {
return this.#hash.substr(0, len);
}
__classPrivateFieldSet(this, _File_hash, (0, crypto_1.createHash)("sha1")
this.#hash = (0, crypto_1.createHash)("sha1")
.update(this.contents)
.digest("hex"), "f");
return __classPrivateFieldGet(this, _File_hash, "f").substr(0, len);
.digest("hex");
return this.#hash.substr(0, len);
}
}
exports.File = File;
_File_contents = new WeakMap(), _File_hash = new WeakMap(), _File_config = new WeakMap();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9idWlsZC9SZXNvdXJjZXMvRmlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwrQkFBdUM7QUFDdkMsMENBQTZEO0FBQzdELG1DQUFrQztBQUNsQyxtRUFBMkM7QUFDM0MseURBQW9EO0FBY3BELE1BQWEsSUFBOEMsU0FBUSxtQ0FBZ0I7SUFNL0UsWUFBWSxNQUFrQixFQUFFLFFBQVc7UUFDdkMsS0FBSyxDQUFDLE1BQU0sQ0FBQyxNQUFNLEVBQUUsTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBTjFDLGlDQUFhO1FBQ2IsNkJBQWU7UUFFZiwrQkFBNkI7UUFLekIsdUJBQUEsSUFBSSxnQkFBVyxNQUFNLE1BQUEsQ0FBQztRQUN0Qix1QkFBQSxJQUFJLGtCQUFhLFFBQVEsTUFBQSxDQUFDO0lBQzlCLENBQUM7SUFFRCxJQUFXLEVBQUU7UUFDVCxPQUFPLElBQUksQ0FBQyxRQUFRLENBQUM7SUFDekIsQ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BSSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUNoRSxNQUFNLElBQUEsZUFBSSxFQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztTQUN4QjtRQUFDLE1BQU07WUFDSixnQkFBTSxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsYUFBYSxFQUFFLE1BQU0sS0FBSyxFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUM7WUFDakUsTUFBTSxJQUFBLGdCQUFLLEVBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxFQUFDLFNBQVMsRUFBRSxJQUFJLEVBQUMsQ0FBQyxDQUFDO1NBQzVDO0lBQ0wsQ0FBQztJQUVNLE9BQU8sQ0FBMkMsR0FBRyxHQUFHLENBQUM7UUFDNUQsSUFBSSxJQUFJLENBQUMsS0FBSyxFQUFFO1lBQ1osT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDLEVBQUUsR0FBRyxDQUFDLENBQUM7U0FDcEM7UUFFRCxJQUFJLENBQUMsS0FBSyxHQUFHLElBQUEsbUJBQVUsRUFBQyxNQUFNLENBQUM7YUFDMUIsTUFBTSxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUM7YUFDckIsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBRW5CLE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQyxFQUFFLEdBQUcsQ0FBQyxDQUFDO0lBQ3JDLENBQUM7Q0FDSjtBQTlHRCxvQkE4R0MifQ==

@@ -7,2 +7,3 @@ "use strict";

class FileCopyList extends FileArtifactList_1.FileArtifactList {
patterns;
constructor(context, patterns = []) {

@@ -31,2 +32,2 @@ super(context, FileCopyList.scan(context.base.path, patterns));

exports.FileCopyList = FileCopyList;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9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SUFFTSxHQUFHLENBQUMsSUFBWTtRQUNuQixNQUFNLE1BQU0sR0FBRyxLQUFLLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBRS9CLElBQUksQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDLE1BQU0sQ0FBQyxHQUFHLEVBQUUsQ0FBQyxLQUFLLEVBQUUsRUFBRTtZQUNoQyxRQUFRLEtBQUssRUFBRTtnQkFDWCxLQUFLLEtBQUssQ0FBQztnQkFDWCxLQUFLLFdBQVc7b0JBQ1osSUFBSSxDQUFDLEtBQUssQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDO29CQUM3RCxNQUFNO2FBQ2I7UUFDTCxDQUFDLENBQUMsQ0FBQztRQUVILE9BQU8sTUFBTSxDQUFDO0lBQ2xCLENBQUM7Q0FDSjtBQTdCRCxvQ0E2QkMifQ==

@@ -6,2 +6,3 @@ "use strict";

class FileFactory {
prefix;
constructor(prefix) {

@@ -25,2 +26,2 @@ this.prefix = prefix;

exports.FileFactory = FileFactory;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmlsZUZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYnVpbGQvUmVzb3VyY2VzL0ZpbGVGYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLGlDQUFxQztBQUVyQyxNQUFhLFdBQVc7SUFFcEIsWUFBWSxNQUFpQjtRQUN6QixJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztJQUN6QixDQUFDO0lBRU0sT0FBTyxDQUFDLElBQVk7UUFDdkIsTUFBTSxFQUFDLE1BQU0sRUFBRSxFQUFDLElBQUksRUFBRSxNQUFNLEVBQUM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UFBRSxNQUFNLEVBQUMsRUFBQyxHQUFHLElBQUksQ0FBQztRQUN0QyxPQUFPLFdBQUksQ0FBQyxPQUFPLENBQUMsRUFBQyxNQUFNLEVBQUUsUUFBUSxFQUFFLElBQUksRUFBQyxDQUFDLENBQUM7SUFDbEQsQ0FBQztJQUVNLElBQUksQ0FBQyxJQUFZO1FBQ3BCLE1BQU0sRUFBQyxNQUFNLEVBQUUsRUFBQyxJQUFJLEVBQUUsTUFBTSxFQUFDLEVBQUMsR0FBRyxJQUFJLENBQUM7UUFDdEMsTUFBTSxRQUFRLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQyxlQUFlLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDbkQsT0FBTyxXQUFJLENBQUMsT0FBTyxDQUFDLEVBQUMsTUFBTSxFQUFFLFFBQVEsRUFBQyxDQUFDLENBQUM7SUFDNUMsQ0FBQztJQUlNLElBQUksQ0FBQyxJQUFZLEVBQUUsR0FBUztRQUMvQixPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDO2FBQ3BCLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUNuQixDQUFDO0NBQ0o7QUF2QkQsa0NBdUJDIn0=
"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var _FileList_result, _FileList_origins, _FileList_context;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -19,32 +7,32 @@ exports.FileList = void 0;

class FileList {
#result = new Map();
#origins = new Map();
#context;
constructor(context, files = []) {
_FileList_result.set(this, new Map());
_FileList_origins.set(this, new Map());
_FileList_context.set(this, void 0);
__classPrivateFieldSet(this, _FileList_context, context, "f");
this.#context = context;
files.forEach((file) => this.add(file));
}
get id() {
return __classPrivateFieldGet(this, _FileList_context, "f").id;
return this.#context.id;
}
get files() {
return [...__classPrivateFieldGet(this, _FileList_origins, "f").values()]
return [...this.#origins.values()]
.map((file) => file.relative);
}
get paths() {
return [...__classPrivateFieldGet(this, _FileList_origins, "f").values()]
return [...this.#origins.values()]
.map((file) => file.path);
}
get built() {
return [...__classPrivateFieldGet(this, _FileList_result, "f").values()]
return [...this.#result.values()]
.map(({ dest }) => dest);
}
get cache() {
return __classPrivateFieldGet(this, _FileList_context, "f").cache;
return this.#context.cache;
}
get base() {
return __classPrivateFieldGet(this, _FileList_context, "f").base;
return this.#context.base;
}
getBuilt(file) {
const result = __classPrivateFieldGet(this, _FileList_result, "f").get(file);
const result = this.#result.get(file);
(0, internal_1.assert)(result, `Can't find built ${file}`);

@@ -54,6 +42,6 @@ return result.dest;

add(file) {
const { base: { fileFactory } } = __classPrivateFieldGet(this, _FileList_context, "f");
const { base: { fileFactory } } = this.#context;
const origin = fileFactory.factory(file);
__classPrivateFieldGet(this, _FileList_origins, "f").set(file, origin);
__classPrivateFieldGet(this, _FileList_result, "f").delete(file);
this.#origins.set(file, origin);
this.#result.delete(file);
this.cache.on(file, (event) => {

@@ -71,7 +59,7 @@ internal_1.logger.debug(this, "%s -> %s", event, file);

change(file) {
__classPrivateFieldGet(this, _FileList_result, "f").delete(file);
this.#result.delete(file);
}
remove(file) {
__classPrivateFieldGet(this, _FileList_origins, "f").delete(file);
__classPrivateFieldGet(this, _FileList_result, "f").delete(file);
this.#origins.delete(file);
this.#result.delete(file);
this.cache.off(file);

@@ -82,4 +70,4 @@ }

this.cache.reset();
__classPrivateFieldGet(this, _FileList_origins, "f").clear();
__classPrivateFieldGet(this, _FileList_result, "f").clear();
this.#origins.clear();
this.#result.clear();
files.forEach((file) => this.add(file));

@@ -91,3 +79,3 @@ }

const ops = [];
for (const src of __classPrivateFieldGet(this, _FileList_origins, "f").values()) {
for (const src of this.#origins.values()) {
ops.push(this.copy(src));

@@ -98,10 +86,10 @@ }

async copy(file) {
if (__classPrivateFieldGet(this, _FileList_result, "f").has(file.relative)) {
if (this.#result.has(file.relative)) {
return;
}
const { build: { fileFactory } } = __classPrivateFieldGet(this, _FileList_context, "f");
const { build: { fileFactory } } = this.#context;
const src = await file.read();
const dest = fileFactory.factory(file.relative);
internal_1.logger.debug(this, "copy -> %s", src.relative);
__classPrivateFieldGet(this, _FileList_result, "f").set(src.relative, { src, dest: await src.copy(dest) });
this.#result.set(src.relative, { src, dest: await src.copy(dest) });
}

@@ -111,3 +99,3 @@ async check() {

const errors = [];
for (const file of __classPrivateFieldGet(this, _FileList_origins, "f").values()) {
for (const file of this.#origins.values()) {
ops.push((0, promises_1.stat)(file.path)

@@ -122,3 +110,2 @@ .then((stat) => (0, internal_1.assert)(stat.isFile(), "Not a file"))

exports.FileList = FileList;
_FileList_result = new WeakMap(), _FileList_origins = new WeakMap(), _FileList_context = new WeakMap();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmlsZUxpc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYnVpbGQvUmVzb3VyY2VzL0ZpbGVMaXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDBDQUFpQztBQUVqQyw2Q0FBOEM7QUFNOUMsTUFBYSxRQUFRO0lBS2pCLFlBQVksT0FBcUIsRUFBRSxRQUFrQixFQUFFO1FBSnZELDJCQ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LQUFLLENBQUMsQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBQyxLQUFLLEVBQUUsSUFBSSxFQUFFLElBQUksQ0FBQyxRQUFRLEVBQUMsQ0FBQyxDQUFDLENBQ25FLENBQUM7U0FDTDtRQUVELE1BQU0sT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUV2QixPQUFPLE1BQU0sQ0FBQztJQUNsQixDQUFDO0NBQ0o7QUEvSEQsNEJBK0hDIn0=

@@ -7,2 +7,5 @@ "use strict";

class ResourceAbstract {
prefix;
relative;
path;
constructor(prefix, relative) {

@@ -22,2 +25,2 @@ (0, internal_1.assert)(prefix, `Wrong prefix "${prefix}" for "${relative}"`);

exports.ResourceAbstract = ResourceAbstract;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVzb3VyY2VBYnN0cmFjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9idWlsZC9SZXNvdXJjZXMvUmVzb3VyY2VBYnN0cmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBMEI7QUFDMUIsNkNBQXNDO0FBR3RDLE1BQWEsZ0JBQWdCO0lBS3pCLFlBQVksTUFBa0IsRUFBRSxRQUFnQjtRQUM1QyxJQUFBLGlCQUFNLEVBQUMsTUFBTSxFQUFFLGlCQUFpQixNQUFNLFVBQVUsUUFBUSxHQUFHLENBQUMsQ0FBQztRQUU3RCxJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQyxRQUFRLEVBQUUsQ0FBQztRQUNoQyxJQUFJLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQztRQUV6QixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUEsV0FBSSxFQUFDLElBQUksQ0FBQyxNQUFNLEVBQUUsUUF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FBSSxFQUFFLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDO0lBQzVDLENBQUM7SUFFTSxRQUFRO1FBQ1gsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDO0lBQ3JCLENBQUM7Q0FDSjtBQXJCRCw0Q0FxQkMifQ==

@@ -10,2 +10,4 @@ "use strict";

class JSONConfig {
config;
args;
constructor(args) {

@@ -72,2 +74,2 @@ this.args = args;

exports.JSONConfig = JSONConfig;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSlNPTkNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb25maWcvSlNPTkNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwyQkFBOEI7QUFDOUIsK0JBQTBCO0FBRTFCLG9DQUEwRjtBQUMxRiwwQ0FBZ0Y7QUFDaEYsd0NBQWdDO0FBR2hDLE1BQWEsVUFBVTtJQUluQixZQUFZLElBQW1CO1FBQzNCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO1FBRWpCLE1BQU0sSUFBSSxHQUFHLElBQUEsV0FBSSxFQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsYUFBYSxDQUFDLENBQUM7UUFDNUMsSUFBQSxpQkFBTSxFQUFDLElBQUEsZUFBVSxFQUFDLElBQUksQ0FBQyxFQUFFLDhCQUE4QixFQUFFLEVBQUMsSUFBSSxFQUFDLENBQUMsQ0FBQztRQUVqRSxJQUFJLENBQUMsTUFBTSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUNoQyxDQUFDO0lBRU0sS0FBSyxDQUFDLENBQUUsYUFBYTtRQUN4QixJQUFJLFNBQVMsR0FBRyxDQUFDLENBQUM7UUFDbEIsTUFBTSxFQUFDLEdBQUcsRUFBQyxHQUFHLElBQUksQ0FBQyxJQUFJ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sR0FBRyxHQUFHLElBQUEscUJBQVUsRUFBQyxPQUFPLEVBQUUsS0FBSyxFQUFFLENBQUMsRUFBRSxFQUFFLE9BQU8sQ0FBQyxFQUFFLEVBQUU7WUFDcEQsTUFBTSxNQUFNLEdBQUcsSUFBQSxjQUFJLEVBQUMsRUFBRSxFQUFFLE9BQU8sRUFBRSxPQUFPLENBQUMsQ0FBQztZQUMxQyxNQUFNLE1BQU0sQ0FBQyxTQUFTLEVBQUUsQ0FBQztZQUV6QixPQUFPO2dCQUNILElBQUksRUFBRSxNQUFNLENBQUMsSUFBSTtnQkFDakIsS0FBSyxDQUFDLEtBQWtCO29CQUNwQixPQUFPLE1BQU0sQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUM7Z0JBQy9CLENBQUM7YUFDSixDQUFDO1FBQ04sQ0FBQyxDQUFDLENBQUM7UUFFSCxPQUFPLE9BQU8sQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDNUIsQ0FBQztDQUNKO0FBeEVELGdDQXdFQyJ9

@@ -5,2 +5,3 @@ "use strict";

class AssertionError extends Error {
details;
constructor(message, details) {

@@ -18,2 +19,2 @@ super(message);

exports.assert = assert;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXJ0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludGVybmFsL2Fzc2VydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxNQUFhLGNBQWUsU0FBUSxLQUFLO0lBRXJDLFlBQVksT0FBZSxFQUFFLE9BQWlCO1FBQzFDLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNmLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDO0lBQzNCLENBQUM7Q0FDSjtBQU5ELHdDQU1DO0FBRUQsU0FBZ0IsTUFBTSxDQUFDLElBQWEsRUFBRSxPQUFPLEdBQUcsaUJBQWlCLEVBQUUsT0FBaUI7SUFDaEYsSUFBSSxDQUFDLElBQUksRUFBRTtRQUNQLE1BQU0sSUFBSSxjQUFjLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxDQUFDO0tBQzlDO0FBQ0wsQ0FBQztBQUpELHdCQUlDIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXJ0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludGVybmFsL2Fzc2VydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxNQUFhLGNBQWUsU0FBUSxLQUFLO0lBQ3JCLE9BQU8sQ0FBVztJQUNsQyxZQUFZLE9BQWUsRUFBRSxPQUFpQjtRQUMxQyxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDZixJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQztJQUMzQixDQUFDO0NBQ0o7QUFORCx3Q0FNQztBQUVELFNBQWdCLE1BQU0sQ0FBQyxJQUFhLEVBQUUsT0FBTyxHQUFHLGlCQUFpQixFQUFFLE9BQWlCO0lBQ2hGLElBQUksQ0FBQyxJQUFJLEVBQUU7UUFDUCxNQUFNLElBQUksY0FBYyxDQUFDLE9BQU8sRUFBRSxPQUFPLENBQUMsQ0FBQztLQUM5QztBQUNMLENBQUM7QUFKRCx3QkFJQyJ9
"use strict";
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var _PluginAbstract_events;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -12,18 +6,6 @@ exports.PluginAbstract = void 0;

class PluginAbstract {
context;
config;
#events = [];
constructor(context, config) {
_PluginAbstract_events.set(this, []);
this.report = (error) => {
const errors = (0, internal_1.withError)(error, (e) => [
{
text: e.message,
pluginName: this.name,
},
], () => [
{
text: "Unknown error",
pluginName: this.name,
},
]);
return Promise.resolve({ errors });
};
this.context = context;

@@ -37,3 +19,3 @@ this.config = config;

const keys = ["start", "resolve", "load", "end"];
for (const map of __classPrivateFieldGet(this, _PluginAbstract_events, "f")) {
for (const map of this.#events) {
for (const event of keys) {

@@ -61,3 +43,3 @@ if (!(0, internal_1.has)(map, event)) {

on(event, ...args) {
__classPrivateFieldGet(this, _PluginAbstract_events, "f").push({ [event]: args });
this.#events.push({ [event]: args });
return this;

@@ -84,5 +66,18 @@ }

}
report = (error) => {
const errors = (0, internal_1.withError)(error, (e) => [
{
text: e.message,
pluginName: this.name,
},
], () => [
{
text: "Unknown error",
pluginName: this.name,
},
]);
return Promise.resolve({ errors });
};
}
exports.PluginAbstract = PluginAbstract;
_PluginAbstract_events = new WeakMap();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGx1Z2luQWJzdHJhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcGx1Z2lucy9QbHVnaW5BYnN0cmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFFQSwwQ0FBc0Q7QUFVdEQsTUFBc0IsY0FBYztJQVFoQyxZQUFZLE9BQXFCLEVBQUUsTUFBUztRQUY1QyxpQ0FBaUQsRUFBRSxFQUFDO1FBeUU1QyxXQUFNLEdBQUcsQ0FBQyxLQUFjLEVBQWdDLEVBQUU7WUFDOUQsTUFBTSxNQUFNLEdBQUcsSUFBQSxvQkFBUyxFQUFDLEtBQUssRUFDMUIsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDO2dCQUNIO29CQUNJLElBQUksRUFBRSxDQUFDLEN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xJQUFJLEVBQUUsQ0FBQyxDQUFDLE9BQU87Z0JBQ2YsVUFBVSxFQUFFLElBQUksQ0FBQyxJQUFJO2FBQ3hCO1NBQ0osRUFDRCxHQUFHLEVBQUUsQ0FBQztZQUNGO2dCQUNJLElBQUksRUFBRSxlQUFlO2dCQUNyQixVQUFVLEVBQUUsSUFBSSxDQUFDLElBQUk7YUFDeEI7U0FDSixDQUNKLENBQUM7UUFFRixPQUFPLE9BQU8sQ0FBQyxPQUFPLENBQUMsRUFBQyxNQUFNLEVBQUMsQ0FBQyxDQUFDO0lBQ3JDLENBQUMsQ0FBQztDQUNMO0FBakdELHdDQWlHQyJ9
{
"name": "@reform/bundle",
"version": "0.11.5",
"version": "0.11.6",
"main": "dist/index.js",

@@ -45,3 +45,3 @@ "types": "dist/index.d.ts",

"license": "MIT",
"gitHead": "b214137121249487b3d2a9ddc878817d6bd8f4c3"
"gitHead": "b00a544db891d47c141534c9caafede7e440754f"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc