@teambit/cache 0.0.953 → 0.0.955
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/artifacts/__bit_junit.xml +3 -3
- package/artifacts/preview/teambit_harmony_cache-preview.js +1 -1
- package/artifacts/schema.json +29 -9
- package/dist/cache.aspect.d.ts +2 -0
- package/dist/cache.composition.d.ts +1 -0
- package/dist/cache.main.runtime.d.ts +32 -0
- package/dist/cache.spec.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/{preview-1712719054377.js → preview-1712822929999.js} +2 -2
- package/package.json +5 -5
- package/tsconfig.json +1 -10
@@ -1,7 +1,7 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="2" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.harmony/cache@0.0.
|
4
|
-
<testcase classname="dist/cache.spec.js" name="it should set cache with ttl" time="0.
|
5
|
-
<testcase classname="dist/cache.spec.js" name="it should set cache without expire ttl" time="0.
|
3
|
+
<testsuite name="teambit.harmony/cache@0.0.955" tests="2" failures="0" errors="0" skipped="0">
|
4
|
+
<testcase classname="dist/cache.spec.js" name="it should set cache with ttl" time="0.082"/>
|
5
|
+
<testcase classname="dist/cache.spec.js" name="it should set cache without expire ttl" time="0.003"/>
|
6
6
|
</testsuite>
|
7
7
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/cache-preview"]=t():e["teambit.harmony/cache-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/cache-preview"]=t():e["teambit.harmony/cache-preview"]=t()}(self,(()=>(()=>{"use strict";var e={62926:(e,t,o)=>{var r={id:"teambit.harmony/cache@0.0.955",homepage:"https://bit.cloud/teambit/harmony/cache",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const c=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/cache.svg"}));c.__bit_component=r,t.Logo=c},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>u,compositions_metadata:()=>l,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>d});var t=o(62926);o(41594);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var c=["components"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},a.apply(this,arguments)}var p={},s="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,c);return(0,n.mdx)(s,a({},p,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const u=[t],f=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
|
package/artifacts/schema.json
CHANGED
@@ -69,7 +69,8 @@
|
|
69
69
|
"line": 19,
|
70
70
|
"character": 22
|
71
71
|
},
|
72
|
-
"name": "CacheConfig"
|
72
|
+
"name": "CacheConfig",
|
73
|
+
"internalFilePath": "cache.main.runtime.ts"
|
73
74
|
},
|
74
75
|
"isOptional": false,
|
75
76
|
"isSpread": false
|
@@ -89,7 +90,11 @@
|
|
89
90
|
"line": 24,
|
90
91
|
"character": 30
|
91
92
|
},
|
92
|
-
"name": "Logger"
|
93
|
+
"name": "Logger",
|
94
|
+
"componentId": {
|
95
|
+
"scope": "teambit.harmony",
|
96
|
+
"name": "logger"
|
97
|
+
}
|
93
98
|
},
|
94
99
|
"isOptional": false,
|
95
100
|
"isSpread": false
|
@@ -353,7 +358,11 @@
|
|
353
358
|
"line": 60,
|
354
359
|
"character": 43
|
355
360
|
},
|
356
|
-
"name": "LoggerMain"
|
361
|
+
"name": "LoggerMain",
|
362
|
+
"componentId": {
|
363
|
+
"scope": "teambit.harmony",
|
364
|
+
"name": "logger"
|
365
|
+
}
|
357
366
|
}
|
358
367
|
]
|
359
368
|
},
|
@@ -375,7 +384,8 @@
|
|
375
384
|
"line": 60,
|
376
385
|
"character": 64
|
377
386
|
},
|
378
|
-
"name": "CacheConfig"
|
387
|
+
"name": "CacheConfig",
|
388
|
+
"internalFilePath": "cache.main.runtime.ts"
|
379
389
|
},
|
380
390
|
"isOptional": false,
|
381
391
|
"isSpread": false
|
@@ -533,7 +543,8 @@
|
|
533
543
|
"line": 19,
|
534
544
|
"character": 22
|
535
545
|
},
|
536
|
-
"name": "CacheConfig"
|
546
|
+
"name": "CacheConfig",
|
547
|
+
"internalFilePath": "cache.main.runtime.ts"
|
537
548
|
},
|
538
549
|
"isOptional": false,
|
539
550
|
"isSpread": false
|
@@ -553,7 +564,11 @@
|
|
553
564
|
"line": 24,
|
554
565
|
"character": 30
|
555
566
|
},
|
556
|
-
"name": "Logger"
|
567
|
+
"name": "Logger",
|
568
|
+
"componentId": {
|
569
|
+
"scope": "teambit.harmony",
|
570
|
+
"name": "logger"
|
571
|
+
}
|
557
572
|
},
|
558
573
|
"isOptional": false,
|
559
574
|
"isSpread": false
|
@@ -817,7 +832,11 @@
|
|
817
832
|
"line": 60,
|
818
833
|
"character": 43
|
819
834
|
},
|
820
|
-
"name": "LoggerMain"
|
835
|
+
"name": "LoggerMain",
|
836
|
+
"componentId": {
|
837
|
+
"scope": "teambit.harmony",
|
838
|
+
"name": "logger"
|
839
|
+
}
|
821
840
|
}
|
822
841
|
]
|
823
842
|
},
|
@@ -839,7 +858,8 @@
|
|
839
858
|
"line": 60,
|
840
859
|
"character": 64
|
841
860
|
},
|
842
|
-
"name": "CacheConfig"
|
861
|
+
"name": "CacheConfig",
|
862
|
+
"internalFilePath": "cache.main.runtime.ts"
|
843
863
|
},
|
844
864
|
"isOptional": false,
|
845
865
|
"isSpread": false
|
@@ -918,7 +938,7 @@
|
|
918
938
|
"componentId": {
|
919
939
|
"scope": "teambit.harmony",
|
920
940
|
"name": "cache",
|
921
|
-
"version": "0.0.
|
941
|
+
"version": "0.0.955"
|
922
942
|
},
|
923
943
|
"taggedModuleExports": []
|
924
944
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { Logger, LoggerMain } from '@teambit/logger';
|
2
|
+
export type CacheConfig = {
|
3
|
+
cacheDirectory: string;
|
4
|
+
};
|
5
|
+
export declare class CacheMain {
|
6
|
+
/**
|
7
|
+
* extension config
|
8
|
+
*/
|
9
|
+
readonly config: CacheConfig;
|
10
|
+
/**
|
11
|
+
* logger extension.
|
12
|
+
*/
|
13
|
+
private readonly logger;
|
14
|
+
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
15
|
+
constructor(
|
16
|
+
/**
|
17
|
+
* extension config
|
18
|
+
*/
|
19
|
+
config: CacheConfig,
|
20
|
+
/**
|
21
|
+
* logger extension.
|
22
|
+
*/
|
23
|
+
logger: Logger);
|
24
|
+
static dependencies: import("@teambit/harmony").Aspect[];
|
25
|
+
static defaultConfig: {
|
26
|
+
cacheDirectory: string;
|
27
|
+
};
|
28
|
+
set(key: string, data: any, ttl?: number): Promise<boolean>;
|
29
|
+
get<T>(key: string): Promise<T | undefined>;
|
30
|
+
private get globalCacheFolder();
|
31
|
+
static provider([loggerFactory]: [LoggerMain], config: CacheConfig): Promise<CacheMain>;
|
32
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/dist/index.d.ts
ADDED
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cache@0.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cache@0.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cache@0.0.955/dist/cache.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cache@0.0.955/dist/cache.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/cache",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.955",
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/cache",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.harmony",
|
8
8
|
"name": "cache",
|
9
|
-
"version": "0.0.
|
9
|
+
"version": "0.0.955"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"cacache": "15.0.5",
|
13
13
|
"@teambit/harmony": "0.4.6",
|
14
|
-
"@teambit/cli": "0.0.
|
15
|
-
"@teambit/logger": "0.0.
|
14
|
+
"@teambit/cli": "0.0.862",
|
15
|
+
"@teambit/logger": "0.0.955"
|
16
16
|
},
|
17
17
|
"devDependencies": {
|
18
18
|
"@types/cacache": "12.0.1",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"chai": "4.3.0",
|
22
22
|
"uuid": "8.3.2",
|
23
23
|
"@types/mocha": "9.1.0",
|
24
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
24
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.33"
|
25
25
|
},
|
26
26
|
"peerDependencies": {
|
27
27
|
"react": "^17.0.0 || ^18.0.0",
|
package/tsconfig.json
CHANGED
@@ -20,8 +20,7 @@
|
|
20
20
|
"emitDeclarationOnly": true,
|
21
21
|
"strict": true,
|
22
22
|
"strictPropertyInitialization": false,
|
23
|
-
"noImplicitAny": false
|
24
|
-
"composite": true
|
23
|
+
"noImplicitAny": false
|
25
24
|
},
|
26
25
|
"exclude": [
|
27
26
|
"artifacts",
|
@@ -36,13 +35,5 @@
|
|
36
35
|
"include": [
|
37
36
|
"**/*",
|
38
37
|
"**/*.json"
|
39
|
-
],
|
40
|
-
"references": [
|
41
|
-
{
|
42
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.860"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.953"
|
46
|
-
}
|
47
38
|
]
|
48
39
|
}
|