New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@agoric/internal

Package Overview
Dependencies
Maintainers
5
Versions
1933
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agoric/internal - npm Package Compare versions

Comparing version 0.2.2-dev-c6810f0.0 to 0.2.2-dev-cc8c1c6.0

src/config.d.ts

16

package.json
{
"name": "@agoric/internal",
"version": "0.2.2-dev-c6810f0.0+c6810f0",
"version": "0.2.2-dev-cc8c1c6.0+cc8c1c6",
"description": "Externally unsupported utilities internal to agoric-sdk",

@@ -12,2 +12,4 @@ "type": "module",

"build": "exit 0",
"prepack": "tsc --build jsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",

@@ -22,9 +24,9 @@ "test:nyc": "exit 0",

"dependencies": {
"@endo/eventual-send": "^0.16.5",
"@endo/marshal": "^0.7.5",
"@endo/promise-kit": "^0.2.49"
"@endo/eventual-send": "^0.16.8",
"@endo/marshal": "^0.8.1",
"@endo/promise-kit": "^0.2.52"
},
"devDependencies": {
"@endo/init": "^0.5.49",
"ava": "^4.3.1"
"@endo/init": "^0.5.52",
"ava": "^5.0.1"
},

@@ -39,3 +41,3 @@ "author": "Agoric",

},
"gitHead": "c6810f0325df01cbaa1a21f8ff2801980e6fb382"
"gitHead": "cc8c1c60239166c24018340c48c7d05191f4cff1"
}

@@ -1,7 +0,6 @@

// @ts-check
/** @file
*
* Some of this config info may make more sense in a particular package. However
* due to the maxNodeModuleJsDepth hack and our general lax dependency graph,
* sometimes rational placements cause type resolution errors.
* due to https://github.com/Agoric/agoric-sdk/issues/4620 and our lax package
* dependency graph, sometimes rational placements cause type resolution errors.
*

@@ -8,0 +7,0 @@ * So as a work-around some constants that need access from more than one package are placed here.

@@ -1,4 +0,4 @@

// @ts-check
/// <reference types="ses"/>
export * from './utils.js';
export * from './config.js';

@@ -1,2 +0,1 @@

// @ts-check
import { E } from '@endo/eventual-send';

@@ -15,4 +14,4 @@ import { deeplyFulfilled, isObject } from '@endo/marshal';

* Throws if multiple entries use the same property name. Otherwise acts
* like `Object.fromEntries`. Use it to protect from property names
* computed from user-provided data.
* like `Object.fromEntries` but hardens the result.
* Use it to protect from property names computed from user-provided data.
*

@@ -25,3 +24,3 @@ * @template K,V

const entriesArray = [...allEntries];
const result = fromEntries(entriesArray);
const result = harden(fromEntries(entriesArray));
if (ownKeys(result).length === entriesArray.length) {

@@ -87,2 +86,7 @@ return result;

/**
*
* @param {Array<string | symbol>} leftNames
* @param {Array<string | symbol>} rightNames
*/
export const listDifference = (leftNames, rightNames) => {

@@ -145,5 +149,10 @@ const rightSet = new Set(rightNames);

const compareStringified = (left, right) => {
left = String(left);
right = String(right);
/**
* @param {unknown} a
* @param {unknown} b
* @returns {-1 | 0 | 1}
*/
const compareStringified = (a, b) => {
const left = String(a);
const right = String(b);
// eslint-disable-next-line no-nested-ternary

@@ -154,3 +163,3 @@ return left < right ? -1 : left > right ? 1 : 0;

/**
* @param {object} obj
* @param {Record<string | symbol, unknown>} obj
* @returns {(string|symbol)[]}

@@ -206,3 +215,4 @@ */

{
value: (...args) => apply(obj[name], obj, args),
value: (/** @type {unknown[]} */ ...args) =>
apply(obj[name], obj, args),
enumerable: true,

@@ -227,3 +237,3 @@ },

* @template T
* @typedef {T extends PromiseLike ? Awaited<T> : T extends {} ? DeeplyAwaitedObject<T> : Awaited<T>} DeeplyAwaited
* @typedef {T extends PromiseLike<any> ? Awaited<T> : T extends {} ? DeeplyAwaitedObject<T> : Awaited<T>} DeeplyAwaited
*/

@@ -251,2 +261,3 @@

export const makeMeasureSeconds = currentTimeMillisec => {
/** @param {() => any} fn */
const measureSeconds = async fn => {

@@ -253,0 +264,0 @@ const t0 = currentTimeMillisec();

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