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

@furystack/utils

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@furystack/utils - npm Package Compare versions

Comparing version 1.2.7 to 1.2.8

4

dist/disposable.d.ts

@@ -42,3 +42,3 @@ /**

*/
export declare const using: <T extends Disposable, TReturns>(resource: T, callback: (resource: T) => TReturns) => TReturns;
export declare const using: <T extends Disposable, TReturns>(resource: T, callback: (r: T) => TReturns) => TReturns;
/**

@@ -52,3 +52,3 @@ * Method that accepts an IDisposable resource that will be disposed after the callback

*/
export declare const usingAsync: <T extends Disposable, TReturns>(resource: T, callback: (resource: T) => Promise<TReturns>) => Promise<TReturns>;
export declare const usingAsync: <T extends Disposable, TReturns>(resource: T, callback: (r: T) => Promise<TReturns>) => Promise<TReturns>;
//# sourceMappingURL=disposable.d.ts.map
{
"name": "@furystack/utils",
"version": "1.2.7",
"version": "1.2.8",
"description": "General utilities",

@@ -37,5 +37,5 @@ "main": "dist/index.js",

"devDependencies": {
"@types/jest": "^26.0.10"
"@types/jest": "^26.0.12"
},
"gitHead": "9614fceb36efa35712aa8d965c470045039342c8"
"gitHead": "92618e51d263f9994328a437a3f41cfa2e804689"
}

@@ -44,3 +44,3 @@ /**

*/
export const using = <T extends Disposable, TReturns>(resource: T, callback: (resource: T) => TReturns) => {
export const using = <T extends Disposable, TReturns>(resource: T, callback: (r: T) => TReturns) => {
try {

@@ -63,3 +63,3 @@ return callback(resource)

resource: T,
callback: (resource: T) => Promise<TReturns>,
callback: (r: T) => Promise<TReturns>,
) => {

@@ -66,0 +66,0 @@ try {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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