@thalorlabs/chucknorris 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { ChuckNorrisClient, ChuckNorrisClientConfig, } from './ChuckNorrisClient';
2
2
  export declare const CHUCK_NORRIS_CONFIG: {
3
- readonly cacheTtlMs: number;
3
+ readonly cacheTtlMs: 0;
4
4
  readonly isBillable: false;
5
5
  };
package/dist/index.js CHANGED
@@ -4,6 +4,6 @@ exports.CHUCK_NORRIS_CONFIG = exports.ChuckNorrisClient = void 0;
4
4
  var ChuckNorrisClient_1 = require("./ChuckNorrisClient");
5
5
  Object.defineProperty(exports, "ChuckNorrisClient", { enumerable: true, get: function () { return ChuckNorrisClient_1.ChuckNorrisClient; } });
6
6
  exports.CHUCK_NORRIS_CONFIG = {
7
- cacheTtlMs: 1000 * 60 * 60, // 1h
7
+ cacheTtlMs: 0, // random endpoint no caching
8
8
  isBillable: false, // api.chucknorris.io is free
9
9
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@thalorlabs/chucknorris",
3
3
  "author": "ThalorLabs",
4
4
  "private": false,
5
- "version": "1.0.0",
5
+ "version": "1.0.1",
6
6
  "description": "Provider adapter for api.chucknorris.io — returns TLJoke",
7
7
  "homepage": "https://github.com/ThalorLabs/chucknorris#readme",
8
8
  "bugs": {
package/src/index.ts CHANGED
@@ -4,6 +4,6 @@ export {
4
4
  } from './ChuckNorrisClient';
5
5
 
6
6
  export const CHUCK_NORRIS_CONFIG = {
7
- cacheTtlMs: 1000 * 60 * 60, // 1h
7
+ cacheTtlMs: 0, // random endpoint no caching
8
8
  isBillable: false, // api.chucknorris.io is free
9
9
  } as const;