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

on-error-resume-next

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

on-error-resume-next - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1-main.1621ef8

10

dist/on-error-resume-next.async.js

@@ -26,3 +26,9 @@ "use strict";

module.exports = __toCommonJS(index_async_exports);
var import_types = require("util/types");
// src/private/isPromise.ts
function isPromise(value) {
return !!((typeof value === "function" || typeof value === "object") && value && "then" in value && typeof value.then === "function");
}
// src/index.async.ts
function onErrorResumeNext(fn, context) {

@@ -32,3 +38,3 @@ return new Promise((resolve) => {

const result = fn.call(context);
if ((0, import_types.isPromise)(result)) {
if (isPromise(result)) {
result.then(resolve, () => resolve(void 0));

@@ -35,0 +41,0 @@ } else {

4

package.json
{
"name": "on-error-resume-next",
"version": "2.0.0",
"version": "2.0.1-main.1621ef8",
"description": "Run a function, synchronously or asynchronously, and ignore errors.",

@@ -89,4 +89,4 @@ "files": [

"dependencies": {
"on-error-resume-next": "^2.0.0"
"on-error-resume-next": "^2.0.1-main.1621ef8"
}
}

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

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