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
1845
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.1.1-dev-9ba7842.0 to 0.1.1-dev-a1dedea.0

src/config.js

12

package.json
{
"name": "@agoric/internal",
"version": "0.1.1-dev-9ba7842.0+9ba7842",
"version": "0.1.1-dev-a1dedea.0+a1dedea",
"description": "Externally unsupported utilities internal to agoric-sdk",

@@ -21,8 +21,8 @@ "type": "module",

"dependencies": {
"@endo/eventual-send": "^0.16.3",
"@endo/marshal": "^0.7.3",
"@endo/promise-kit": "^0.2.47"
"@endo/eventual-send": "^0.16.4",
"@endo/marshal": "^0.7.4",
"@endo/promise-kit": "^0.2.48"
},
"devDependencies": {
"@endo/init": "^0.5.47",
"@endo/init": "^0.5.48",
"ava": "^4.3.1"

@@ -38,3 +38,3 @@ },

},
"gitHead": "9ba78424a4bd587d0009a6816b7ffcedd5d7f972"
"gitHead": "a1dedeae72908fda45afcb6038d76f8359adc8de"
}
// @ts-check
export * from './utils.js';
export * from './config.js';

@@ -208,1 +208,19 @@ // @ts-check

};
/**
* Returns a function that uses a millisecond-based time-since-epoch capability
* (such as `performance.now`) to measure execution time of an async function
* and report the result in seconds to match our telemetry standard.
*
* @param {typeof import('perf_hooks').performance.now} currentTimeMillisec
* @returns {<T>(fn: () => Promise<T>) => Promise<{ result: T, duration: number }>}
*/
export const makeMeasureSeconds = currentTimeMillisec => {
const measureSeconds = async fn => {
const t0 = currentTimeMillisec();
const result = await fn();
const durationMillisec = currentTimeMillisec() - t0;
return { result, duration: durationMillisec / 1000 };
};
return measureSeconds;
};
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