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

thenify-ex

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thenify-ex - npm Package Compare versions

Comparing version 4.3.0 to 4.4.0

2

dist/index.js

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

"use strict";var F=Object.create;var l=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var d=(n,t)=>{for(var e in t)l(n,e,{get:t[e],enumerable:!0})},f=(n,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of h(t))!w.call(n,a)&&a!==e&&l(n,a,{get:()=>t[a],enumerable:!(i=b(t,a))||i.enumerable});return n};var p=(n,t,e)=>(e=n!=null?F(C(n)):{},f(t||!n||!n.__esModule?l(e,"default",{value:n,enumerable:!0}):e,n)),k=n=>f(l({},"__esModule",{value:!0}),n);var T={};d(T,{thenify:()=>x,withCallback:()=>I});module.exports=k(T);var y=p(require("any-promise")),s=p(require("assert"));function x(n,t){return(0,s.default)(typeof n=="function"),g(n,t)}function I(n,t){return(0,s.default)(typeof n=="function"),t=t||{},t.withCallback=!0,g(n,t)}function O(n,t,e){return e===void 0&&(e=!0),function(i,a){if(i)return t(i);let u=arguments.length;if(u<=2||!e)return n(a);if(Array.isArray(e)){let c={};for(let r=1;r<u;r++)c[e[r-1]]=arguments[r];return n(c)}let o=new Array(u-1);for(let c=1;c<u;++c)o[c-1]=arguments[c];n(o)}}function g(n,t){t=t||{};let e=n.name;e=(e||"").replace(/\s|bound(?!$)/g,"");let i=function(){let a=this,u=arguments.length;if(t.withCallback&&typeof arguments[u-1]==="function")return n.apply(a,arguments);let o=new Array(u+1);for(let r=0;r<u;++r)o[r]=arguments[r];let c=u;return new y.default(function(r,m){o[c]=O(r,m,t==null?void 0:t.multiArgs),n.apply(a,o)})};return Object.defineProperty(i,"name",{value:e}),i}0&&(module.exports={thenify,withCallback});
"use strict";var f=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var b=(t,n)=>{for(var e in n)f(t,e,{get:n[e],enumerable:!0})},h=(t,n,e,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of y(n))!g.call(t,a)&&a!==e&&f(t,a,{get:()=>n[a],enumerable:!(i=p(n,a))||i.enumerable});return t};var w=t=>h(f({},"__esModule",{value:!0}),t);var d={};b(d,{thenify:()=>F,withCallback:()=>m});module.exports=w(d);function F(t,n){if(typeof t!="function")throw new Error("expect `fn` to be a function");return l(t,n)}function m(t,n){if(typeof t!="function")throw new Error("expect `fn` to be a function");return n=n||{},n.withCallback=!0,l(t,n)}function C(t,n,e){return e===void 0&&(e=!0),function(i,a){if(i)return n(i);let c=arguments.length;if(c<=2||!e)return t(a);if(Array.isArray(e)){let u={};for(let r=1;r<c;r++)u[e[r-1]]=arguments[r];return t(u)}let o=new Array(c-1);for(let u=1;u<c;++u)o[u-1]=arguments[u];t(o)}}function l(t,n){n=n||{};let e=t.name;e=(e||"").replace(/\s|bound(?!$)/g,"");let i=function(){let a=this,c=arguments.length;if(n.withCallback&&typeof arguments[c-1]==="function")return t.apply(a,arguments);let o=new Array(c+1);for(let r=0;r<c;++r)o[r]=arguments[r];let u=c;return new Promise(function(r,s){o[u]=C(r,s,n==null?void 0:n.multiArgs),t.apply(a,o)})};return Object.defineProperty(i,"name",{value:e}),i}0&&(module.exports={thenify,withCallback});
//# sourceMappingURL=index.js.map
{
"name": "thenify-ex",
"description": "Promisify a callback-based function",
"version": "4.3.0",
"version": "4.4.0",
"authors": [

@@ -38,3 +38,3 @@ "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",

"ncu": "npx npm-check-updates -u",
"release": "npx release-it"
"release-it": "npm run build && npx release-it"
},

@@ -41,0 +41,0 @@ "keywords": [

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