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

idmp

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idmp - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1

2

dist/index.browser.esm.js

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

/*! idmp v1.11.0 | (c) github/haozi | MIT */
/*! idmp v1.11.1 | (c) github/haozi | MIT */
const l = () => {

@@ -3,0 +3,0 @@ };

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

/*! idmp v1.11.0 | (c) github/haozi | MIT */
/*! idmp v1.11.1 | (c) github/haozi | MIT */
(function(n,f){typeof exports=="object"&&typeof module!="undefined"?f(exports):typeof define=="function"&&define.amd?define(["exports"],f):(n=typeof globalThis!="undefined"?globalThis:n||self,f(n.idmp={}))})(this,function(n){"use strict";const A=()=>{},_=t=>t<0?0:t>6048e5?6048e5:t;n.g={};const a=t=>{const{maxRetry:u=30,maxAge:h=3e3,onBeforeRetry:i=A}=t||{},m=_(h);return{maxRetry:u,maxAge:m,onBeforeRetry:i}},d=t=>{t&&delete n.g[t]},g=()=>{n.g={}},r=(t,u,h)=>{if(!t)return u();const{maxRetry:i,maxAge:m,onBeforeRetry:p}=a(h);n.g[t]=n.g[t]||{0:0,1:0,4:[]};const e=n.g[t],R=()=>{e[1]=0,e[2]=void 0,e[3]=void 0},T=()=>{const o=e[4].length;for(let s=0;s<o;++s)e[4][s][0](e[2]);e[4]=[],setTimeout(()=>{d(t)},m)},M=()=>{const o=e[4].length-i;for(let s=0;s<o;++s)e[4][s][1](e[3]);d(t)},l=()=>new Promise((o,s)=>{if(!e[5]&&(e[5]=u),e[2]){o(e[2]);return}e[1]===0?(e[1]=1,e[4].push([o,s]),e[5]().then(c=>{e[2]=c,T(),e[1]=4}).catch(c=>{e[1]=3,e[3]=c,++e[0],e[0]>i?M():(p(c,{globalKey:t,retryCount:e[0]}),R(),setTimeout(l,(e[0]-1)*50))})):e[1]===1&&e[4].push([o,s])});return l()};r.flush=d,r.flushAll=g,n.default=r,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});

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

/*! idmp v1.11.0 | (c) github/haozi | MIT */
/*! idmp v1.11.1 | (c) github/haozi | MIT */
const DEFAULT_MAX_AGE = 3e3;

@@ -3,0 +3,0 @@ const _7days = 6048e5;

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

/*! idmp v1.11.0 | (c) github/haozi | MIT */
/*! idmp v1.11.1 | (c) github/haozi | MIT */
const DEFAULT_MAX_AGE = 3e3;

@@ -3,0 +3,0 @@ const _7days = 6048e5;

{
"name": "idmp",
"version": "1.11.0",
"version": "1.11.1",
"keywords": [

@@ -5,0 +5,0 @@ "cache response",

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