diff --git a/dist/caching.d.ts b/dist/caching.d.ts index d4b6183..4a5ab02 100644 --- a/dist/caching.d.ts +++ b/dist/caching.d.ts @@ -1,16 +1,16 @@ // Generated by dts-bundle v0.7.3 -declare module 'caching' { - export { Cache } from "caching/cache"; - export { cacheFor } from "caching/helpers"; - export { MemoryCache } from "caching/memory-cache"; - export { CookieCache } from "caching/cookie-cache"; - export { LocalStorageCache } from "caching/local-storage-cache"; - export { SessionStorageCache } from "caching/session-storage-cache"; - export { ScopedCache } from "caching/scoped-cache"; +declare module '@learningmachine/caching' { + export { Cache } from "@learningmachine/caching/cache"; + export { cacheFor } from "@learningmachine/caching/helpers"; + export { MemoryCache } from "@learningmachine/caching/memory-cache"; + export { CookieCache } from "@learningmachine/caching/cookie-cache"; + export { LocalStorageCache } from "@learningmachine/caching/local-storage-cache"; + export { SessionStorageCache } from "@learningmachine/caching/session-storage-cache"; + export { ScopedCache } from "@learningmachine/caching/scoped-cache"; } -declare module 'caching/cache' { +declare module '@learningmachine/caching/cache' { export interface cacheValue { value: any; expire: number; @@ -25,8 +25,8 @@ declare module 'caching/cache' { } } -declare module 'caching/helpers' { - import { cacheValue } from "caching/cache"; +declare module '@learningmachine/caching/helpers' { + import { cacheValue } from "@learningmachine/caching/cache"; export function isExpired(val: cacheValue): boolean; export function cacheFor(n: number): { minutes: number; @@ -35,8 +35,8 @@ declare module 'caching/helpers' { }; } -declare module 'caching/memory-cache' { - import { Cache } from "caching/cache"; +declare module '@learningmachine/caching/memory-cache' { + import { Cache } from "@learningmachine/caching/cache"; export class MemoryCache implements Cache { set(key: string, value: T, durationMS?: any): void; get(key: string): T; @@ -45,8 +45,8 @@ declare module 'caching/memory-cache' { } } -declare module 'caching/cookie-cache' { - import { Cache } from "caching/cache"; +declare module '@learningmachine/caching/cookie-cache' { + import { Cache } from "@learningmachine/caching/cache"; export class CookieCache implements Cache { constructor(CookieName?: string); set(key: string, value: T, durationMS?: any): void; @@ -55,8 +55,8 @@ declare module 'caching/cookie-cache' { } } -declare module 'caching/local-storage-cache' { - import { Cache } from "caching/cache"; +declare module '@learningmachine/caching/local-storage-cache' { + import { Cache } from "@learningmachine/caching/cache"; export class LocalStorageCache implements Cache { set(key: string, value: T, durationMS?: number): void; get(key: string): T; @@ -64,8 +64,8 @@ declare module 'caching/local-storage-cache' { } } -declare module 'caching/session-storage-cache' { - import { Cache } from "caching/cache"; +declare module '@learningmachine/caching/session-storage-cache' { + import { Cache } from "@learningmachine/caching/cache"; export class SessionStorageCache implements Cache { set(key: string, value: T, durationMS?: number): void; get(key: string): T; @@ -73,8 +73,8 @@ declare module 'caching/session-storage-cache' { } } -declare module 'caching/scoped-cache' { - import { Cache } from "caching/cache"; +declare module '@learningmachine/caching/scoped-cache' { + import { Cache } from "@learningmachine/caching/cache"; export class ScopedCache implements Cache { constructor(scope: string, cache: Cache); setScope(scope: string): void; diff --git a/package.json b/package.json index 7c7e7ee..6096dae 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "module": "dist/index.js", "typings": "./dist/caching.d.ts", "scripts": { - "build": "rm -Rf build-temp && ./node_modules/.bin/tsc --module commonjs --target es6 --outDir build-temp -d && ./node_modules/.bin/dts-bundle --name caching --main build-temp/index.d.ts && ./node_modules/.bin/rollup -c && ./node_modules/.bin/rollup -c --format cjs -o dist/index-cjs.js && cp build-temp/caching.d.ts dist/" + "build": "rm -Rf build-temp && ./node_modules/.bin/tsc --module commonjs --target es6 --outDir build-temp -d && ./node_modules/.bin/dts-bundle --name @learningmachine/caching --out caching.d.ts --main build-temp/index.d.ts && ./node_modules/.bin/rollup -c && ./node_modules/.bin/rollup -c --format cjs -o dist/index-cjs.js && cp build-temp/caching.d.ts dist/" }, "author": "", "license": "ISC",