Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@abtnode/util

Package Overview
Dependencies
Maintainers
3
Versions
773
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtnode/util - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

package.json

@@ -6,3 +6,3 @@ {

},
"version": "1.0.2",
"version": "1.0.3",
"description": "ArcBlock's JavaScript utility",

@@ -34,3 +34,3 @@ "main": "lib/index.js",

},
"gitHead": "4a66e35b4cdf5512276b50c28535f352508ae0ac"
"gitHead": "d9c5f53b8cf37a9b43da2952acaa544f6b7101eb"
}

@@ -18,3 +18,3 @@ # ArcBlock's JavaScript utility

```js
const getBlockletMeta = require('@abtnode/util/lib/read_blocklet_config')
const getBlockletMeta = require('@abtnode/util/lib/read_blocklet_config');
const meta = getBlockletMeta(blockletDir);

@@ -28,1 +28,11 @@ ```

### TryWithTimeout
```js
const { tryWithTimeout } = require('@abtnode/util');
try {
await tryWithTimeout(() => new Promise((resolve) => setTimeout(() => resolve(true), 60)), 50);
} catch (err) {
expect(err).toBeTruthy();
expect(err.message).toContain('Operation timed out after 50 ms');
}
```
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