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

cachely

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cachely - npm Package Compare versions

Comparing version 6.5.0 to 6.6.0-next.1701812603.2c30548c4c79605998b40ad252dc78c65a06a65d

4

edition-deno/index.ts

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

import oneday from 'https://unpkg.com/oneday@^5.2.0/edition-deno/index.ts'
import oneday from 'https://unpkg.com/oneday@^5.4.0/edition-deno/index.ts'

@@ -30,3 +30,3 @@ type Log = (logLevel: string, ...args: any[]) => any

throw new Error(
'Cachely requires a retrieve method to be specified that returns a promise'
'Cachely requires a retrieve method to be specified that returns a promise',
)

@@ -33,0 +33,0 @@ }

{
"name": "cachely",
"version": "6.5.0",
"version": "6.6.0-next.1701812603.2c30548c4c79605998b40ad252dc78c65a06a65d",
"description": "A tiny wrapper that sits around your request function that caches its data for a specified duration, provides updates as requested rather than polling each interval",

@@ -16,3 +16,2 @@ "homepage": "https://github.com/bevry/cachely",

"es2016",
"es2021",
"es2022",

@@ -111,3 +110,3 @@ "export-default",

{
"description": "TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
"description": "TypeScript compiled against ES2022 for Node.js 21 with Require for modules",
"directory": "edition-es2022",

@@ -127,18 +126,3 @@ "entry": "index.js",

{
"description": "TypeScript compiled against ES2021 for Node.js 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
"directory": "edition-es2021",
"entry": "index.js",
"tags": [
"compiled",
"javascript",
"es2021",
"require"
],
"engines": {
"node": "8 || 10 || 12 || 14 || 16 || 18 || 20 || 21",
"browsers": false
}
},
{
"description": "TypeScript compiled against ES2016 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
"description": "TypeScript compiled against ES2016 for Node.js 8 with Require for modules",
"directory": "edition-es2016",

@@ -158,3 +142,3 @@ "entry": "index.js",

{
"description": "TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules",
"description": "TypeScript compiled against ES2022 for Node.js 21 with Import for modules",
"directory": "edition-es2022-esm",

@@ -218,33 +202,31 @@ "entry": "index.js",

"dependencies": {
"editions": "^6.15.0",
"oneday": "^5.2.0"
"editions": "^6.19.0",
"oneday": "^5.4.0"
},
"devDependencies": {
"@bevry/update-contributors": "^1.23.0",
"@types/node": "^20.10.0",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"assert-helpers": "^11.6.0",
"eslint": "^8.54.0",
"eslint-config-bevry": "^5.1.0",
"eslint-config-prettier": "^9.0.0",
"@types/node": "^20.10.3",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"assert-helpers": "^11.9.0",
"eslint": "^8.55.0",
"eslint-config-bevry": "^5.2.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.0.1",
"kava": "^7.3.0",
"make-deno-edition": "^2.0.0",
"kava": "^7.5.0",
"make-deno-edition": "^2.0.1",
"prettier": "^3.1.0",
"projectz": "^3.3.0",
"surge": "^0.23.1",
"typechecker": "^8.5.0",
"typedoc": "^0.25.3",
"typescript": "5.2.2",
"valid-directory": "^4.5.0",
"valid-module": "^2.5.0"
"projectz": "^3.4.0",
"typechecker": "^9.2.0",
"typedoc": "^0.25.4",
"typescript": "5.3.2",
"valid-directory": "^4.6.0",
"valid-module": "^2.6.0"
},
"scripts": {
"our:clean": "rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2016 && npm run our:compile:edition-es2021 && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-types",
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2016 && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:edition-types",
"our:compile:deno": "make-deno-edition --attempt",
"our:compile:edition-browsers": "tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )",
"our:compile:edition-es2016": "tsc --module commonjs --target ES2016 --outDir ./edition-es2016 --project tsconfig.json && ( test ! -d edition-es2016/source || ( mv edition-es2016/source edition-temp && rm -rf edition-es2016 && mv edition-temp edition-es2016 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2016/package.json",
"our:compile:edition-es2021": "tsc --module commonjs --target ES2021 --outDir ./edition-es2021 --project tsconfig.json && ( test ! -d edition-es2021/source || ( mv edition-es2021/source edition-temp && rm -rf edition-es2021 && mv edition-temp edition-es2021 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2021/package.json",
"our:compile:edition-es2022": "tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json",

@@ -283,4 +265,5 @@ "our:compile:edition-es2022-esm": "tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json",

"singleQuote": true,
"trailingComma": "es5"
"trailingComma": "all",
"endOfLine": "lf"
}
}
}

@@ -74,4 +74,4 @@ <!-- TITLE/ -->

console,
'after one second as specified in our method, the result data should still be 1:'
)
'after one second as specified in our method, the result data should still be 1:',
),
)

