Socket
Socket
Sign inDemoInstall

@parcel/types

Package Overview
Dependencies
Maintainers
1
Versions
881
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/types - npm Package Compare versions

Comparing version 2.0.0-nightly.102 to 2.0.0-nightly.107

302

index.js

@@ -52,11 +52,11 @@ // @flow strict-local

...ParcelConfigFile,
filePath: FilePath,
resolveFrom?: FilePath,
+filePath: FilePath,
+resolveFrom?: FilePath,
|};
export type Engines = {
browsers?: string | Array<string>,
electron?: SemverRange,
node?: SemverRange,
parcel?: SemverRange,
+browsers?: string | Array<string>,
+electron?: SemverRange,
+node?: SemverRange,
+parcel?: SemverRange,
...

@@ -66,5 +66,5 @@ };

export type TargetSourceMapOptions = {|
sourceRoot?: string,
inline?: boolean,
inlineSources?: boolean,
+sourceRoot?: string,
+inline?: boolean,
+inlineSources?: boolean,
|};

@@ -92,15 +92,15 @@

export type PackageTargetDescriptor = {|
context?: EnvironmentContext,
engines?: Engines,
includeNodeModules?:
+context?: EnvironmentContext,
+engines?: Engines,
+includeNodeModules?:
| boolean
| Array<PackageName>
| {[PackageName]: boolean, ...},
outputFormat?: OutputFormat,
publicUrl?: string,
distDir?: FilePath,
sourceMap?: TargetSourceMapOptions,
isLibrary?: boolean,
minify?: boolean,
scopeHoist?: boolean,
+outputFormat?: OutputFormat,
+publicUrl?: string,
+distDir?: FilePath,
+sourceMap?: TargetSourceMapOptions,
+isLibrary?: boolean,
+minify?: boolean,
+scopeHoist?: boolean,
|};

@@ -110,16 +110,16 @@

...PackageTargetDescriptor,
distDir: FilePath,
+distDir: FilePath,
|};
export type EnvironmentOpts = {|
context?: EnvironmentContext,
engines?: Engines,
includeNodeModules?:
+context?: EnvironmentContext,
+engines?: Engines,
+includeNodeModules?:
| boolean
| Array<PackageName>
| {[PackageName]: boolean, ...},
outputFormat?: OutputFormat,
isLibrary?: boolean,
minify?: boolean,
scopeHoist?: boolean,
+outputFormat?: OutputFormat,
+isLibrary?: boolean,
+minify?: boolean,
+scopeHoist?: boolean,
|};

@@ -179,30 +179,30 @@

