@afterpack/integration-utils 0.2.4 → 0.2.6
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.cjs +416 -116
- package/dist/index.d.cts +38 -1
- package/dist/index.d.ts +38 -1
- package/dist/index.js +403 -118
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { ProtectionMap } from "@afterpack/protection-map";
|
|
2
2
|
|
|
3
|
+
//#region src/angular-integrity.d.ts
|
|
4
|
+
declare function planAngularIntegrity(outputRoot: string, browserDir: string, label?: string): Map<string, string>;
|
|
5
|
+
declare function recomputeAngularIntegrity(outputRoot: string, browserDir: string, label?: string): void;
|
|
6
|
+
declare function angularServerManifestRefusal(outputRoot: string): string | null;
|
|
7
|
+
//#endregion
|
|
3
8
|
//#region src/paths.d.ts
|
|
4
9
|
type ArtifactMode = "single" | "directory" | "framework";
|
|
5
10
|
interface FindUpwardOptions {
|
|
@@ -695,6 +700,11 @@ interface WriteArtifactsResult {
|
|
|
695
700
|
declare function writeArtifacts(input: WriteArtifactsInput): WriteArtifactsResult;
|
|
696
701
|
declare function ensureAfterpackGitignore(afterpackDir: string): void;
|
|
697
702
|
//#endregion
|
|
703
|
+
//#region src/atomic-write.d.ts
|
|
704
|
+
declare function stagedPath(path: string): string;
|
|
705
|
+
declare function sha256Hex(content: string | Uint8Array): string;
|
|
706
|
+
declare function writeFileAtomic(path: string, content: string | Uint8Array): void;
|
|
707
|
+
//#endregion
|
|
698
708
|
//#region src/notices.d.ts
|
|
699
709
|
interface CloudNotice {
|
|
700
710
|
severity: string;
|
|
@@ -881,6 +891,17 @@ interface HashedNamesOptions {
|
|
|
881
891
|
tokenOf: HashTokenOf;
|
|
882
892
|
skip?: (relativePath: string) => boolean;
|
|
883
893
|
}
|
|
894
|
+
declare function unreferencedHashedFiles(options: HashedNamesOptions, files: readonly string[]): string[];
|
|
895
|
+
interface TokenScanLimits {
|
|
896
|
+
maxDepth: number;
|
|
897
|
+
maxFiles: number;
|
|
898
|
+
maxBytes: number;
|
|
899
|
+
}
|
|
900
|
+
interface TokenScanResult {
|
|
901
|
+
found: string | null;
|
|
902
|
+
truncated: boolean;
|
|
903
|
+
}
|
|
904
|
+
declare function findHashTokenReference(paths: readonly string[], options: HashedNamesOptions, files: readonly string[], limits: TokenScanLimits): TokenScanResult;
|
|
884
905
|
//#endregion
|
|
885
906
|
//#region src/directives.d.ts
|
|
886
907
|
interface CapturedDirective {
|
|
@@ -933,6 +954,7 @@ interface AfterpackHome {
|
|
|
933
954
|
strong: boolean;
|
|
934
955
|
buildDir: string;
|
|
935
956
|
}
|
|
957
|
+
declare function isWithinDir(dir: string, path: string): boolean;
|
|
936
958
|
interface AfterpackHomeOptions {
|
|
937
959
|
fileTarget?: boolean;
|
|
938
960
|
}
|
|
@@ -960,6 +982,7 @@ interface ProtectionReceipt {
|
|
|
960
982
|
}
|
|
961
983
|
declare function sha256Of(path: string): string;
|
|
962
984
|
type HomeTarget = string | AfterpackHome;
|
|
985
|
+
declare function buildDirKey(target: HomeTarget): string;
|
|
963
986
|
declare function protectionReceiptPath(target: HomeTarget): string;
|
|
964
987
|
declare function sweepOutputTree(buildDir: string, walkedDir: string | null, label: string, ownHome?: AfterpackHome | null): void;
|
|
965
988
|
interface WriteProtectionReceiptInput {
|
|
@@ -1077,6 +1100,7 @@ interface EngineFileInput {
|
|
|
1077
1100
|
source: string;
|
|
1078
1101
|
sourceMap?: string;
|
|
1079
1102
|
regions?: RegionConfig[];
|
|
1103
|
+
sourceType?: SourceType;
|
|
1080
1104
|
}
|
|
1081
1105
|
interface EngineFileResult {
|
|
1082
1106
|
path: string;
|
|
@@ -1124,6 +1148,10 @@ interface PassReceiptIdentity {
|
|
|
1124
1148
|
bundler?: string;
|
|
1125
1149
|
buildId?: string | null;
|
|
1126
1150
|
}
|
|
1151
|
+
interface PassWritePlan {
|
|
1152
|
+
renamed: ReadonlyMap<string, string>;
|
|
1153
|
+
planned: ReadonlyMap<string, readonly (string | null)[]>;
|
|
1154
|
+
}
|
|
1127
1155
|
interface ObfuscationPassOptions {
|
|
1128
1156
|
files: string[];
|
|
1129
1157
|
inputs?: Map<string, InMemoryInput>;
|
|
@@ -1139,6 +1167,7 @@ interface ObfuscationPassOptions {
|
|
|
1139
1167
|
preset?: Preset;
|
|
1140
1168
|
complexity?: number;
|
|
1141
1169
|
sourceType?: SourceType;
|
|
1170
|
+
fileSourceTypes?: ReadonlyMap<string, SourceType>;
|
|
1142
1171
|
regions?: RegionConfig[];
|
|
1143
1172
|
engineConfig?: CoreConfigSubset;
|
|
1144
1173
|
directivesEnabled?: boolean;
|
|
@@ -1149,6 +1178,7 @@ interface ObfuscationPassOptions {
|
|
|
1149
1178
|
messages?: PassMessages;
|
|
1150
1179
|
receipt?: PassReceiptIdentity;
|
|
1151
1180
|
afterWrite?: (writtenFiles: string[]) => void;
|
|
1181
|
+
beforeWrite?: (plan: PassWritePlan) => void;
|
|
1152
1182
|
resolvedSeed?: ResolvedBuildSeed;
|
|
1153
1183
|
hashedNames?: HashedNamesOptions;
|
|
1154
1184
|
cloudEngineExpectation?: SaltEngine;
|
|
@@ -1251,6 +1281,13 @@ interface EnvParseResult {
|
|
|
1251
1281
|
}
|
|
1252
1282
|
declare function parseEnvOptions(env: Record<string, string | undefined>): EnvParseResult;
|
|
1253
1283
|
//#endregion
|
|
1284
|
+
//#region src/hash-tokens.d.ts
|
|
1285
|
+
declare const NEXT_CHUNKS_PREFIX = "static/chunks/";
|
|
1286
|
+
declare function detectNextBundler(distDir: string): string;
|
|
1287
|
+
declare function nextChunkToken(bundler: string, chunksPrefix?: string): HashTokenOf;
|
|
1288
|
+
declare function skipNextInternals(relativePath: string): boolean;
|
|
1289
|
+
declare const angularHashToken: HashTokenOf;
|
|
1290
|
+
//#endregion
|
|
1254
1291
|
//#region src/source-map.d.ts
|
|
1255
1292
|
declare function withSourceMappingURL(code: string, url: string | null): string;
|
|
1256
1293
|
declare function withoutCssSourceMappingURL(css: string): string;
|
|
@@ -1260,4 +1297,4 @@ declare function discoverInputSourceMap(jsPath: string, code?: string): string |
|
|
|
1260
1297
|
declare function removeSourceMaps(paths: Iterable<string>, label: string): number;
|
|
1261
1298
|
declare function stripCssSourceMappingURLs(paths: Iterable<string>): number;
|
|
1262
1299
|
//#endregion
|
|
1263
|
-
export { AFTERPACK_DIR, type AfterpackArtifactOptions, type AfterpackConfig, AfterpackFilesError, type AfterpackHome, type AfterpackHomeOptions, type AfterpackPluginOptions, AlreadyObfuscatedError, type ArtifactMode, type BuildContext, type BuildEngineConfigOptions, type BundleEntryLike, type BundleJs, CLOUD_REFUSAL_SUMMARY, CONFIG_FILE_NAME, CONFIG_KEYS, CORE_FLOOR_SUMMARY, type CapturedDirective, type CapturedModule, type CliParseResult, type ClientIdentity, CloudApiError, type CloudErrorKind, type CloudNotice, type CollectJsOptions, type CombinedProtectionMapTarget, type ConfigIssue, type ConfigKeyDef, type ConfigScope, type ConfigSurface, type ConfigTier, type CoreConfig, type CoreConfigSubset, CoreVersionError, DIAG_AFTERPACK_DIR_IN_OUTPUT, DIAG_ALREADY_OBFUSCATED, DIAG_RECEIPT_UNREADABLE, DIAG_RECEIPT_UNWRITABLE, type DiagnosticsSummary, type DiagnosticsVerbosity, type DirectiveDiagnostic, type DirectiveManifest, type EngineBatchResult, type EngineDiagnostic, type EngineDiagnosticData, type EngineFileInput, type EngineFileResult, type EngineSeverity, type EngineSpan, type EnvLike, type EnvParseResult, type GitBuildContext, type GlobReserved, type HashTokenOf, type HashedNamesOptions, type HomeTarget, type InMemoryInput, type InMemoryOutput, type LoadedConfigFile, type LocateReceiptOptions, type LocatedReceipt, type Logger, type NormalizedPluginOptions, type NoticeLogger, type NoticeSeverity, type ObfuscationEngine, type ObfuscationPassOptions, type ObfuscationPassResult, type OutputBundleLike, PROTECTION_RECEIPTS_DIR, type PassMessages, type PassReceiptIdentity, type PassSettings, type PassTiming, type PluginConfigInput, type PluginOptionsView, type PrepareHashSaltInput, type PreparedHashSalt, type Preset, type ProtectionReceipt, type ProtectionReceiptFile, type ProtectionVerification, type RegionConfig, type ReportPolicy, type ReportPolicySignals, type ResolvedBuildSeed, type ResolvedPluginConfig, SEED_ENV_VAR, type SafeNotice, type SaltEngine, type SeedOption, type SeedOrigin, type SourceType, type TelemetryContext, type TelemetryDiagnostic, type TelemetryDiagnosticData, type TelemetryFacts, type TelemetryPayload, type TelemetryReporter, type TelemetryReporterDeps, type TelemetrySeverity, type TelemetrySpan, type TransformKind, UnreadableReceiptError, type ValidationResult, type ValueShape, type ValueType, type WriteArtifactsInput, type WriteArtifactsResult, type WriteProtectionReceiptInput, afterpackHome, applyBundleOutput, applyResolvedKey, collectBundleJs, collectJsFiles, collectSourceMaps, collectStylesheets, createTelemetryReporter, decodeDataUri, discoverInputSourceMap, ensureAfterpackGitignore, extractSourceMappingURL, findUpward, getPath, installedRequiredLine, loadConfigFile, locateProtectionReceipt, mergeConfig, normalizePluginOptions, npxAlternative, parseCliOptions, parseEnvOptions, passSettings, prepareHashSalt, protectionReceiptPath, readEngineVersion, regenerateCompressedSiblings, removeSourceMaps, reportPolicySaltBits, resolveClientIdentity, resolvePluginConfig, resolveReportPolicy, runObfuscationPass, saltSettings, sanitizeNotices, scanDirectives, serverAddsInfo, sha256Of, sourceTypeForBundle, sourceTypeForOutputFormat, sriPluginRefusal, stripBundleCssSourceMaps, stripCssSourceMappingURLs, sweepOutputTree, toEngineConfig, toPluginOptions, unsaltedAssetsWarning, validateConfig, verifyProtectionReceipt, withSourceMappingURL, withoutCssSourceMappingURL, writeArtifacts, writeDeferredProtectionReceipt, writeProtectionReceipt };
|
|
1300
|
+
export { AFTERPACK_DIR, type AfterpackArtifactOptions, type AfterpackConfig, AfterpackFilesError, type AfterpackHome, type AfterpackHomeOptions, type AfterpackPluginOptions, AlreadyObfuscatedError, type ArtifactMode, type BuildContext, type BuildEngineConfigOptions, type BundleEntryLike, type BundleJs, CLOUD_REFUSAL_SUMMARY, CONFIG_FILE_NAME, CONFIG_KEYS, CORE_FLOOR_SUMMARY, type CapturedDirective, type CapturedModule, type CliParseResult, type ClientIdentity, CloudApiError, type CloudErrorKind, type CloudNotice, type CollectJsOptions, type CombinedProtectionMapTarget, type ConfigIssue, type ConfigKeyDef, type ConfigScope, type ConfigSurface, type ConfigTier, type CoreConfig, type CoreConfigSubset, CoreVersionError, DIAG_AFTERPACK_DIR_IN_OUTPUT, DIAG_ALREADY_OBFUSCATED, DIAG_RECEIPT_UNREADABLE, DIAG_RECEIPT_UNWRITABLE, type DiagnosticsSummary, type DiagnosticsVerbosity, type DirectiveDiagnostic, type DirectiveManifest, type EngineBatchResult, type EngineDiagnostic, type EngineDiagnosticData, type EngineFileInput, type EngineFileResult, type EngineSeverity, type EngineSpan, type EnvLike, type EnvParseResult, type GitBuildContext, type GlobReserved, type HashTokenOf, type HashedNamesOptions, type HomeTarget, type InMemoryInput, type InMemoryOutput, type LoadedConfigFile, type LocateReceiptOptions, type LocatedReceipt, type Logger, NEXT_CHUNKS_PREFIX, type NormalizedPluginOptions, type NoticeLogger, type NoticeSeverity, type ObfuscationEngine, type ObfuscationPassOptions, type ObfuscationPassResult, type OutputBundleLike, PROTECTION_RECEIPTS_DIR, type PassMessages, type PassReceiptIdentity, type PassSettings, type PassTiming, type PassWritePlan, type PluginConfigInput, type PluginOptionsView, type PrepareHashSaltInput, type PreparedHashSalt, type Preset, type ProtectionReceipt, type ProtectionReceiptFile, type ProtectionVerification, type RegionConfig, type ReportPolicy, type ReportPolicySignals, type ResolvedBuildSeed, type ResolvedPluginConfig, SEED_ENV_VAR, type SafeNotice, type SaltEngine, type SeedOption, type SeedOrigin, type SourceType, type TelemetryContext, type TelemetryDiagnostic, type TelemetryDiagnosticData, type TelemetryFacts, type TelemetryPayload, type TelemetryReporter, type TelemetryReporterDeps, type TelemetrySeverity, type TelemetrySpan, type TokenScanLimits, type TokenScanResult, type TransformKind, UnreadableReceiptError, type ValidationResult, type ValueShape, type ValueType, type WriteArtifactsInput, type WriteArtifactsResult, type WriteProtectionReceiptInput, afterpackHome, angularHashToken, angularServerManifestRefusal, applyBundleOutput, applyResolvedKey, buildDirKey, collectBundleJs, collectJsFiles, collectSourceMaps, collectStylesheets, createTelemetryReporter, decodeDataUri, detectNextBundler, discoverInputSourceMap, ensureAfterpackGitignore, extractSourceMappingURL, findHashTokenReference, findUpward, getPath, installedRequiredLine, isWithinDir, loadConfigFile, locateProtectionReceipt, mergeConfig, nextChunkToken, normalizePluginOptions, npxAlternative, parseCliOptions, parseEnvOptions, passSettings, planAngularIntegrity, prepareHashSalt, protectionReceiptPath, readEngineVersion, recomputeAngularIntegrity, regenerateCompressedSiblings, removeSourceMaps, reportPolicySaltBits, resolveClientIdentity, resolvePluginConfig, resolveReportPolicy, runObfuscationPass, saltSettings, sanitizeNotices, scanDirectives, serverAddsInfo, sha256Hex, sha256Of, skipNextInternals, sourceTypeForBundle, sourceTypeForOutputFormat, sriPluginRefusal, stagedPath, stripBundleCssSourceMaps, stripCssSourceMappingURLs, sweepOutputTree, toEngineConfig, toPluginOptions, unreferencedHashedFiles, unsaltedAssetsWarning, validateConfig, verifyProtectionReceipt, withSourceMappingURL, withoutCssSourceMappingURL, writeArtifacts, writeDeferredProtectionReceipt, writeFileAtomic, writeProtectionReceipt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { ProtectionMap } from "@afterpack/protection-map";
|
|
2
2
|
|
|
3
|
+
//#region src/angular-integrity.d.ts
|
|
4
|
+
declare function planAngularIntegrity(outputRoot: string, browserDir: string, label?: string): Map<string, string>;
|
|
5
|
+
declare function recomputeAngularIntegrity(outputRoot: string, browserDir: string, label?: string): void;
|
|
6
|
+
declare function angularServerManifestRefusal(outputRoot: string): string | null;
|
|
7
|
+
//#endregion
|
|
3
8
|
//#region src/paths.d.ts
|
|
4
9
|
type ArtifactMode = "single" | "directory" | "framework";
|
|
5
10
|
interface FindUpwardOptions {
|
|
@@ -695,6 +700,11 @@ interface WriteArtifactsResult {
|
|
|
695
700
|
declare function writeArtifacts(input: WriteArtifactsInput): WriteArtifactsResult;
|
|
696
701
|
declare function ensureAfterpackGitignore(afterpackDir: string): void;
|
|
697
702
|
//#endregion
|
|
703
|
+
//#region src/atomic-write.d.ts
|
|
704
|
+
declare function stagedPath(path: string): string;
|
|
705
|
+
declare function sha256Hex(content: string | Uint8Array): string;
|
|
706
|
+
declare function writeFileAtomic(path: string, content: string | Uint8Array): void;
|
|
707
|
+
//#endregion
|
|
698
708
|
//#region src/notices.d.ts
|
|
699
709
|
interface CloudNotice {
|
|
700
710
|
severity: string;
|
|
@@ -881,6 +891,17 @@ interface HashedNamesOptions {
|
|
|
881
891
|
tokenOf: HashTokenOf;
|
|
882
892
|
skip?: (relativePath: string) => boolean;
|
|
883
893
|
}
|
|
894
|
+
declare function unreferencedHashedFiles(options: HashedNamesOptions, files: readonly string[]): string[];
|
|
895
|
+
interface TokenScanLimits {
|
|
896
|
+
maxDepth: number;
|
|
897
|
+
maxFiles: number;
|
|
898
|
+
maxBytes: number;
|
|
899
|
+
}
|
|
900
|
+
interface TokenScanResult {
|
|
901
|
+
found: string | null;
|
|
902
|
+
truncated: boolean;
|
|
903
|
+
}
|
|
904
|
+
declare function findHashTokenReference(paths: readonly string[], options: HashedNamesOptions, files: readonly string[], limits: TokenScanLimits): TokenScanResult;
|
|
884
905
|
//#endregion
|
|
885
906
|
//#region src/directives.d.ts
|
|
886
907
|
interface CapturedDirective {
|
|
@@ -933,6 +954,7 @@ interface AfterpackHome {
|
|
|
933
954
|
strong: boolean;
|
|
934
955
|
buildDir: string;
|
|
935
956
|
}
|
|
957
|
+
declare function isWithinDir(dir: string, path: string): boolean;
|
|
936
958
|
interface AfterpackHomeOptions {
|
|
937
959
|
fileTarget?: boolean;
|
|
938
960
|
}
|
|
@@ -960,6 +982,7 @@ interface ProtectionReceipt {
|
|
|
960
982
|
}
|
|
961
983
|
declare function sha256Of(path: string): string;
|
|
962
984
|
type HomeTarget = string | AfterpackHome;
|
|
985
|
+
declare function buildDirKey(target: HomeTarget): string;
|
|
963
986
|
declare function protectionReceiptPath(target: HomeTarget): string;
|
|
964
987
|
declare function sweepOutputTree(buildDir: string, walkedDir: string | null, label: string, ownHome?: AfterpackHome | null): void;
|
|
965
988
|
interface WriteProtectionReceiptInput {
|
|
@@ -1077,6 +1100,7 @@ interface EngineFileInput {
|
|
|
1077
1100
|
source: string;
|
|
1078
1101
|
sourceMap?: string;
|
|
1079
1102
|
regions?: RegionConfig[];
|
|
1103
|
+
sourceType?: SourceType;
|
|
1080
1104
|
}
|
|
1081
1105
|
interface EngineFileResult {
|
|
1082
1106
|
path: string;
|
|
@@ -1124,6 +1148,10 @@ interface PassReceiptIdentity {
|
|
|
1124
1148
|
bundler?: string;
|
|
1125
1149
|
buildId?: string | null;
|
|
1126
1150
|
}
|
|
1151
|
+
interface PassWritePlan {
|
|
1152
|
+
renamed: ReadonlyMap<string, string>;
|
|
1153
|
+
planned: ReadonlyMap<string, readonly (string | null)[]>;
|
|
1154
|
+
}
|
|
1127
1155
|
interface ObfuscationPassOptions {
|
|
1128
1156
|
files: string[];
|
|
1129
1157
|
inputs?: Map<string, InMemoryInput>;
|
|
@@ -1139,6 +1167,7 @@ interface ObfuscationPassOptions {
|
|
|
1139
1167
|
preset?: Preset;
|
|
1140
1168
|
complexity?: number;
|
|
1141
1169
|
sourceType?: SourceType;
|
|
1170
|
+
fileSourceTypes?: ReadonlyMap<string, SourceType>;
|
|
1142
1171
|
regions?: RegionConfig[];
|
|
1143
1172
|
engineConfig?: CoreConfigSubset;
|
|
1144
1173
|
directivesEnabled?: boolean;
|
|
@@ -1149,6 +1178,7 @@ interface ObfuscationPassOptions {
|
|
|
1149
1178
|
messages?: PassMessages;
|
|
1150
1179
|
receipt?: PassReceiptIdentity;
|
|
1151
1180
|
afterWrite?: (writtenFiles: string[]) => void;
|
|
1181
|
+
beforeWrite?: (plan: PassWritePlan) => void;
|
|
1152
1182
|
resolvedSeed?: ResolvedBuildSeed;
|
|
1153
1183
|
hashedNames?: HashedNamesOptions;
|
|
1154
1184
|
cloudEngineExpectation?: SaltEngine;
|
|
@@ -1251,6 +1281,13 @@ interface EnvParseResult {
|
|
|
1251
1281
|
}
|
|
1252
1282
|
declare function parseEnvOptions(env: Record<string, string | undefined>): EnvParseResult;
|
|
1253
1283
|
//#endregion
|
|
1284
|
+
//#region src/hash-tokens.d.ts
|
|
1285
|
+
declare const NEXT_CHUNKS_PREFIX = "static/chunks/";
|
|
1286
|
+
declare function detectNextBundler(distDir: string): string;
|
|
1287
|
+
declare function nextChunkToken(bundler: string, chunksPrefix?: string): HashTokenOf;
|
|
1288
|
+
declare function skipNextInternals(relativePath: string): boolean;
|
|
1289
|
+
declare const angularHashToken: HashTokenOf;
|
|
1290
|
+
//#endregion
|
|
1254
1291
|
//#region src/source-map.d.ts
|
|
1255
1292
|
declare function withSourceMappingURL(code: string, url: string | null): string;
|
|
1256
1293
|
declare function withoutCssSourceMappingURL(css: string): string;
|
|
@@ -1260,4 +1297,4 @@ declare function discoverInputSourceMap(jsPath: string, code?: string): string |
|
|
|
1260
1297
|
declare function removeSourceMaps(paths: Iterable<string>, label: string): number;
|
|
1261
1298
|
declare function stripCssSourceMappingURLs(paths: Iterable<string>): number;
|
|
1262
1299
|
//#endregion
|
|
1263
|
-
export { AFTERPACK_DIR, type AfterpackArtifactOptions, type AfterpackConfig, AfterpackFilesError, type AfterpackHome, type AfterpackHomeOptions, type AfterpackPluginOptions, AlreadyObfuscatedError, type ArtifactMode, type BuildContext, type BuildEngineConfigOptions, type BundleEntryLike, type BundleJs, CLOUD_REFUSAL_SUMMARY, CONFIG_FILE_NAME, CONFIG_KEYS, CORE_FLOOR_SUMMARY, type CapturedDirective, type CapturedModule, type CliParseResult, type ClientIdentity, CloudApiError, type CloudErrorKind, type CloudNotice, type CollectJsOptions, type CombinedProtectionMapTarget, type ConfigIssue, type ConfigKeyDef, type ConfigScope, type ConfigSurface, type ConfigTier, type CoreConfig, type CoreConfigSubset, CoreVersionError, DIAG_AFTERPACK_DIR_IN_OUTPUT, DIAG_ALREADY_OBFUSCATED, DIAG_RECEIPT_UNREADABLE, DIAG_RECEIPT_UNWRITABLE, type DiagnosticsSummary, type DiagnosticsVerbosity, type DirectiveDiagnostic, type DirectiveManifest, type EngineBatchResult, type EngineDiagnostic, type EngineDiagnosticData, type EngineFileInput, type EngineFileResult, type EngineSeverity, type EngineSpan, type EnvLike, type EnvParseResult, type GitBuildContext, type GlobReserved, type HashTokenOf, type HashedNamesOptions, type HomeTarget, type InMemoryInput, type InMemoryOutput, type LoadedConfigFile, type LocateReceiptOptions, type LocatedReceipt, type Logger, type NormalizedPluginOptions, type NoticeLogger, type NoticeSeverity, type ObfuscationEngine, type ObfuscationPassOptions, type ObfuscationPassResult, type OutputBundleLike, PROTECTION_RECEIPTS_DIR, type PassMessages, type PassReceiptIdentity, type PassSettings, type PassTiming, type PluginConfigInput, type PluginOptionsView, type PrepareHashSaltInput, type PreparedHashSalt, type Preset, type ProtectionReceipt, type ProtectionReceiptFile, type ProtectionVerification, type RegionConfig, type ReportPolicy, type ReportPolicySignals, type ResolvedBuildSeed, type ResolvedPluginConfig, SEED_ENV_VAR, type SafeNotice, type SaltEngine, type SeedOption, type SeedOrigin, type SourceType, type TelemetryContext, type TelemetryDiagnostic, type TelemetryDiagnosticData, type TelemetryFacts, type TelemetryPayload, type TelemetryReporter, type TelemetryReporterDeps, type TelemetrySeverity, type TelemetrySpan, type TransformKind, UnreadableReceiptError, type ValidationResult, type ValueShape, type ValueType, type WriteArtifactsInput, type WriteArtifactsResult, type WriteProtectionReceiptInput, afterpackHome, applyBundleOutput, applyResolvedKey, collectBundleJs, collectJsFiles, collectSourceMaps, collectStylesheets, createTelemetryReporter, decodeDataUri, discoverInputSourceMap, ensureAfterpackGitignore, extractSourceMappingURL, findUpward, getPath, installedRequiredLine, loadConfigFile, locateProtectionReceipt, mergeConfig, normalizePluginOptions, npxAlternative, parseCliOptions, parseEnvOptions, passSettings, prepareHashSalt, protectionReceiptPath, readEngineVersion, regenerateCompressedSiblings, removeSourceMaps, reportPolicySaltBits, resolveClientIdentity, resolvePluginConfig, resolveReportPolicy, runObfuscationPass, saltSettings, sanitizeNotices, scanDirectives, serverAddsInfo, sha256Of, sourceTypeForBundle, sourceTypeForOutputFormat, sriPluginRefusal, stripBundleCssSourceMaps, stripCssSourceMappingURLs, sweepOutputTree, toEngineConfig, toPluginOptions, unsaltedAssetsWarning, validateConfig, verifyProtectionReceipt, withSourceMappingURL, withoutCssSourceMappingURL, writeArtifacts, writeDeferredProtectionReceipt, writeProtectionReceipt };
|
|
1300
|
+
export { AFTERPACK_DIR, type AfterpackArtifactOptions, type AfterpackConfig, AfterpackFilesError, type AfterpackHome, type AfterpackHomeOptions, type AfterpackPluginOptions, AlreadyObfuscatedError, type ArtifactMode, type BuildContext, type BuildEngineConfigOptions, type BundleEntryLike, type BundleJs, CLOUD_REFUSAL_SUMMARY, CONFIG_FILE_NAME, CONFIG_KEYS, CORE_FLOOR_SUMMARY, type CapturedDirective, type CapturedModule, type CliParseResult, type ClientIdentity, CloudApiError, type CloudErrorKind, type CloudNotice, type CollectJsOptions, type CombinedProtectionMapTarget, type ConfigIssue, type ConfigKeyDef, type ConfigScope, type ConfigSurface, type ConfigTier, type CoreConfig, type CoreConfigSubset, CoreVersionError, DIAG_AFTERPACK_DIR_IN_OUTPUT, DIAG_ALREADY_OBFUSCATED, DIAG_RECEIPT_UNREADABLE, DIAG_RECEIPT_UNWRITABLE, type DiagnosticsSummary, type DiagnosticsVerbosity, type DirectiveDiagnostic, type DirectiveManifest, type EngineBatchResult, type EngineDiagnostic, type EngineDiagnosticData, type EngineFileInput, type EngineFileResult, type EngineSeverity, type EngineSpan, type EnvLike, type EnvParseResult, type GitBuildContext, type GlobReserved, type HashTokenOf, type HashedNamesOptions, type HomeTarget, type InMemoryInput, type InMemoryOutput, type LoadedConfigFile, type LocateReceiptOptions, type LocatedReceipt, type Logger, NEXT_CHUNKS_PREFIX, type NormalizedPluginOptions, type NoticeLogger, type NoticeSeverity, type ObfuscationEngine, type ObfuscationPassOptions, type ObfuscationPassResult, type OutputBundleLike, PROTECTION_RECEIPTS_DIR, type PassMessages, type PassReceiptIdentity, type PassSettings, type PassTiming, type PassWritePlan, type PluginConfigInput, type PluginOptionsView, type PrepareHashSaltInput, type PreparedHashSalt, type Preset, type ProtectionReceipt, type ProtectionReceiptFile, type ProtectionVerification, type RegionConfig, type ReportPolicy, type ReportPolicySignals, type ResolvedBuildSeed, type ResolvedPluginConfig, SEED_ENV_VAR, type SafeNotice, type SaltEngine, type SeedOption, type SeedOrigin, type SourceType, type TelemetryContext, type TelemetryDiagnostic, type TelemetryDiagnosticData, type TelemetryFacts, type TelemetryPayload, type TelemetryReporter, type TelemetryReporterDeps, type TelemetrySeverity, type TelemetrySpan, type TokenScanLimits, type TokenScanResult, type TransformKind, UnreadableReceiptError, type ValidationResult, type ValueShape, type ValueType, type WriteArtifactsInput, type WriteArtifactsResult, type WriteProtectionReceiptInput, afterpackHome, angularHashToken, angularServerManifestRefusal, applyBundleOutput, applyResolvedKey, buildDirKey, collectBundleJs, collectJsFiles, collectSourceMaps, collectStylesheets, createTelemetryReporter, decodeDataUri, detectNextBundler, discoverInputSourceMap, ensureAfterpackGitignore, extractSourceMappingURL, findHashTokenReference, findUpward, getPath, installedRequiredLine, isWithinDir, loadConfigFile, locateProtectionReceipt, mergeConfig, nextChunkToken, normalizePluginOptions, npxAlternative, parseCliOptions, parseEnvOptions, passSettings, planAngularIntegrity, prepareHashSalt, protectionReceiptPath, readEngineVersion, recomputeAngularIntegrity, regenerateCompressedSiblings, removeSourceMaps, reportPolicySaltBits, resolveClientIdentity, resolvePluginConfig, resolveReportPolicy, runObfuscationPass, saltSettings, sanitizeNotices, scanDirectives, serverAddsInfo, sha256Hex, sha256Of, skipNextInternals, sourceTypeForBundle, sourceTypeForOutputFormat, sriPluginRefusal, stagedPath, stripBundleCssSourceMaps, stripCssSourceMappingURLs, sweepOutputTree, toEngineConfig, toPluginOptions, unreferencedHashedFiles, unsaltedAssetsWarning, validateConfig, verifyProtectionReceipt, withSourceMappingURL, withoutCssSourceMappingURL, writeArtifacts, writeDeferredProtectionReceipt, writeFileAtomic, writeProtectionReceipt };
|