@@ -86,4 +86,4 @@

console,
'after a tiny delay this will be from cache, the result data should still be 1:'
)
'after a tiny delay this will be from cache, the result data should still be 1:',
),
)

@@ -100,4 +100,4 @@

console,
'after one second as specified in our method, the result data should be 2, as it was our second fetch:'
)
'after one second as specified in our method, the result data should be 2, as it was our second fetch:',
),
)

@@ -112,4 +112,4 @@

console,
'after a tiny delay this will be from cache, the result data should still be 2:'
)
'after a tiny delay this will be from cache, the result data should still be 2:',
),
)

@@ -127,4 +127,4 @@

console,
'after one second as specified in our method, the result data should be 3, as it was our third fetch:'
)
'after one second as specified in our method, the result data should be 3, as it was our third fetch:',
),
)

@@ -139,4 +139,4 @@

console,
'after a tiny delay this will be from cache, the result data should still be 3:'
)
'after a tiny delay this will be from cache, the result data should still be 3:',
),
)

@@ -160,3 +160,3 @@ }, 3000)

``` typescript
import pkg from 'https://unpkg.com/cachely@^6.5.0/edition-deno/index.ts'
import pkg from 'https://unpkg.com/cachely@^6.6.0/edition-deno/index.ts'
```

@@ -168,3 +168,3 @@

<script type="module">
import pkg from '//cdn.skypack.dev/cachely@^6.5.0'
import pkg from '//cdn.skypack.dev/cachely@^6.6.0'
</script>

@@ -177,3 +177,3 @@ ```

<script type="module">
import pkg from '//unpkg.com/cachely@^6.5.0'
import pkg from '//unpkg.com/cachely@^6.6.0'
</script>

@@ -186,3 +186,3 @@ ```

<script type="module">
import pkg from '//dev.jspm.io/cachely@6.5.0'
import pkg from '//dev.jspm.io/cachely@6.6.0'
</script>

@@ -198,6 +198,5 @@ ```

<li><code>cachely/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2022 for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>cachely/edition-es2022/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2022 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 12 || 14 || 16 || 18 || 20 || 21 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>cachely/edition-es2021/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2021 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>cachely/edition-es2016/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#7th_Edition_-_ECMAScript_2016" title="ECMAScript 2016">ES2016</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>cachely/edition-es2022-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2022 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 12 || 14 || 16 || 18 || 20 || 21 with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>cachely/edition-es2022/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2022 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 21 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>cachely/edition-es2016/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#7th_Edition_-_ECMAScript_2016" title="ECMAScript 2016">ES2016</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 8 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>cachely/edition-es2022-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2022 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 21 with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>cachely/edition-types/index.d.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled Types with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>

@@ -204,0 +203,0 @@ <li><code>cachely/edition-deno/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code made to be compatible with <a href="https://deno.land" title="Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js">Deno</a></li></ul>

@@ -30,3 +30,3 @@ import oneday from 'oneday'

throw new Error(
'Cachely requires a retrieve method to be specified that returns a promise'
'Cachely requires a retrieve method to be specified that returns a promise',
)

@@ -33,0 +33,0 @@ }

@@ -7,9 +7,8 @@ {

"maxNodeModuleJsDepth": 5,
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
"target": "ES2022",
"module": "ESNext",
"downlevelIteration": true
"target": "ES2022"
},
"include": ["source"]
}
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