@endo/compartment-mapper
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "@endo/compartment-mapper", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "The compartment mapper assembles Node applications in a sandbox", | ||
@@ -58,6 +58,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@endo/cjs-module-analyzer": "^1.0.6", | ||
"@endo/module-source": "^1.0.1", | ||
"@endo/zip": "^1.0.6", | ||
"ses": "^1.7.0" | ||
"@endo/cjs-module-analyzer": "^1.0.7", | ||
"@endo/module-source": "^1.0.2", | ||
"@endo/zip": "^1.0.7", | ||
"ses": "^1.8.0" | ||
}, | ||
@@ -74,3 +74,3 @@ "devDependencies": { | ||
"prettier": "^3.2.5", | ||
"typescript": "5.5.2" | ||
"typescript": "~5.6.1-rc" | ||
}, | ||
@@ -114,3 +114,3 @@ "files": [ | ||
}, | ||
"gitHead": "444c81ad3ecc1b0a449023a9c65e9be2fa17db21" | ||
"gitHead": "cb060b7e22c92cc951fb03d86cdbceeae82fec34" | ||
} |
@@ -18,3 +18,3 @@ /** | ||
maybeRead: (location: string) => Promise<Buffer | undefined>; | ||
fileURLToPath: (location: string) => string; | ||
fileURLToPath: typeof import("url").fileURLToPath; | ||
pathToFileURL: ((path: string) => string) | typeof import("url").pathToFileURL; | ||
@@ -21,0 +21,0 @@ canonical: (location: string) => Promise<string>; |
@@ -13,3 +13,5 @@ /* Provides mechanisms for interacting with Compartment Map runtime policies. | ||
const { create, entries, values, assign, keys, freeze } = Object; | ||
const { create, entries, values, assign, freeze, getOwnPropertyDescriptors } = | ||
Object; | ||
const { ownKeys } = Reflect; | ||
const q = JSON.stringify; | ||
@@ -23,3 +25,5 @@ | ||
/** | ||
* Copies properties (optionally limited to a specific list) from one object to another. | ||
* Copies properties (optionally limited to a specific list) from one object | ||
* to another. By default, copies all enumerable, own, string- and | ||
* symbol-named properties. | ||
* | ||
@@ -33,3 +37,8 @@ * @param {object} from | ||
if (!list) { | ||
list = keys(from); | ||
const descs = getOwnPropertyDescriptors(from); | ||
list = ownKeys(from).filter( | ||
key => | ||
// @ts-expect-error TypeScript still confused about a symbol as index | ||
descs[key].enumerable, | ||
); | ||
} | ||
@@ -36,0 +45,0 @@ for (let index = 0; index < list.length; index += 1) { |
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
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
338363
7989
Updated@endo/module-source@^1.0.2
Updated@endo/zip@^1.0.7
Updatedses@^1.8.0