@endo/compartment-mapper
Advanced tools
Comparing version 0.9.1 to 0.9.2
{ | ||
"name": "@endo/compartment-mapper", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "The compartment mapper assembles Node applications in a sandbox", | ||
@@ -46,6 +46,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@endo/cjs-module-analyzer": "^0.2.34", | ||
"@endo/static-module-record": "^0.8.1", | ||
"@endo/zip": "^0.2.34", | ||
"ses": "^0.18.7" | ||
"@endo/cjs-module-analyzer": "^0.2.35", | ||
"@endo/static-module-record": "^0.8.2", | ||
"@endo/zip": "^0.2.35", | ||
"ses": "^0.18.8" | ||
}, | ||
@@ -62,3 +62,3 @@ "devDependencies": { | ||
"prettier": "^3.0.0", | ||
"typescript": "~5.1.3" | ||
"typescript": "~5.2.2" | ||
}, | ||
@@ -98,3 +98,3 @@ "files": [ | ||
}, | ||
"gitHead": "b38361616f968415291b089dcca75cc4a2672a35" | ||
"gitHead": "9c779d317c4b02133172dbe142c5b2d1727efc49" | ||
} |
@@ -248,3 +248,8 @@ // @ts-check | ||
Object.entries(module.resolvedImports).map(([importSpecifier, key]) => { | ||
key = aliases.get(key) ?? key; | ||
// UNTIL https://github.com/endojs/endo/issues/1514 | ||
// Prefer: key = aliases.get(key) ?? key; | ||
const alias = aliases.get(key); | ||
if (alias != null) { | ||
key = alias; | ||
} | ||
const module = modulesByKey[key]; | ||
@@ -251,0 +256,0 @@ if (module === undefined) { |
@@ -10,3 +10,3 @@ export function getModulePaths(readPowers: ReadPowers | ReadFn | undefined, location: string): { | ||
location: string; | ||
readPowers: ReadFn | ReadPowers; | ||
readPowers: ReadFn | ReadPowers | undefined; | ||
}): { | ||
@@ -13,0 +13,0 @@ module: { |
@@ -72,3 +72,3 @@ // @ts-check | ||
* @param {string} in.location | ||
* @param {ReadFn|ReadPowers} in.readPowers | ||
* @param {ReadFn | ReadPowers | undefined} in.readPowers | ||
* @returns {{ | ||
@@ -75,0 +75,0 @@ * module: { exports: any }, |
@@ -13,3 +13,3 @@ // @ts-check | ||
_packageLocation, | ||
{ sourceMapUrl }, | ||
{ sourceMapUrl } = {}, | ||
) => { | ||
@@ -16,0 +16,0 @@ const text = textDecoder.decode(bytes); |
@@ -196,3 +196,3 @@ // @ts-check | ||
assert( | ||
typeof resources === 'object' && resources !== null, | ||
typeof resources === 'object' && resources !== null && !isArray(resources), | ||
`policy.resources must be an object, got ${q(resources)}`, | ||
@@ -202,3 +202,3 @@ ); | ||
!defaultAttenuator || typeof defaultAttenuator === 'string', | ||
`policy.defaultAttenuator must be a string, got ${q(resources)}`, | ||
`policy.defaultAttenuator must be a string, got ${q(defaultAttenuator)}`, | ||
); | ||
@@ -205,0 +205,0 @@ |
@@ -159,3 +159,8 @@ export type FinalStaticModuleType = import('ses').FinalStaticModuleType; | ||
export type ComputeSourceMapLocationHook = (details: ComputeSourceMapLocationDetails) => string; | ||
export type ParseFn = (bytes: Uint8Array, specifier: string, location: string, packageLocation: string, options?: object, sourceMap?: string | undefined, sourceMapUrl?: string | undefined, readPowers?: ReadFn | ReadPowers | undefined) => Promise<{ | ||
export type ParseFn = (bytes: Uint8Array, specifier: string, location: string, packageLocation: string, options?: { | ||
sourceMap?: string | undefined; | ||
sourceMapHook?: SourceMapHook | undefined; | ||
sourceMapUrl?: string | undefined; | ||
readPowers?: ReadFn | ReadPowers | undefined; | ||
} | undefined) => Promise<{ | ||
bytes: Uint8Array; | ||
@@ -202,3 +207,5 @@ parser: Language; | ||
export type ModuleTransforms = Record<string, ModuleTransform>; | ||
export type ModuleTransform = (bytes: Uint8Array, specifier: string, location: string, packageLocation: string, options?: object, sourceMap?: string | undefined) => Promise<{ | ||
export type ModuleTransform = (bytes: Uint8Array, specifier: string, location: string, packageLocation: string, options?: { | ||
sourceMap?: string | undefined; | ||
} | undefined) => Promise<{ | ||
bytes: Uint8Array; | ||
@@ -205,0 +212,0 @@ parser: Language; |
@@ -253,2 +253,3 @@ // @ts-check | ||
* @param {string} [options.sourceMap] | ||
* @param {SourceMapHook} [options.sourceMapHook] | ||
* @param {string} [options.sourceMapUrl] | ||
@@ -255,0 +256,0 @@ * @param {ReadFn | ReadPowers} [options.readPowers] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
275271
6457
Updated@endo/zip@^0.2.35
Updatedses@^0.18.8