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.9 to 0.11.10

4

dist/build/BundleCache.d.ts
import { Directory, File } from "./Resources";
import { BuildContext } from "./BuildContext";
import { CacheQueueHandle } from "./Cache/interfaces";
export declare type CacheCallback<T> = (deps: string[]) => Promise<T>;
export declare type CacheContainer<T = unknown> = {
export type CacheCallback<T> = (deps: string[]) => Promise<T>;
export type CacheContainer<T = unknown> = {
result: T;

@@ -7,0 +7,0 @@ modified: Date;

@@ -82,2 +82,2 @@ "use strict";

exports.BundleCache = BundleCache;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnVuZGxlQ2FjaGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYnVpbGQvQnVuZGxlQ2FjaGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsMENBQWlDO0FBQ2pDLHNEQUE4QjtBQUU5QixnRUFBd0M7QUFDeEMsMENBQTZDO0FBRzdDLG1EQUE4QztBQUM5QyxtREFBbUY7QUFJbkYsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLEVBQTBCLENBQUM7QUFFaEQsTUFBYSxXQUFXO0lBQ0osSUFBSSxDQUFZO0lBQ3ZCLFFBQVEsQ0FBZTtJQUN2QixNQUFNLENBQWE7SUFDbkIsTUFBTSxHQUFHLEtBQUssQ0FBQztJQUV4QixZQUFZLE9BQXFCLEVBQUUsSUFBZTtRQUM5QyxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztRQUNqQixJQUFJLENBQUMsUUFBUSxHQUFHLE9BQU8sQ0FBQztRQUN4QixJQUFJLENBQUMsTUFBTS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BTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUM3QixDQUFDO0lBRU0sS0FBSztRQUNSLElBQUksQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLENBQUM7UUFDcEIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUN4QixDQUFDO0NBQ0o7QUF2RkQsa0NBdUZDIn0=
import { TargetEvent } from "watcher/dist/enums";
export declare const CACHE_QUEUE_ONCE_QUEUE_HANDLE: unique symbol;
export declare type CacheQueueHandle = (event: TargetEvent) => unknown;
export declare type CacheQueueOnceHandle = CacheQueueHandle & {
export type CacheQueueHandle = (event: TargetEvent) => unknown;
export type CacheQueueOnceHandle = CacheQueueHandle & {
[CACHE_QUEUE_ONCE_QUEUE_HANDLE]: true;
};
export declare type CacheQueueDispose = () => void;
export type CacheQueueDispose = () => void;
import { Format, Loader, Platform, Plugin } from "esbuild";
import { BuildContext } from "./BuildContext";
import { Directory, FileCopyList, FileEntryList } from "./Resources";
export declare type PWAManifest = Record<string, any>;
export declare type SourceMapVariant = boolean | "inline" | "external" | "both";
export type PWAManifest = Record<string, any>;
export type SourceMapVariant = boolean | "inline" | "external" | "both";
export interface IPWAApplicationConfig {

@@ -46,8 +46,8 @@ source?: string;

}
export declare type BuildServerHandle = (vhost: string | undefined, handle: (resource: string) => Promise<{
export type BuildServerHandle = (vhost: string | undefined, handle: (resource: string) => Promise<{
path: string;
}>) => void;
export declare type BundleArgs = {
export type BundleArgs = {
config: IBundleScriptConfig;
context: BuildContext;
};
/// <reference types="node" />
import { ResourceAbstract } from "./ResourceAbstract";
import { Directory } from "./Directory";
export declare type FileEnc = BufferEncoding;
export declare type FileTag = Record<any, any>;
export declare type FilePrefix = string | Directory;
export declare type FileContentType = string | Buffer;
export declare type FileContentTransform<T extends FileContentType> = (contents: T) => T;
export type FileEnc = BufferEncoding;
export type FileTag = Record<any, any>;
export type FilePrefix = string | Directory;
export type FileContentType = string | Buffer;
export type FileContentTransform<T extends FileContentType> = (contents: T) => T;
export interface FileConfig {

@@ -10,0 +10,0 @@ readonly prefix: FilePrefix;

/// <reference types="node" />
import { BuildContext } from "../BuildContext";
import { File } from "./File";
export declare type FileListResult = {
export type FileListResult = {
src: File<Buffer>;
dest: File<Buffer>;
};
export declare type FileError = {
export type FileError = {
error: Error;

@@ -10,0 +10,0 @@ file: string;

@@ -13,5 +13,5 @@ export interface IArgumentList {

}
export declare type InputArgumentList = {
export type InputArgumentList = {
-readonly [K in keyof IArgumentList]: IArgumentList[K];
};
export declare function getArgumentList(root?: string): IArgumentList;

@@ -1,2 +0,2 @@

export declare type Disposable = () => unknown;
export type Disposable = () => unknown;
export declare class Disposer {

@@ -3,0 +3,0 @@ static add(disposable: Disposable): void;

@@ -1,2 +0,2 @@

export declare type LogTarget = {
export type LogTarget = {
constructor: {

@@ -7,3 +7,3 @@ name: string;

};
export declare type LogArgs = [target: LogTarget | string, ...args: [message: string, ...args: unknown[]]];
export type LogArgs = [target: LogTarget | string, ...args: [message: string, ...args: unknown[]]];
export declare const logger: {

@@ -10,0 +10,0 @@ format(args: [target: string | LogTarget, message: string, ...args: unknown[]], color: string): string[];

@@ -1,2 +0,2 @@

export declare type PickEntry<T, K extends keyof T = keyof T> = [K, T[K]];
export type PickEntry<T, K extends keyof T = keyof T> = [K, T[K]];
export declare function keys<T extends Record<string, any>, K extends keyof T>(target: T): K[];

@@ -6,3 +6,3 @@ export declare function entries<T>(target: Record<string, T>): [string, T][];

export declare function fromEntries<T>(...args: [key: string, value: T][]): any;
export declare type EnsureTargetKey<T extends Record<any, any>, K extends keyof T> = {
export type EnsureTargetKey<T extends Record<any, any>, K extends keyof T> = {
[S in keyof T]: S extends K ? Exclude<T[S], undefined> : T[S];

@@ -9,0 +9,0 @@ };

export declare function isFulfilled<T>(state: PromiseSettledResult<T>): state is PromiseFulfilledResult<T>;
export declare function defer<T>(fn: (resolve: (value: T) => unknown) => unknown): Promise<T>;
export declare type Promisify<T> = T | Promise<T>;
export type Promisify<T> = T | Promise<T>;

@@ -7,8 +7,8 @@ import { BuildContext } from "../build";

export declare function str2re(filter: string | RegExp): RegExp;
export declare type WithFilter = {
export type WithFilter = {
filter: string | RegExp;
} & Record<any, any>;
export declare type TransformFilter<T extends WithFilter> = {
export type TransformFilter<T extends WithFilter> = {
[K in keyof T]: K extends "filter" ? RegExp : T[K];
};
export declare function assignWithFilter<C extends WithFilter>(conf: C, ...configs: (Partial<C> | undefined)[]): TransformFilter<C>;

@@ -5,14 +5,14 @@ import { BuildResult, OnLoadArgs, OnLoadOptions, OnLoadResult, OnResolveArgs, OnResolveOptions, OnResolveResult, OnStartResult, PartialMessage } from "esbuild";

import { PluginAbstract } from "./PluginAbstract";
export declare type PluginConfig = Record<any, any> | null;
export declare type PluginCtor<P extends PluginAbstract<any>> = {
export type PluginConfig = Record<any, any> | null;
export type PluginCtor<P extends PluginAbstract<any>> = {
new (context: BuildContext, config: any): P;
prototype: PluginAbstract;
};
export declare type PluginEventStartRet = Promisify<OnStartResult | null | void>;
export declare type PluginEventResolveRet = (OnResolveResult | null | undefined | Promise<OnResolveResult | null | undefined>);
export declare type PluginEventLoadRet = Promisify<OnLoadResult | null | undefined>;
export declare type PluginEventErrorRet = {
export type PluginEventStartRet = Promisify<OnStartResult | null | void>;
export type PluginEventResolveRet = (OnResolveResult | null | undefined | Promise<OnResolveResult | null | undefined>);
export type PluginEventLoadRet = Promisify<OnLoadResult | null | undefined>;
export type PluginEventErrorRet = {
errors?: PartialMessage[];
};
export declare type PluginEventHandle<T, A extends any[]> = (...args: A) => Promisify<T>;
export type PluginEventHandle<T, A extends any[]> = (...args: A) => Promisify<T>;
export interface IPluginEvent {

@@ -24,3 +24,3 @@ start: [fn: () => PluginEventStartRet];

}
export declare type PluginEventKey = keyof IPluginEvent;
export declare type PluginListener<K extends PluginEventKey> = IPluginEvent[K];
export type PluginEventKey = keyof IPluginEvent;
export type PluginListener<K extends PluginEventKey> = IPluginEvent[K];
{
"name": "@reform/bundle",
"version": "0.11.9",
"version": "0.11.10",
"main": "dist/index.js",

@@ -28,10 +28,10 @@ "types": "dist/index.d.ts",

"dotenv": "^16.0.3",
"esbuild": "^0.15.12",
"esbuild": "^0.15.16",
"glob": "^8.0.3",
"path-to-regexp": "^6.2.1",
"watcher": "^1.2.0"
"watcher": "^1"
},
"devDependencies": {
"@types/node": "^18.11.8",
"typescript-json-schema": "^0.54.0"
"@types/node": "^18.11.10",
"typescript-json-schema": "^0.55.0"
},

@@ -46,3 +46,3 @@ "publishConfig": {

"license": "MIT",
"gitHead": "c3d757b70215d296034e32da49e64e65baa3af99"
"gitHead": "6cb8374b3469a1ea62ed3522687f3ba08a509964"
}
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