@endo/compartment-mapper 1.1.2 → 1.1.4
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/package.json +10 -10
- package/src/archive.d.ts +13 -18
- package/src/archive.d.ts.map +1 -1
- package/src/archive.js +12 -12
- package/src/bundle.d.ts +6 -12
- package/src/bundle.d.ts.map +1 -1
- package/src/bundle.js +10 -10
- package/src/compartment-map.d.ts +1 -1
- package/src/compartment-map.d.ts.map +1 -1
- package/src/import-archive.d.ts.map +1 -1
- package/src/import-hook.d.ts +11 -17
- package/src/import-hook.d.ts.map +1 -1
- package/src/import-hook.js +13 -13
- package/src/import.d.ts +8 -9
- package/src/import.d.ts.map +1 -1
- package/src/import.js +7 -7
- package/src/infer-exports.d.ts +1 -1
- package/src/infer-exports.d.ts.map +1 -1
- package/src/infer-exports.js +1 -1
- package/src/link.d.ts +7 -13
- package/src/link.d.ts.map +1 -1
- package/src/link.js +12 -12
- package/src/node-modules.d.ts +3 -11
- package/src/node-modules.d.ts.map +1 -1
- package/src/node-modules.js +10 -10
- package/src/node-powers.d.ts +4 -6
- package/src/node-powers.d.ts.map +1 -1
- package/src/node-powers.js +3 -3
- package/src/parse-cjs-shared-export-wrapper.d.ts +3 -3
- package/src/parse-cjs-shared-export-wrapper.d.ts.map +1 -1
- package/src/parse-cjs-shared-export-wrapper.js +2 -2
- package/src/policy-format.d.ts +4 -4
- package/src/policy-format.d.ts.map +1 -1
- package/src/policy.d.ts +18 -1
- package/src/policy.d.ts.map +1 -1
- package/src/search.d.ts +1 -1
- package/src/search.d.ts.map +1 -1
- package/src/search.js +1 -1
- package/src/types.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@endo/compartment-mapper",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "The compartment mapper assembles Node applications in a sandbox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -47,22 +47,22 @@
|
|
|
47
47
|
"test": "ava"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@endo/cjs-module-analyzer": "^1.0.
|
|
51
|
-
"@endo/static-module-record": "^1.
|
|
52
|
-
"@endo/zip": "^1.0.
|
|
53
|
-
"ses": "^1.
|
|
50
|
+
"@endo/cjs-module-analyzer": "^1.0.4",
|
|
51
|
+
"@endo/static-module-record": "^1.1.1",
|
|
52
|
+
"@endo/zip": "^1.0.4",
|
|
53
|
+
"ses": "^1.4.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"ava": "^
|
|
56
|
+
"ava": "^6.1.2",
|
|
57
57
|
"babel-eslint": "^10.0.3",
|
|
58
58
|
"c8": "^7.14.0",
|
|
59
|
-
"eslint": "^8.
|
|
59
|
+
"eslint": "^8.57.0",
|
|
60
60
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
61
|
-
"eslint-config-prettier": "^
|
|
61
|
+
"eslint-config-prettier": "^9.1.0",
|
|
62
62
|
"eslint-plugin-eslint-comments": "^3.1.2",
|
|
63
63
|
"eslint-plugin-import": "^2.29.0",
|
|
64
64
|
"prettier": "^3.0.0",
|
|
65
|
-
"typescript": "~5.
|
|
65
|
+
"typescript": "~5.5.0-dev.20240327"
|
|
66
66
|
},
|
|
67
67
|
"files": [
|
|
68
68
|
"LICENSE*",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"typeCoverage": {
|
|
101
101
|
"atLeast": 86.14
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "25229bdcc26babb3afe0c229df4283a0f3c105f3"
|
|
104
104
|
}
|
package/src/archive.d.ts
CHANGED
|
@@ -2,24 +2,19 @@ export function makeArchiveCompartmentMap(compartmentMap: CompartmentMapDescript
|
|
|
2
2
|
archiveCompartmentMap: CompartmentMapDescriptor;
|
|
3
3
|
archiveSources: Sources;
|
|
4
4
|
};
|
|
5
|
-
export function makeAndHashArchive(powers: ReadFn | ReadPowers, moduleLocation: string, options?:
|
|
5
|
+
export function makeAndHashArchive(powers: ReadFn | ReadPowers, moduleLocation: string, options?: ArchiveOptions | undefined): Promise<{
|
|
6
6
|
bytes: Uint8Array;
|
|
7
|
-
sha512?: string
|
|
7
|
+
sha512?: string;
|
|
8
8
|
}>;
|
|
9
|
-
export function makeArchive(powers: ReadFn | ReadPowers, moduleLocation: string, options?:
|
|
10
|
-
export function mapLocation(powers: ReadFn | ReadPowers, moduleLocation: string, options?:
|
|
11
|
-
export function hashLocation(powers: HashPowers, moduleLocation: string, options?:
|
|
12
|
-
export function writeArchive(write: WriteFn, readPowers: ReadFn | ReadPowers, archiveLocation: string, moduleLocation: string, options?:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export type CaptureSourceLocationHook = import('./types.js').CaptureSourceLocationHook;
|
|
21
|
-
export type ReadPowers = import('./types.js').ReadPowers;
|
|
22
|
-
export type HashPowers = import('./types.js').HashPowers;
|
|
23
|
-
export type Sources = import('./types.js').Sources;
|
|
24
|
-
export type WriteFn = import('./types.js').WriteFn;
|
|
9
|
+
export function makeArchive(powers: ReadFn | ReadPowers, moduleLocation: string, options?: ArchiveOptions | undefined): Promise<Uint8Array>;
|
|
10
|
+
export function mapLocation(powers: ReadFn | ReadPowers, moduleLocation: string, options?: ArchiveOptions | undefined): Promise<Uint8Array>;
|
|
11
|
+
export function hashLocation(powers: HashPowers, moduleLocation: string, options?: ArchiveOptions | undefined): Promise<string>;
|
|
12
|
+
export function writeArchive(write: WriteFn, readPowers: ReadFn | ReadPowers, archiveLocation: string, moduleLocation: string, options?: ArchiveOptions | undefined): Promise<void>;
|
|
13
|
+
import type { CompartmentMapDescriptor } from './types.js';
|
|
14
|
+
import type { Sources } from './types.js';
|
|
15
|
+
import type { ReadFn } from './types.js';
|
|
16
|
+
import type { ReadPowers } from './types.js';
|
|
17
|
+
import type { ArchiveOptions } from './types.js';
|
|
18
|
+
import type { HashPowers } from './types.js';
|
|
19
|
+
import type { WriteFn } from './types.js';
|
|
25
20
|
//# sourceMappingURL=archive.d.ts.map
|
package/src/archive.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["archive.js"],"names":[],"mappings":"AA8PO,
|
|
1
|
+
{"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["archive.js"],"names":[],"mappings":"AA8PO;;;EA+BN;AA4HM,gFAJI,MAAM,yCAEJ,OAAO,CAAC;IAAC,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC,CAezD;AAQM,yEAJI,MAAM,yCAEJ,OAAO,CAAC,UAAU,CAAC,CAK/B;AAQM,yEAJI,MAAM,yCAEJ,OAAO,CAAC,UAAU,CAAC,CAS/B;AAQM,iEAJI,MAAM,yCAEJ,OAAO,CAAC,MAAM,CAAC,CAU3B;AASM,+FAJI,MAAM,kBACN,MAAM,uDAYhB;8CA5d2C,YAAY;6BAO7B,YAAY;4BAJb,YAAY;gCAER,YAAY;oCARR,YAAY;gCAShB,YAAY;6BAEf,YAAY"}
|
package/src/archive.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
/* eslint no-shadow: 0 */
|
|
3
3
|
|
|
4
|
-
/** @
|
|
5
|
-
/** @
|
|
6
|
-
/** @
|
|
7
|
-
/** @
|
|
8
|
-
/** @
|
|
9
|
-
/** @
|
|
10
|
-
/** @
|
|
11
|
-
/** @
|
|
12
|
-
/** @
|
|
13
|
-
/** @
|
|
14
|
-
/** @
|
|
15
|
-
/** @
|
|
4
|
+
/** @import {ArchiveOptions} from './types.js' */
|
|
5
|
+
/** @import {ArchiveWriter} from './types.js' */
|
|
6
|
+
/** @import {CompartmentDescriptor} from './types.js' */
|
|
7
|
+
/** @import {CompartmentMapDescriptor} from './types.js' */
|
|
8
|
+
/** @import {ModuleDescriptor} from './types.js' */
|
|
9
|
+
/** @import {ParserImplementation} from './types.js' */
|
|
10
|
+
/** @import {ReadFn} from './types.js' */
|
|
11
|
+
/** @import {CaptureSourceLocationHook} from './types.js' */
|
|
12
|
+
/** @import {ReadPowers} from './types.js' */
|
|
13
|
+
/** @import {HashPowers} from './types.js' */
|
|
14
|
+
/** @import {Sources} from './types.js' */
|
|
15
|
+
/** @import {WriteFn} from './types.js' */
|
|
16
16
|
|
|
17
17
|
import { writeZip } from '@endo/zip';
|
|
18
18
|
import { resolve } from './node-module-specifier.js';
|
package/src/bundle.d.ts
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
export function makeBundle(read: ReadFn, moduleLocation: string, options?: {
|
|
2
|
-
moduleTransforms?:
|
|
2
|
+
moduleTransforms?: ModuleTransforms | undefined;
|
|
3
3
|
dev?: boolean | undefined;
|
|
4
4
|
tags?: Set<string> | undefined;
|
|
5
5
|
commonDependencies?: object;
|
|
6
6
|
searchSuffixes?: string[] | undefined;
|
|
7
7
|
sourceMapHook?: import("./types.js").SourceMapHook | undefined;
|
|
8
8
|
} | undefined): Promise<string>;
|
|
9
|
-
export function writeBundle(write: WriteFn, read: ReadFn, bundleLocation: string, moduleLocation: string, options?:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export type CompartmentSources = import('./types.js').CompartmentSources;
|
|
15
|
-
export type ReadFn = import('./types.js').ReadFn;
|
|
16
|
-
export type ModuleTransforms = import('./types.js').ModuleTransforms;
|
|
17
|
-
export type Sources = import('./types.js').Sources;
|
|
18
|
-
export type WriteFn = import('./types.js').WriteFn;
|
|
19
|
-
export type ArchiveOptions = import('./types.js').ArchiveOptions;
|
|
9
|
+
export function writeBundle(write: WriteFn, read: ReadFn, bundleLocation: string, moduleLocation: string, options?: ArchiveOptions | undefined): Promise<void>;
|
|
10
|
+
import type { ReadFn } from './types.js';
|
|
11
|
+
import type { ModuleTransforms } from './types.js';
|
|
12
|
+
import type { WriteFn } from './types.js';
|
|
13
|
+
import type { ArchiveOptions } from './types.js';
|
|
20
14
|
//# sourceMappingURL=bundle.d.ts.map
|
package/src/bundle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["bundle.js"],"names":[],"mappings":"AA4KO,
|
|
1
|
+
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["bundle.js"],"names":[],"mappings":"AA4KO,yDAVI,MAAM;;;;yBAKN,MAAM;;;gBAGJ,OAAO,CAAC,MAAM,CAAC,CA8J3B;AASM,0EAJI,MAAM,kBACN,MAAM,uDAahB;4BAnVyB,YAAY;sCACF,YAAY;6BAErB,YAAY;oCACL,YAAY"}
|
package/src/bundle.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
/* eslint no-shadow: 0 */
|
|
3
3
|
|
|
4
|
-
/** @
|
|
5
|
-
/** @
|
|
6
|
-
/** @
|
|
7
|
-
/** @
|
|
8
|
-
/** @
|
|
9
|
-
/** @
|
|
10
|
-
/** @
|
|
11
|
-
/** @
|
|
12
|
-
/** @
|
|
13
|
-
/** @
|
|
4
|
+
/** @import {ResolveHook} from 'ses' */
|
|
5
|
+
/** @import {PrecompiledStaticModuleInterface} from 'ses' */
|
|
6
|
+
/** @import {ParserImplementation} from './types.js' */
|
|
7
|
+
/** @import {CompartmentDescriptor} from './types.js' */
|
|
8
|
+
/** @import {CompartmentSources} from './types.js' */
|
|
9
|
+
/** @import {ReadFn} from './types.js' */
|
|
10
|
+
/** @import {ModuleTransforms} from './types.js' */
|
|
11
|
+
/** @import {Sources} from './types.js' */
|
|
12
|
+
/** @import {WriteFn} from './types.js' */
|
|
13
|
+
/** @import {ArchiveOptions} from './types.js' */
|
|
14
14
|
|
|
15
15
|
import { resolve } from './node-module-specifier.js';
|
|
16
16
|
import { compartmentMapForNodeModules } from './node-modules.js';
|
package/src/compartment-map.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @type {(a: string, b: string) => number} */
|
|
2
2
|
export const stringCompare: (a: string, b: string) => number;
|
|
3
3
|
export function pathCompare(a: Array<string> | undefined, b: Array<string> | undefined): number;
|
|
4
|
-
export function assertCompartmentMap(allegedCompartmentMap: unknown, url?: string | undefined): asserts compartmentMap is import(
|
|
4
|
+
export function assertCompartmentMap(allegedCompartmentMap: unknown, url?: string | undefined): asserts compartmentMap is import('./types.js').CompartmentMapDescriptor;
|
|
5
5
|
//# sourceMappingURL=compartment-map.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compartment-map.d.ts","sourceRoot":"","sources":["compartment-map.js"],"names":[],"mappings":"AAqBA,+CAA+C;AAE/C,
|
|
1
|
+
{"version":3,"file":"compartment-map.d.ts","sourceRoot":"","sources":["compartment-map.js"],"names":[],"mappings":"AAqBA,+CAA+C;AAE/C,4BAFW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,MAAM,CAE2B;AAc/D,+BAHI,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,KACzB,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,UAqCnC;AAyaM,4DALI,OAAO,6BAEL,OAAO,CAAC,cAAc,IAAI,OAAO,YAAY,EAAE,wBAAwB,CAwBnF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-archive.d.ts","sourceRoot":"","sources":["import-archive.js"],"names":[],"mappings":"AA8PO,2CAZI,UAAU;;;;;;;;gBAUR,
|
|
1
|
+
{"version":3,"file":"import-archive.d.ts","sourceRoot":"","sources":["import-archive.js"],"names":[],"mappings":"AA8PO,2CAZI,UAAU;;;;;;;;gBAUR,OAAO,CAAC,OAAO,YAAY,EAAE,WAAW,CAAC,CAmJrD;AAQM,wCALI,OAAO,YAAY,EAAE,MAAM,GAAG,OAAO,YAAY,EAAE,UAAU,mBAC7D,MAAM,kEAEJ,OAAO,CAAC,OAAO,YAAY,EAAE,WAAW,CAAC,CAsBrD;AAQM,0CALI,OAAO,YAAY,EAAE,MAAM,GAAG,OAAO,YAAY,EAAE,UAAU,mBAC7D,MAAM,WACN,OAAO,YAAY,EAAE,cAAc,GAAG,OAAO,YAAY,EAAE,kBAAkB,GAC3E,OAAO,CAAC,MAAM,CAAC,CAK3B;qCAvMa,OAAO,WAAW"}
|
package/src/import-hook.d.ts
CHANGED
|
@@ -3,27 +3,21 @@ export function exitModuleImportHookMaker({ modules, exitModuleImportHook, }: {
|
|
|
3
3
|
exitModuleImportHook?: ExitModuleImportHook | undefined;
|
|
4
4
|
}): ExitModuleImportHook | undefined;
|
|
5
5
|
export function makeImportHookMaker(readPowers: ReadFn | ReadPowers, baseLocation: string, { sources, compartmentDescriptors, archiveOnly, computeSha512, searchSuffixes, sourceMapHook, entryCompartmentName, entryModuleSpecifier, exitModuleImportHook, }: {
|
|
6
|
-
sources?:
|
|
7
|
-
compartmentDescriptors?: Record<string,
|
|
6
|
+
sources?: Sources | undefined;
|
|
7
|
+
compartmentDescriptors?: Record<string, CompartmentDescriptor> | undefined;
|
|
8
8
|
archiveOnly?: boolean | undefined;
|
|
9
|
-
computeSha512?:
|
|
9
|
+
computeSha512?: HashFn | undefined;
|
|
10
10
|
searchSuffixes?: string[] | undefined;
|
|
11
11
|
entryCompartmentName: string;
|
|
12
12
|
entryModuleSpecifier: string;
|
|
13
|
-
exitModuleImportHook?:
|
|
13
|
+
exitModuleImportHook?: ExitModuleImportHook | undefined;
|
|
14
14
|
sourceMapHook?: import("./types.js").SourceMapHook | undefined;
|
|
15
15
|
}): ImportHookMaker;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export type Sources = import('./types.js').Sources;
|
|
24
|
-
export type CompartmentSources = import('./types.js').CompartmentSources;
|
|
25
|
-
export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor;
|
|
26
|
-
export type ImportHookMaker = import('./types.js').ImportHookMaker;
|
|
27
|
-
export type DeferredAttenuatorsProvider = import('./types.js').DeferredAttenuatorsProvider;
|
|
28
|
-
export type ExitModuleImportHook = import('./types.js').ExitModuleImportHook;
|
|
16
|
+
import type { ExitModuleImportHook } from './types.js';
|
|
17
|
+
import type { ReadFn } from './types.js';
|
|
18
|
+
import type { ReadPowers } from './types.js';
|
|
19
|
+
import type { Sources } from './types.js';
|
|
20
|
+
import type { CompartmentDescriptor } from './types.js';
|
|
21
|
+
import type { HashFn } from './types.js';
|
|
22
|
+
import type { ImportHookMaker } from './types.js';
|
|
29
23
|
//# sourceMappingURL=import-hook.d.ts.map
|
package/src/import-hook.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-hook.d.ts","sourceRoot":"","sources":["import-hook.js"],"names":[],"mappings":"AAuEO;
|
|
1
|
+
{"version":3,"file":"import-hook.d.ts","sourceRoot":"","sources":["import-hook.js"],"names":[],"mappings":"AAuEO;cAJI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;qCA4B7B;AAuBM,mFAnBI,MAAM;IAEY,OAAO;IACuB,sBAAsB;IACpD,WAAW;IACZ,aAAa;IACN,cAAc;IAOtB,oBAAoB,EAApC,MAAM;IACU,oBAAoB,EAApC,MAAM;IACyB,oBAAoB;IACN,aAAa;oBAsRpE;0CA3XuC,YAAY;4BAR1B,YAAY;gCACR,YAAY;6BAEf,YAAY;2CAEE,YAAY;4BAH3B,YAAY;qCAIH,YAAY"}
|
package/src/import-hook.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
/** @
|
|
4
|
-
/** @
|
|
5
|
-
/** @
|
|
6
|
-
/** @
|
|
7
|
-
/** @
|
|
8
|
-
/** @
|
|
9
|
-
/** @
|
|
10
|
-
/** @
|
|
11
|
-
/** @
|
|
12
|
-
/** @
|
|
13
|
-
/** @
|
|
14
|
-
/** @
|
|
15
|
-
/** @
|
|
3
|
+
/** @import {ImportHook} from 'ses' */
|
|
4
|
+
/** @import {StaticModuleType} from 'ses' */
|
|
5
|
+
/** @import {RedirectStaticModuleInterface} from 'ses' */
|
|
6
|
+
/** @import {ThirdPartyStaticModuleInterface} from 'ses' */
|
|
7
|
+
/** @import {ReadFn} from './types.js' */
|
|
8
|
+
/** @import {ReadPowers} from './types.js' */
|
|
9
|
+
/** @import {HashFn} from './types.js' */
|
|
10
|
+
/** @import {Sources} from './types.js' */
|
|
11
|
+
/** @import {CompartmentSources} from './types.js' */
|
|
12
|
+
/** @import {CompartmentDescriptor} from './types.js' */
|
|
13
|
+
/** @import {ImportHookMaker} from './types.js' */
|
|
14
|
+
/** @import {DeferredAttenuatorsProvider} from './types.js' */
|
|
15
|
+
/** @import {ExitModuleImportHook} from './types.js' */
|
|
16
16
|
|
|
17
17
|
import { attenuateModuleHook, enforceModulePolicy } from './policy.js';
|
|
18
18
|
import { resolve } from './node-module-specifier.js';
|
package/src/import.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/** @type {Record<string, ParserImplementation>} */
|
|
2
2
|
export const parserForLanguage: Record<string, ParserImplementation>;
|
|
3
|
-
export function loadLocation(readPowers: ReadFn | ReadPowers, moduleLocation: string, options?:
|
|
4
|
-
export function importLocation(readPowers: ReadFn | ReadPowers, moduleLocation: string, options?: (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export type ReadPowers = import('./types.js').ReadPowers;
|
|
3
|
+
export function loadLocation(readPowers: ReadFn | ReadPowers, moduleLocation: string, options?: ArchiveOptions | undefined): Promise<Application>;
|
|
4
|
+
export function importLocation(readPowers: ReadFn | ReadPowers, moduleLocation: string, options?: (ExecuteOptions & ArchiveOptions) | undefined): Promise<import('./types.js').SomeObject>;
|
|
5
|
+
import type { ParserImplementation } from './types.js';
|
|
6
|
+
import type { ReadFn } from './types.js';
|
|
7
|
+
import type { ReadPowers } from './types.js';
|
|
8
|
+
import type { ArchiveOptions } from './types.js';
|
|
9
|
+
import type { Application } from './types.js';
|
|
10
|
+
import type { ExecuteOptions } from './types.js';
|
|
12
11
|
//# sourceMappingURL=import.d.ts.map
|
package/src/import.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import.d.ts","sourceRoot":"","sources":["import.js"],"names":[],"mappings":"AA0BA,mDAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"import.d.ts","sourceRoot":"","sources":["import.js"],"names":[],"mappings":"AA0BA,mDAAmD;AACnD,qEAME;AAQK,8EAJI,MAAM,8DA0EhB;AASM,gFALI,MAAM,4DAEJ,OAAO,CAAC,OAAO,YAAY,EAAE,UAAU,CAAC,CAUpD;0CAxHuC,YAAY;4BAC1B,YAAY;gCACR,YAAY;oCALR,YAAY;iCADf,YAAY;oCAGT,YAAY"}
|
package/src/import.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
/* eslint no-shadow: "off" */
|
|
3
3
|
|
|
4
|
-
/** @
|
|
5
|
-
/** @
|
|
6
|
-
/** @
|
|
7
|
-
/** @
|
|
8
|
-
/** @
|
|
9
|
-
/** @
|
|
10
|
-
/** @
|
|
4
|
+
/** @import {Application} from './types.js' */
|
|
5
|
+
/** @import {ArchiveOptions} from './types.js' */
|
|
6
|
+
/** @import {ExecuteFn} from './types.js' */
|
|
7
|
+
/** @import {ExecuteOptions} from './types.js' */
|
|
8
|
+
/** @import {ParserImplementation} from './types.js' */
|
|
9
|
+
/** @import {ReadFn} from './types.js' */
|
|
10
|
+
/** @import {ReadPowers} from './types.js' */
|
|
11
11
|
|
|
12
12
|
import { compartmentMapForNodeModules } from './node-modules.js';
|
|
13
13
|
import { search } from './search.js';
|
package/src/infer-exports.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export function inferExportsEntries({ main, module, exports }: {
|
|
|
5
5
|
}, tags: Set<string>, types: Record<string, Language>): Generator<string[], void, any>;
|
|
6
6
|
export function inferExports(descriptor: object, tags: Set<string>, types: Record<string, Language>): Record<string, string>;
|
|
7
7
|
export function inferExportsAndAliases(descriptor: any, externalAliases: any, internalAliases: any, tags: any, types: any): void;
|
|
8
|
-
|
|
8
|
+
import type { Language } from './types.js';
|
|
9
9
|
//# sourceMappingURL=infer-exports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infer-exports.d.ts","sourceRoot":"","sources":["infer-exports.js"],"names":[],"mappings":"AA6GO;IAT8B,IAAI,EAA9B,MAAM;IACqB,MAAM;IACN,OAAO,GAAlC,MAAM;SACN,
|
|
1
|
+
{"version":3,"file":"infer-exports.d.ts","sourceRoot":"","sources":["infer-exports.js"],"names":[],"mappings":"AA6GO;IAT8B,IAAI,EAA9B,MAAM;IACqB,MAAM;IACN,OAAO,GAAlC,MAAM;SACN,GAAG,CAAC,MAAM,CAAC,mEA6BrB;AAkBM,yCAPI,MAAM,QACN,GAAG,CAAC,MAAM,CAAC,oCAIT,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGwB;AAEpD,iIA2CN;8BAlM2B,YAAY"}
|
package/src/infer-exports.js
CHANGED
package/src/link.d.ts
CHANGED
|
@@ -6,17 +6,11 @@ export function link({ entry, compartments: compartmentDescriptors }: Compartmen
|
|
|
6
6
|
pendingJobsPromise: Promise<void>;
|
|
7
7
|
};
|
|
8
8
|
export function assemble(compartmentMap: CompartmentMapDescriptor, options: LinkOptions): Compartment;
|
|
9
|
-
export type
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type ModuleDescriptor = import('./types.js').ModuleDescriptor;
|
|
17
|
-
export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor;
|
|
18
|
-
export type CompartmentMapDescriptor = import('./types.js').CompartmentMapDescriptor;
|
|
19
|
-
export type DeferredAttenuatorsProvider = import('./types.js').DeferredAttenuatorsProvider;
|
|
20
|
-
export type LinkOptions = import('./types.js').LinkOptions;
|
|
21
|
-
export type ERef<T_1> = import('@endo/eventual-send').ERef<T>;
|
|
9
|
+
export type ERef<T_1> = import('@endo/eventual-send').ERef<T_1>;
|
|
10
|
+
import type { Language } from './types.js';
|
|
11
|
+
import type { ParserImplementation } from './types.js';
|
|
12
|
+
import type { ModuleTransforms } from './types.js';
|
|
13
|
+
import type { ParseFn } from './types.js';
|
|
14
|
+
import type { CompartmentMapDescriptor } from './types.js';
|
|
15
|
+
import type { LinkOptions } from './types.js';
|
|
22
16
|
//# sourceMappingURL=link.d.ts.map
|
package/src/link.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["link.js"],"names":[],"mappings":"AA+IO,
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["link.js"],"names":[],"mappings":"AA+IO,uGANI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,yGA8BhC;AAmKM;;;;;EAwIN;AAMM,sGACoC;iBA3ckB,GAAC,IAApC,OAAO,qBAAqB,EAAE,IAAI,CAAC,GAAC,CAAC;8BANnC,YAAY;0CAHA,YAAY;sCAEhB,YAAY;6BAHrB,YAAY;8CAOK,YAAY;iCAEzB,YAAY"}
|
package/src/link.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
/** @
|
|
4
|
-
/** @
|
|
5
|
-
/** @
|
|
6
|
-
/** @
|
|
7
|
-
/** @
|
|
8
|
-
/** @
|
|
9
|
-
/** @
|
|
10
|
-
/** @
|
|
11
|
-
/** @
|
|
12
|
-
/** @
|
|
13
|
-
/** @
|
|
14
|
-
/** @
|
|
3
|
+
/** @import {ModuleMapHook} from 'ses' */
|
|
4
|
+
/** @import {ResolveHook} from 'ses' */
|
|
5
|
+
/** @import {ParseFn} from './types.js' */
|
|
6
|
+
/** @import {ParserImplementation} from './types.js' */
|
|
7
|
+
/** @import {ShouldDeferError} from './types.js' */
|
|
8
|
+
/** @import {ModuleTransforms} from './types.js' */
|
|
9
|
+
/** @import {Language} from './types.js' */
|
|
10
|
+
/** @import {ModuleDescriptor} from './types.js' */
|
|
11
|
+
/** @import {CompartmentDescriptor} from './types.js' */
|
|
12
|
+
/** @import {CompartmentMapDescriptor} from './types.js' */
|
|
13
|
+
/** @import {DeferredAttenuatorsProvider} from './types.js' */
|
|
14
|
+
/** @import {LinkOptions} from './types.js' */
|
|
15
15
|
/** @template T @typedef {import('@endo/eventual-send').ERef<T>} ERef */
|
|
16
16
|
|
|
17
17
|
import { resolve as resolveFallback } from './node-module-specifier.js';
|
package/src/node-modules.d.ts
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
export function compartmentMapForNodeModules(readPowers:
|
|
1
|
+
export function compartmentMapForNodeModules(readPowers: any, packageLocation: string, tags: Set<string>, packageDescriptor: object, moduleSpecifier: string, options?: {
|
|
2
2
|
dev?: boolean | undefined;
|
|
3
3
|
commonDependencies?: object;
|
|
4
4
|
policy?: object;
|
|
5
5
|
} | undefined): Promise<CompartmentMapDescriptor>;
|
|
6
|
-
export type Language = import('./types.js').Language;
|
|
7
|
-
export type ReadFn = import('./types.js').ReadFn;
|
|
8
|
-
export type MaybeReadFn = import('./types.js').MaybeReadFn;
|
|
9
|
-
export type CanonicalFn = import('./types.js').CanonicalFn;
|
|
10
|
-
export type CompartmentMapDescriptor = import('./types.js').CompartmentMapDescriptor;
|
|
11
|
-
export type ModuleDescriptor = import('./types.js').ModuleDescriptor;
|
|
12
|
-
export type ScopeDescriptor = import('./types.js').ScopeDescriptor;
|
|
13
|
-
export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor;
|
|
14
|
-
export type ReadPowers = import('./types.js').ReadPowers;
|
|
15
|
-
export type MaybeReadPowers = import('./types.js').MaybeReadPowers;
|
|
16
6
|
/**
|
|
17
7
|
* The graph is an intermediate object model that the functions of this module
|
|
18
8
|
* build by exploring the `node_modules` tree dropped by tools like npm and
|
|
@@ -49,4 +39,6 @@ export type CommonDependencyDescriptors = Record<string, {
|
|
|
49
39
|
alias: string;
|
|
50
40
|
}>;
|
|
51
41
|
export type ReadDescriptorFn = (packageLocation: string) => Promise<object>;
|
|
42
|
+
import type { CompartmentMapDescriptor } from './types.js';
|
|
43
|
+
import type { Language } from './types.js';
|
|
52
44
|
//# sourceMappingURL=node-modules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-modules.d.ts","sourceRoot":"","sources":["node-modules.js"],"names":[],"mappings":"AAwsBO,
|
|
1
|
+
{"version":3,"file":"node-modules.d.ts","sourceRoot":"","sources":["node-modules.js"],"names":[],"mappings":"AAwsBO,+EAVI,MAAM,QACN,GAAG,CAAC,MAAM,CAAC,qBACX,MAAM,mBACN,MAAM;;yBAGN,MAAM;aACN,MAAM;kDAgDhB;;;;;;;oBAjuBY,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC;;WAKnB,MAAM;UACN,MAAM;UACN,KAAK,CAAC,MAAM,CAAC;iBACb,KAAK,CAAC,MAAM,CAAC;qBACb,OAAO;qBACP,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;qBACtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;yBACtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;;;;;;;0CASvB,MAAM,CAAC,MAAM,EAAE;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAAC;iDA+E/C,MAAM,KACJ,OAAO,CAAC,MAAM,CAAC;8CAlHgB,YAAY;8BAJ5B,YAAY"}
|
package/src/node-modules.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
/* eslint no-shadow: 0 */
|
|
3
3
|
|
|
4
|
-
/** @
|
|
5
|
-
/** @
|
|
6
|
-
/** @
|
|
7
|
-
/** @
|
|
8
|
-
/** @
|
|
9
|
-
/** @
|
|
10
|
-
/** @
|
|
11
|
-
/** @
|
|
12
|
-
/** @
|
|
13
|
-
/** @
|
|
4
|
+
/** @import {Language} from './types.js' */
|
|
5
|
+
/** @import {ReadFn} from './types.js' */
|
|
6
|
+
/** @import {MaybeReadFn} from './types.js' */
|
|
7
|
+
/** @import {CanonicalFn} from './types.js' */
|
|
8
|
+
/** @import {CompartmentMapDescriptor} from './types.js' */
|
|
9
|
+
/** @import {ModuleDescriptor} from './types.js' */
|
|
10
|
+
/** @import {ScopeDescriptor} from './types.js' */
|
|
11
|
+
/** @import {CompartmentDescriptor} from './types.js' */
|
|
12
|
+
/** @import {ReadPowers} from './types.js' */
|
|
13
|
+
/** @import {MaybeReadPowers} from './types.js' */
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* The graph is an intermediate object model that the functions of this module
|
package/src/node-powers.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
/**
|
|
4
2
|
* The implementation of `makeReadPowers` and the deprecated
|
|
5
3
|
* `makeNodeReadPowers` handles the case when the `url` power is not provided,
|
|
@@ -20,7 +18,7 @@ export function makeReadPowers({ fs, url, crypto }: {
|
|
|
20
18
|
fileURLToPath: (location: string) => string;
|
|
21
19
|
pathToFileURL: ((path: string) => string) | typeof import("url").pathToFileURL;
|
|
22
20
|
canonical: (location: string) => Promise<string>;
|
|
23
|
-
computeSha512:
|
|
21
|
+
computeSha512: HashFn | undefined;
|
|
24
22
|
requireResolve: (from: any, specifier: any, options: any) => string;
|
|
25
23
|
};
|
|
26
24
|
/**
|
|
@@ -40,7 +38,7 @@ export function makeWritePowers({ fs, url }: {
|
|
|
40
38
|
};
|
|
41
39
|
export function makeNodeReadPowers(fs: typeof import('fs'), crypto?: typeof import("crypto") | undefined): ReadPowers;
|
|
42
40
|
export function makeNodeWritePowers(fs: typeof import('fs')): WritePowers;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
import type { HashFn } from './types.js';
|
|
42
|
+
import type { ReadPowers } from './types.js';
|
|
43
|
+
import type { WritePowers } from './types.js';
|
|
46
44
|
//# sourceMappingURL=node-powers.d.ts.map
|
package/src/node-powers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-powers.d.ts","sourceRoot":"","sources":["node-powers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node-powers.d.ts","sourceRoot":"","sources":["node-powers.js"],"names":[],"mappings":"AA0BA;;;;;;;;;GASG;AACH;IAJqC,EAAE,EAA5B,cAAc,IAAI,CAAC;IACS,GAAG;IACA,MAAM;;qBAWnC,MAAM;0BAqBN,MAAM;8BAzDR,MAAM;2BAWN,MAAM;0BA2EJ,MAAM;;;EAoClB;AAED;;;;;;;;GAQG;AACH;IAHqC,EAAE,EAA5B,cAAc,IAAI,CAAC;IACS,GAAG;;sBAO7B,MAAM,QACN,UAAU;EAWtB;AA0BM,uCAJI,cAAc,IAAI,CAAC,4DAM7B;AAUM,wCAHI,cAAc,IAAI,CAAC,eAK7B;4BApMyB,YAAY;gCADR,YAAY;iCAEX,YAAY"}
|
package/src/node-powers.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
/** @
|
|
4
|
-
/** @
|
|
5
|
-
/** @
|
|
3
|
+
/** @import {ReadPowers} from './types.js' */
|
|
4
|
+
/** @import {HashFn} from './types.js' */
|
|
5
|
+
/** @import {WritePowers} from './types.js' */
|
|
6
6
|
|
|
7
7
|
import { createRequire } from 'module';
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function getModulePaths(readPowers:
|
|
1
|
+
export function getModulePaths(readPowers: ReadFn | ReadPowers | undefined, location: string): {
|
|
2
2
|
filename: string | null;
|
|
3
3
|
dirname: string | null;
|
|
4
4
|
};
|
|
@@ -16,6 +16,6 @@ export function wrap({ moduleEnvironmentRecord, compartment, resolvedImports, lo
|
|
|
16
16
|
afterExecute: Function;
|
|
17
17
|
require: Function;
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
import type { ReadFn } from './types.js';
|
|
20
|
+
import type { ReadPowers } from './types.js';
|
|
21
21
|
//# sourceMappingURL=parse-cjs-shared-export-wrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-cjs-shared-export-wrapper.d.ts","sourceRoot":"","sources":["parse-cjs-shared-export-wrapper.js"],"names":[],"mappings":"AA8BO,
|
|
1
|
+
{"version":3,"file":"parse-cjs-shared-export-wrapper.d.ts","sourceRoot":"","sources":["parse-cjs-shared-export-wrapper.js"],"names":[],"mappings":"AA8BO,sFANI,MAAM,GACJ;IACZ,QAAY,EAAC,MAAM,GAAC,IAAI,CAAC;IACzB,OAAW,EAAE,MAAM,GAAC,IAAI,CAAA;CACrB,CAgCH;AAmBM;6BAZI,MAAM;iBACN,WAAW;qBACX,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;cACtB,MAAM;;;;iBAGO,GAAG;;mBACP,GAAG;;;EA+GtB;4BAvLyB,YAAY;gCACR,YAAY"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
/** @
|
|
4
|
-
/** @
|
|
3
|
+
/** @import {ReadFn} from './types.js' */
|
|
4
|
+
/** @import {ReadPowers} from './types.js' */
|
|
5
5
|
|
|
6
6
|
const { apply } = Reflect;
|
|
7
7
|
const { freeze, keys, create, hasOwnProperty, defineProperty } = Object;
|
package/src/policy-format.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function policyLookupHelper(packagePolicy: import('./types.js').PackagePolicy, field: 'builtins' | 'globals' | 'packages', itemName: string): boolean | import('./types.js').AttenuationDefinition;
|
|
2
|
-
export function isAllowingEverything(policyValue: unknown): policyValue is
|
|
3
|
-
export function isAttenuationDefinition(allegedDefinition: unknown): allegedDefinition is import(
|
|
2
|
+
export function isAllowingEverything(policyValue: unknown): policyValue is import('./types.js').WildcardPolicy;
|
|
3
|
+
export function isAttenuationDefinition(allegedDefinition: unknown): allegedDefinition is import('./types.js').AttenuationDefinition;
|
|
4
4
|
export function getAttenuatorFromDefinition(attenuationDefinition: import('./types.js').AttenuationDefinition): import('./types.js').UnifiedAttenuationDefinition;
|
|
5
|
-
export function assertPackagePolicy(allegedPackagePolicy: unknown, path: string, url?: string | undefined): asserts allegedPackagePolicy is import(
|
|
6
|
-
export function assertPolicy(allegedPolicy: unknown): asserts allegedPolicy is import(
|
|
5
|
+
export function assertPackagePolicy(allegedPackagePolicy: unknown, path: string, url?: string | undefined): asserts allegedPackagePolicy is import('./types.js').PackagePolicy | undefined;
|
|
6
|
+
export function assertPolicy(allegedPolicy: unknown): asserts allegedPolicy is import('./types.js').Policy | undefined;
|
|
7
7
|
//# sourceMappingURL=policy-format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy-format.d.ts","sourceRoot":"","sources":["policy-format.js"],"names":[],"mappings":"AAsBO,kDALI,OAAO,YAAY,EAAE,aAAa,SAClC,UAAU,GAAC,SAAS,GAAC,UAAU,YAC/B,MAAM,GACJ,OAAO,GAAG,OAAO,YAAY,EAAE,qBAAqB,CAyBhE;AAQM,kDAHI,OAAO,
|
|
1
|
+
{"version":3,"file":"policy-format.d.ts","sourceRoot":"","sources":["policy-format.js"],"names":[],"mappings":"AAsBO,kDALI,OAAO,YAAY,EAAE,aAAa,SAClC,UAAU,GAAC,SAAS,GAAC,UAAU,YAC/B,MAAM,GACJ,OAAO,GAAG,OAAO,YAAY,EAAE,qBAAqB,CAyBhE;AAQM,kDAHI,OAAO,GACL,WAAW,IAAI,OAAO,YAAY,EAAE,cAAc,CAGxB;AAOhC,2DAHI,OAAO,GACL,iBAAiB,IAAI,OAAO,YAAY,EAAE,qBAAqB,CAS3E;AAOM,mEAHI,OAAO,YAAY,EAAE,qBAAqB,GACxC,OAAO,YAAY,EAAE,4BAA4B,CAuB7D;AA0CM,0DALI,OAAO,QACP,MAAM,6BAEJ,OAAO,CAAC,oBAAoB,IAAI,OAAO,YAAY,EAAE,aAAa,GAAC,SAAS,CA0DxF;AAUM,4CAHI,OAAO,GACL,OAAO,CAAC,aAAa,IAAI,OAAO,YAAY,EAAE,MAAM,GAAC,SAAS,CAgC1E"}
|
package/src/policy.d.ts
CHANGED
|
@@ -4,7 +4,24 @@
|
|
|
4
4
|
export const ATTENUATORS_COMPARTMENT: "<ATTENUATORS>";
|
|
5
5
|
export function detectAttenuators(policy?: import("./types.js").Policy<void, void, void> | undefined): Array<string>;
|
|
6
6
|
export function dependencyAllowedByPolicy(namingKit: import('./types.js').PackageNamingKit, packagePolicy: import('./types.js').PackagePolicy): boolean;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Returns the policy applicable to the canonicalName of the package
|
|
9
|
+
*
|
|
10
|
+
* @overload
|
|
11
|
+
* @param {import('./types.js').PackageNamingKit} namingKit - a key in the policy resources spec is derived from these
|
|
12
|
+
* @param {import('./types.js').Policy} policy - user supplied policy
|
|
13
|
+
* @returns {import('./types.js').PackagePolicy} packagePolicy if policy was specified
|
|
14
|
+
*/
|
|
15
|
+
export function getPolicyForPackage(namingKit: import('./types.js').PackageNamingKit, policy: import('./types.js').Policy): import('./types.js').PackagePolicy;
|
|
16
|
+
/**
|
|
17
|
+
* Returns `undefined`
|
|
18
|
+
*
|
|
19
|
+
* @overload
|
|
20
|
+
* @param {import('./types.js').PackageNamingKit} namingKit - a key in the policy resources spec is derived from these
|
|
21
|
+
* @param {import('./types.js').Policy} [policy] - user supplied policy
|
|
22
|
+
* @returns {import('./types.js').PackagePolicy|undefined} packagePolicy if policy was specified
|
|
23
|
+
*/
|
|
24
|
+
export function getPolicyForPackage(namingKit: import('./types.js').PackageNamingKit, policy?: import("./types.js").Policy<void, void, void> | undefined): import('./types.js').PackagePolicy | undefined;
|
|
8
25
|
export function makeDeferredAttenuatorsProvider(compartments: Record<string, Compartment>, compartmentDescriptors: Record<string, import('./types.js').CompartmentDescriptor>): import('./types.js').DeferredAttenuatorsProvider;
|
|
9
26
|
export function attenuateGlobals(globalThis: object, globals: object, packagePolicy: import('./types.js').PackagePolicy, attenuators: import('./types.js').DeferredAttenuatorsProvider, pendingJobs: Array<Promise<any>>, name?: string): void;
|
|
10
27
|
export function enforceModulePolicy(specifier: string, compartmentDescriptor: import('./types.js').CompartmentDescriptor, { exit, errorHint }?: EnforceModulePolicyOptions | undefined): void;
|
package/src/policy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["policy.js"],"names":[],"mappings":"AAYA;;GAEG;AACH,sDAAuD;AAkDhD,uGAFM,
|
|
1
|
+
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["policy.js"],"names":[],"mappings":"AAYA;;GAEG;AACH,sDAAuD;AAkDhD,uGAFM,KAAK,CAAC,MAAM,CAAC,CAezB;AA0BM,qDAJI,OAAO,YAAY,EAAE,gBAAgB,iBACrC,OAAO,YAAY,EAAE,aAAa,GAChC,OAAO,CASnB;;;;;;;;;AAKE,+CACQ,OAAO,YAAY,EAAE,gBAAgB,UACrC,OAAO,YAAY,EAAE,MAAM,GACzB,OAAO,YAAY,EAAE,aAAa,CAC9C;;;;;;;;;AAKE,+CACQ,OAAO,YAAY,EAAE,gBAAgB,uEAEnC,OAAO,YAAY,EAAE,aAAa,GAAC,SAAS,CACxD;AAkFM,8DAJI,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,0BAC3B,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,qBAAqB,CAAC,GACxD,OAAO,YAAY,EAAE,2BAA2B,CA2C5D;AAoDM,6CARI,MAAM,WACN,MAAM,iBACN,OAAO,YAAY,EAAE,aAAa,eAClC,OAAO,YAAY,EAAE,2BAA2B,eAChD,KAAK,cAAS,SACd,MAAM,GACJ,IAAI,CAgDhB;AA2BM,+CAJI,MAAM,yBACN,OAAO,YAAY,EAAE,qBAAqB,sEAiCpD;AAgDM,+CANI,MAAM,wBACN,OAAO,KAAK,EAAE,+BAA+B,UAC7C,OAAO,YAAY,EAAE,aAAa,eAClC,OAAO,YAAY,EAAE,2BAA2B,GAC9C,OAAO,CAAC,OAAO,KAAK,EAAE,+BAA+B,CAAC,CAyBlE"}
|
package/src/search.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export function search(read: ReadFn, moduleLocation: string): Promise<{
|
|
|
10
10
|
packageDescriptorText: string;
|
|
11
11
|
moduleSpecifier: string;
|
|
12
12
|
}>;
|
|
13
|
-
|
|
13
|
+
import type { ReadFn } from './types.js';
|
|
14
14
|
//# sourceMappingURL=search.d.ts.map
|
package/src/search.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["search.js"],"names":[],"mappings":"AA8BO,
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["search.js"],"names":[],"mappings":"AA8BO,iCAFoB,CAAC,YAFjB,MAAM,6BACI,MAAM;;eACc,MAAM;cAAW,MAAM;+BAA6B,MAAM;GA2BlG;AAqCM,qDARI,MAAM,GACJ,OAAO,CAAC;IACpB,eAAmB,EAAE,MAAM,CAAC;IAC5B,yBAA6B,EAAE,MAAM,CAAC;IACtC,qBAAyB,EAAE,MAAM,CAAC;IAClC,eAAmB,EAAE,MAAM,CAAC;CACzB,CAAC,CAoBJ;4BA5GyB,YAAY"}
|
package/src/search.js
CHANGED
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["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