export type InitialParcelOptions = {|
entries?: FilePath | Array<FilePath>,
rootDir?: FilePath,
config?: ResolvedParcelConfigFile,
defaultConfig?: ResolvedParcelConfigFile,
env?: EnvMap,
targets?: ?(Array<string> | {+[string]: TargetDescriptor, ...}),
+entries?: FilePath | Array<FilePath>,
+rootDir?: FilePath,
+config?: ResolvedParcelConfigFile,
+defaultConfig?: ResolvedParcelConfigFile,
+env?: EnvMap,
+targets?: ?(Array<string> | {+[string]: TargetDescriptor, ...}),
disableCache?: boolean,
cacheDir?: FilePath,
killWorkers?: boolean,
mode?: BuildMode,
minify?: boolean,
scopeHoist?: boolean,
sourceMaps?: boolean,
publicUrl?: string,
distDir?: FilePath,
hot?: boolean,
serve?: ServerOptions | false,
autoinstall?: boolean,
logLevel?: LogLevel,
profile?: boolean,
patchConsole?: boolean,
+disableCache?: boolean,
+cacheDir?: FilePath,
+killWorkers?: boolean,
+mode?: BuildMode,
+minify?: boolean,
+scopeHoist?: boolean,
+sourceMaps?: boolean,
+publicUrl?: string,
+distDir?: FilePath,
+hot?: boolean,
+serve?: ServerOptions | false,
+autoinstall?: boolean,
+logLevel?: LogLevel,
+profile?: boolean,
+patchConsole?: boolean,
inputFS?: FileSystem,
outputFS?: FileSystem,
workerFarm?: WorkerFarm,
packageManager?: PackageManager,
defaultEngines?: Engines,
+inputFS?: FileSystem,
+outputFS?: FileSystem,
+workerFarm?: WorkerFarm,
+packageManager?: PackageManager,
+defaultEngines?: Engines,

@@ -232,11 +232,11 @@ // contentHash

export type ServerOptions = {|
host?: string,
port: number,
https?: HTTPSOptions | boolean,
publicUrl?: string,
+host?: string,
+port: number,
+https?: HTTPSOptions | boolean,
+publicUrl?: string,
|};
export type HTTPSOptions = {|
cert: FilePath,
key: FilePath,
+cert: FilePath,
+key: FilePath,
|};

@@ -246,10 +246,10 @@

export type SourceLocation = {|
filePath: string,
start: {|
line: number,
column: number,
+filePath: string,
+start: {|
+line: number,
+column: number,
|},
end: {|
line: number,
column: number,
+end: {|
+line: number,
+column: number,
|},

@@ -267,13 +267,13 @@ |};

export type DependencyOptions = {|
moduleSpecifier: ModuleSpecifier,
isAsync?: boolean,
isEntry?: boolean,
isOptional?: boolean,
isURL?: boolean,
isWeak?: ?boolean,
loc?: SourceLocation,
env?: EnvironmentOpts,
meta?: Meta,
target?: Target,
symbols?: Map<Symbol, Symbol>,
+moduleSpecifier: ModuleSpecifier,
+isAsync?: boolean,
+isEntry?: boolean,
+isOptional?: boolean,
+isURL?: boolean,
+isWeak?: ?boolean,
+loc?: SourceLocation,
+env?: EnvironmentOpts,
+meta?: Meta,
+target?: Target,
+symbols?: Map<Symbol, Symbol>,
|};

@@ -301,4 +301,4 @@

export type File = {|
filePath: FilePath,
hash?: string,
+filePath: FilePath,
+hash?: string,
|};

@@ -403,4 +403,4 @@

export type GenerateOutput = {|
code: string,
map?: ?SourceMap,
+code: string,
+map?: ?SourceMap,
|};

@@ -411,19 +411,19 @@

export interface TransformerResult {
type: string;
code?: string;
map?: ?SourceMap;
content?: Blob;
ast?: ?AST;
dependencies?: $ReadOnlyArray<DependencyOptions>;
includedFiles?: $ReadOnlyArray<File>;
isIsolated?: boolean;
isInline?: boolean;
isSplittable?: boolean;
isSource?: boolean;
env?: EnvironmentOpts;
meta?: Meta;
pipeline?: ?string;
symbols?: Map<Symbol, Symbol>;
sideEffects?: boolean;
uniqueKey?: ?string;
+type: string;
+code?: string;
+map?: ?SourceMap;
+content?: Blob;
+ast?: ?AST;
+dependencies?: $ReadOnlyArray<DependencyOptions>;
+includedFiles?: $ReadOnlyArray<File>;
+isIsolated?: boolean;
+isInline?: boolean;
+isSplittable?: boolean;
+isSource?: boolean;
+env?: EnvironmentOpts;
+meta?: Meta;
+pipeline?: ?string;
+symbols?: Map<Symbol, Symbol>;
+sideEffects?: boolean;
+uniqueKey?: ?string;
}

@@ -545,10 +545,10 @@

| {|
id?: string,
entryAsset: Asset,
target: Target,
isEntry?: ?boolean,
isInline?: ?boolean,
isSplittable?: ?boolean,
type?: ?string,
env?: ?Environment,
+id?: string,
+entryAsset: Asset,
+target: Target,
+isEntry?: ?boolean,
+isInline?: ?boolean,
+isSplittable?: ?boolean,
+type?: ?string,
+env?: ?Environment,
|}

@@ -558,16 +558,16 @@ // If an entryAsset is not provided, a bundle id, type, and environment must

| {|
id: string,
entryAsset?: Asset,
target: Target,
isEntry?: ?boolean,
isInline?: ?boolean,
isSplittable?: ?boolean,
type: string,
env: Environment,
+id: string,
+entryAsset?: Asset,
+target: Target,
+isEntry?: ?boolean,
+isInline?: ?boolean,
+isSplittable?: ?boolean,
+type: string,
+env: Environment,
|};
export type SymbolResolution = {|
asset: Asset,
exportSymbol: Symbol | string,
symbol: void | Symbol,
+asset: Asset,
+exportSymbol: Symbol | string,
+symbol: void | Symbol,
|};

@@ -659,6 +659,6 @@

export type ResolveResult = {|
filePath?: FilePath,
isExcluded?: boolean,
sideEffects?: boolean,
code?: string,
+filePath?: FilePath,
+isExcluded?: boolean,
+sideEffects?: boolean,
+code?: string,
|};

@@ -689,6 +689,6 @@

export type RuntimeAsset = {|
filePath: FilePath,
code: string,
dependency?: Dependency,
isEntry?: boolean,
+filePath: FilePath,
+code: string,
+dependency?: Dependency,
+isEntry?: boolean,
|};

@@ -760,40 +760,40 @@

export type BuildStartEvent = {|
type: 'buildStart',
+type: 'buildStart',
|};
type WatchStartEvent = {|
type: 'watchStart',
+type: 'watchStart',
|};
type WatchEndEvent = {|
type: 'watchEnd',
+type: 'watchEnd',
|};
type ResolvingProgressEvent = {|
type: 'buildProgress',
phase: 'resolving',
dependency: Dependency,
+type: 'buildProgress',
+phase: 'resolving',
+dependency: Dependency,
|};
type TransformingProgressEvent = {|
type: 'buildProgress',
phase: 'transforming',
filePath: FilePath,
+type: 'buildProgress',
+phase: 'transforming',
+filePath: FilePath,
|};
type BundlingProgressEvent = {|
type: 'buildProgress',
phase: 'bundling',
+type: 'buildProgress',
+phase: 'bundling',
|};
type PackagingProgressEvent = {|
type: 'buildProgress',
phase: 'packaging',
bundle: NamedBundle,
+type: 'buildProgress',
+phase: 'packaging',
+bundle: NamedBundle,
|};
type OptimizingProgressEvent = {|
type: 'buildProgress',
phase: 'optimizing',
bundle: NamedBundle,
+type: 'buildProgress',
+phase: 'optimizing',
+bundle: NamedBundle,
|};

@@ -809,11 +809,11 @@

export type BuildSuccessEvent = {|
type: 'buildSuccess',
bundleGraph: BundleGraph,
buildTime: number,
changedAssets: Map<string, Asset>,
+type: 'buildSuccess',
+bundleGraph: BundleGraph,
+buildTime: number,
+changedAssets: Map<string, Asset>,
|};
export type BuildFailureEvent = {|
type: 'buildFailure',
diagnostics: Array<Diagnostic>,
+type: 'buildFailure',
+diagnostics: Array<Diagnostic>,
|};

@@ -824,4 +824,4 @@

export type ValidationEvent = {|
type: 'validation',
filePath: FilePath,
+type: 'validation',
+filePath: FilePath,
|};

@@ -848,3 +848,3 @@

export interface ErrorWithCode extends Error {
code?: string;
+code?: string;
}

@@ -851,0 +851,0 @@

{
"name": "@parcel/types",
"version": "2.0.0-nightly.102+28f7bfd1",
"version": "2.0.0-nightly.107+b2851080",
"license": "MIT",

@@ -13,3 +13,3 @@ "main": "src/index.js",

},
"gitHead": "28f7bfd13f0c03317b75cb70c433681250a70518"
"gitHead": "b2851080dd7c4c1df22b2c512ce50d7424c36927"
}
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