@teambit/cache 0.0.955 → 0.0.957

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.
@@ -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.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"/>
3
+ <testsuite name="teambit.harmony/cache@0.0.957" tests="2" failures="0" errors="0" skipped="0">
4
+ <testcase classname="dist/cache.spec.js" name="it should set cache with ttl" time="0.055"/>
5
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={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})()));
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={23484:(e,t,o)=>{var r={id:"teambit.harmony/cache@0.0.957",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 a=()=>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"}));a.__bit_component=r,t.Logo=a},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(23484);o(41594);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function c(){return c=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},c.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={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(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,a);return(0,n.mdx)(s,c({},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})()));
@@ -14,426 +14,444 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "ClassSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "cache.main.runtime.ts",
20
- "line": 12,
21
- "character": 1
19
+ "filePath": "index.ts",
20
+ "line": 1,
21
+ "character": 15
22
22
  },
23
- "signature": "class CacheMain",
24
23
  "name": "CacheMain",
25
- "members": [
26
- {
27
- "__schema": "VariableLikeSchema",
28
- "location": {
29
- "filePath": "cache.main.runtime.ts",
30
- "line": 13,
31
- "character": 3
32
- },
33
- "signature": "(property) CacheMain.runtime: RuntimeDefinition",
34
- "name": "runtime",
35
- "type": {
36
- "__schema": "InferenceTypeSchema",
24
+ "exportNode": {
25
+ "__schema": "ClassSchema",
26
+ "location": {
27
+ "filePath": "cache.main.runtime.ts",
28
+ "line": 12,
29
+ "character": 1
30
+ },
31
+ "signature": "class CacheMain",
32
+ "name": "CacheMain",
33
+ "members": [
34
+ {
35
+ "__schema": "VariableLikeSchema",
37
36
  "location": {
38
37
  "filePath": "cache.main.runtime.ts",
39
38
  "line": 13,
40
39
  "character": 3
41
40
  },
42
- "type": "RuntimeDefinition"
43
- },
44
- "isOptional": true,
45
- "defaultValue": "MainRuntime"
46
- },
47
- {
48
- "__schema": "ConstructorSchema",
49
- "location": {
50
- "filePath": "cache.main.runtime.ts",
51
- "line": 15,
52
- "character": 3
53
- },
54
- "signature": "constructor CacheMain(config: CacheConfig, logger: Logger): CacheMain",
55
- "name": "constructor",
56
- "params": [
57
- {
58
- "__schema": "ParameterSchema",
41
+ "signature": "(property) CacheMain.runtime: RuntimeDefinition",
42
+ "name": "runtime",
43
+ "type": {
44
+ "__schema": "InferenceTypeSchema",
59
45
  "location": {
60
46
  "filePath": "cache.main.runtime.ts",
61
- "line": 19,
62
- "character": 5
47
+ "line": 13,
48
+ "character": 3
63
49
  },
64
- "name": "config",
65
- "type": {
66
- "__schema": "TypeRefSchema",
50
+ "type": "RuntimeDefinition"
51
+ },
52
+ "isOptional": true,
53
+ "defaultValue": "MainRuntime"
54
+ },
55
+ {
56
+ "__schema": "ConstructorSchema",
57
+ "location": {
58
+ "filePath": "cache.main.runtime.ts",
59
+ "line": 15,
60
+ "character": 3
61
+ },
62
+ "signature": "constructor CacheMain(config: CacheConfig, logger: Logger): CacheMain",
63
+ "name": "constructor",
64
+ "params": [
65
+ {
66
+ "__schema": "ParameterSchema",
67
67
  "location": {
68
68
  "filePath": "cache.main.runtime.ts",
69
69
  "line": 19,
70
- "character": 22
70
+ "character": 5
71
71
  },
72
- "name": "CacheConfig",
73
- "internalFilePath": "cache.main.runtime.ts"
74
- },
75
- "isOptional": false,
76
- "isSpread": false
77
- },
78
- {
79
- "__schema": "ParameterSchema",
80
- "location": {
81
- "filePath": "cache.main.runtime.ts",
82
- "line": 24,
83
- "character": 5
72
+ "name": "config",
73
+ "type": {
74
+ "__schema": "TypeRefSchema",
75
+ "location": {
76
+ "filePath": "cache.main.runtime.ts",
77
+ "line": 19,
78
+ "character": 22
79
+ },
80
+ "name": "CacheConfig",
81
+ "internalFilePath": "cache.main.runtime.ts"
82
+ },
83
+ "isOptional": false,
84
+ "isSpread": false
84
85
  },
85
- "name": "logger",
86
- "type": {
87
- "__schema": "TypeRefSchema",
86
+ {
87
+ "__schema": "ParameterSchema",
88
88
  "location": {
89
89
  "filePath": "cache.main.runtime.ts",
90
90
  "line": 24,
91
- "character": 30
91
+ "character": 5
92
92
  },
93
- "name": "Logger",
94
- "componentId": {
95
- "scope": "teambit.harmony",
96
- "name": "logger"
97
- }
93
+ "name": "logger",
94
+ "type": {
95
+ "__schema": "TypeRefSchema",
96
+ "location": {
97
+ "filePath": "cache.main.runtime.ts",
98
+ "line": 24,
99
+ "character": 30
100
+ },
101
+ "name": "Logger",
102
+ "componentId": {
103
+ "scope": "teambit.harmony",
104
+ "name": "logger"
105
+ }
106
+ },
107
+ "isOptional": false,
108
+ "isSpread": false
109
+ }
110
+ ],
111
+ "returnType": {
112
+ "__schema": "ThisTypeSchema",
113
+ "location": {
114
+ "filePath": "cache.main.runtime.ts",
115
+ "line": 12,
116
+ "character": 1
98
117
  },
99
- "isOptional": false,
100
- "isSpread": false
101
- }
102
- ],
103
- "returnType": {
104
- "__schema": "ThisTypeSchema",
105
- "location": {
106
- "filePath": "cache.main.runtime.ts",
107
- "line": 12,
108
- "character": 1
118
+ "name": "CacheMain"
109
119
  },
110
- "name": "CacheMain"
111
- },
112
- "modifiers": []
113
- },
114
- {
115
- "__schema": "VariableLikeSchema",
116
- "location": {
117
- "filePath": "cache.main.runtime.ts",
118
- "line": 27,
119
- "character": 3
120
+ "modifiers": []
120
121
  },
121
- "signature": "(property) CacheMain.dependencies: Aspect[]",
122
- "name": "dependencies",
123
- "type": {
124
- "__schema": "InferenceTypeSchema",
122
+ {
123
+ "__schema": "VariableLikeSchema",
125
124
  "location": {
126
125
  "filePath": "cache.main.runtime.ts",
127
126
  "line": 27,
128
127
  "character": 3
129
128
  },
130
- "type": "Aspect[]"
131
- },
132
- "isOptional": true,
133
- "defaultValue": "[LoggerAspect]"
134
- },
135
- {
136
- "__schema": "VariableLikeSchema",
137
- "location": {
138
- "filePath": "cache.main.runtime.ts",
139
- "line": 29,
140
- "character": 3
129
+ "signature": "(property) CacheMain.dependencies: Aspect[]",
130
+ "name": "dependencies",
131
+ "type": {
132
+ "__schema": "InferenceTypeSchema",
133
+ "location": {
134
+ "filePath": "cache.main.runtime.ts",
135
+ "line": 27,
136
+ "character": 3
137
+ },
138
+ "type": "Aspect[]"
139
+ },
140
+ "isOptional": true,
141
+ "defaultValue": "[LoggerAspect]"
141
142
  },
142
- "signature": "(property) CacheMain.defaultConfig: {\n cacheDirectory: string;\n}",
143
- "name": "defaultConfig",
144
- "type": {
145
- "__schema": "InferenceTypeSchema",
143
+ {
144
+ "__schema": "VariableLikeSchema",
146
145
  "location": {
147
146
  "filePath": "cache.main.runtime.ts",
148
147
  "line": 29,
149
148
  "character": 3
150
149
  },
151
- "type": "{\n cacheDirectory: string;\n}"
152
- },
153
- "isOptional": true,
154
- "defaultValue": "{\n cacheDirectory: CACHE_ROOT,\n }"
155
- },
156
- {
157
- "__schema": "FunctionLikeSchema",
158
- "location": {
159
- "filePath": "cache.main.runtime.ts",
160
- "line": 33,
161
- "character": 3
162
- },
163
- "signature": "(method) CacheMain.set(key: string, data: any, ttl?: number): Promise<boolean>",
164
- "name": "set",
165
- "params": [
166
- {
167
- "__schema": "ParameterSchema",
150
+ "signature": "(property) CacheMain.defaultConfig: {\n cacheDirectory: string;\n}",
151
+ "name": "defaultConfig",
152
+ "type": {
153
+ "__schema": "InferenceTypeSchema",
168
154
  "location": {
169
155
  "filePath": "cache.main.runtime.ts",
170
- "line": 33,
171
- "character": 13
172
- },
173
- "name": "key",
174
- "type": {
175
- "__schema": "KeywordTypeSchema",
176
- "location": {
177
- "filePath": "cache.main.runtime.ts",
178
- "line": 33,
179
- "character": 18
180
- },
181
- "name": "string"
156
+ "line": 29,
157
+ "character": 3
182
158
  },
183
- "isOptional": false,
184
- "isSpread": false
159
+ "type": "{\n cacheDirectory: string;\n}"
185
160
  },
186
- {
187
- "__schema": "ParameterSchema",
188
- "location": {
189
- "filePath": "cache.main.runtime.ts",
190
- "line": 33,
191
- "character": 26
192
- },
193
- "name": "data",
194
- "type": {
195
- "__schema": "KeywordTypeSchema",
161
+ "isOptional": true,
162
+ "defaultValue": "{\n cacheDirectory: CACHE_ROOT,\n }"
163
+ },
164
+ {
165
+ "__schema": "FunctionLikeSchema",
166
+ "location": {
167
+ "filePath": "cache.main.runtime.ts",
168
+ "line": 33,
169
+ "character": 3
170
+ },
171
+ "signature": "(method) CacheMain.set(key: string, data: any, ttl?: number): Promise<boolean>",
172
+ "name": "set",
173
+ "params": [
174
+ {
175
+ "__schema": "ParameterSchema",
196
176
  "location": {
197
177
  "filePath": "cache.main.runtime.ts",
198
178
  "line": 33,
199
- "character": 32
179
+ "character": 13
200
180
  },
201
- "name": "any"
202
- },
203
- "isOptional": false,
204
- "isSpread": false
205
- },
206
- {
207
- "__schema": "ParameterSchema",
208
- "location": {
209
- "filePath": "cache.main.runtime.ts",
210
- "line": 33,
211
- "character": 37
181
+ "name": "key",
182
+ "type": {
183
+ "__schema": "KeywordTypeSchema",
184
+ "location": {
185
+ "filePath": "cache.main.runtime.ts",
186
+ "line": 33,
187
+ "character": 18
188
+ },
189
+ "name": "string"
190
+ },
191
+ "isOptional": false,
192
+ "isSpread": false
212
193
  },
213
- "name": "ttl",
214
- "type": {
215
- "__schema": "KeywordTypeSchema",
194
+ {
195
+ "__schema": "ParameterSchema",
216
196
  "location": {
217
197
  "filePath": "cache.main.runtime.ts",
218
198
  "line": 33,
219
- "character": 43
199
+ "character": 26
200
+ },
201
+ "name": "data",
202
+ "type": {
203
+ "__schema": "KeywordTypeSchema",
204
+ "location": {
205
+ "filePath": "cache.main.runtime.ts",
206
+ "line": 33,
207
+ "character": 32
208
+ },
209
+ "name": "any"
220
210
  },
221
- "name": "number"
211
+ "isOptional": false,
212
+ "isSpread": false
222
213
  },
223
- "isOptional": true,
224
- "isSpread": false
225
- }
226
- ],
227
- "returnType": {
228
- "__schema": "TypeRefSchema",
229
- "location": {
230
- "filePath": "cache.main.runtime.ts",
231
- "line": 33,
232
- "character": 52
233
- },
234
- "name": "Promise",
235
- "typeArgs": [
236
214
  {
237
- "__schema": "KeywordTypeSchema",
215
+ "__schema": "ParameterSchema",
238
216
  "location": {
239
217
  "filePath": "cache.main.runtime.ts",
240
218
  "line": 33,
241
- "character": 60
219
+ "character": 37
220
+ },
221
+ "name": "ttl",
222
+ "type": {
223
+ "__schema": "KeywordTypeSchema",
224
+ "location": {
225
+ "filePath": "cache.main.runtime.ts",
226
+ "line": 33,
227
+ "character": 43
228
+ },
229
+ "name": "number"
242
230
  },
243
- "name": "boolean"
231
+ "isOptional": true,
232
+ "isSpread": false
244
233
  }
245
- ]
246
- },
247
- "modifiers": [
248
- "async"
249
- ]
250
- },
251
- {
252
- "__schema": "FunctionLikeSchema",
253
- "location": {
254
- "filePath": "cache.main.runtime.ts",
255
- "line": 42,
256
- "character": 3
257
- },
258
- "signature": "(method) CacheMain.get<T>(key: string): Promise<T | undefined>",
259
- "name": "get",
260
- "params": [
261
- {
262
- "__schema": "ParameterSchema",
234
+ ],
235
+ "returnType": {
236
+ "__schema": "TypeRefSchema",
263
237
  "location": {
264
238
  "filePath": "cache.main.runtime.ts",
265
- "line": 42,
266
- "character": 16
267
- },
268
- "name": "key",
269
- "type": {
270
- "__schema": "KeywordTypeSchema",
271
- "location": {
272
- "filePath": "cache.main.runtime.ts",
273
- "line": 42,
274
- "character": 21
275
- },
276
- "name": "string"
239
+ "line": 33,
240
+ "character": 52
277
241
  },
278
- "isOptional": false,
279
- "isSpread": false
280
- }
281
- ],
282
- "returnType": {
283
- "__schema": "TypeRefSchema",
242
+ "name": "Promise",
243
+ "typeArgs": [
244
+ {
245
+ "__schema": "KeywordTypeSchema",
246
+ "location": {
247
+ "filePath": "cache.main.runtime.ts",
248
+ "line": 33,
249
+ "character": 60
250
+ },
251
+ "name": "boolean"
252
+ }
253
+ ]
254
+ },
255
+ "modifiers": [
256
+ "async"
257
+ ]
258
+ },
259
+ {
260
+ "__schema": "FunctionLikeSchema",
284
261
  "location": {
285
262
  "filePath": "cache.main.runtime.ts",
286
263
  "line": 42,
287
- "character": 30
264
+ "character": 3
288
265
  },
289
- "name": "Promise",
290
- "typeArgs": [
266
+ "signature": "(method) CacheMain.get<T>(key: string): Promise<T | undefined>",
267
+ "name": "get",
268
+ "params": [
291
269
  {
292
- "__schema": "TypeUnionSchema",
270
+ "__schema": "ParameterSchema",
293
271
  "location": {
294
272
  "filePath": "cache.main.runtime.ts",
295
273
  "line": 42,
296
- "character": 38
297
- },
298
- "types": [
299
- {
300
- "__schema": "TypeRefSchema",
301
- "location": {
302
- "filePath": "cache.main.runtime.ts",
303
- "line": 42,
304
- "character": 38
305
- },
306
- "name": "T"
274
+ "character": 16
275
+ },
276
+ "name": "key",
277
+ "type": {
278
+ "__schema": "KeywordTypeSchema",
279
+ "location": {
280
+ "filePath": "cache.main.runtime.ts",
281
+ "line": 42,
282
+ "character": 21
307
283
  },
308
- {
309
- "__schema": "KeywordTypeSchema",
310
- "location": {
311
- "filePath": "cache.main.runtime.ts",
312
- "line": 42,
313
- "character": 42
314
- },
315
- "name": "undefined"
316
- }
317
- ]
284
+ "name": "string"
285
+ },
286
+ "isOptional": false,
287
+ "isSpread": false
318
288
  }
319
- ]
320
- },
321
- "modifiers": [
322
- "async"
323
- ],
324
- "typeParams": [
325
- "T"
326
- ]
327
- },
328
- {
329
- "__schema": "FunctionLikeSchema",
330
- "location": {
331
- "filePath": "cache.main.runtime.ts",
332
- "line": 60,
333
- "character": 3
334
- },
335
- "signature": "(method) CacheMain.provider([loggerFactory]: [LoggerMain], config: CacheConfig): Promise<CacheMain>",
336
- "name": "provider",
337
- "params": [
338
- {
339
- "__schema": "ParameterSchema",
289
+ ],
290
+ "returnType": {
291
+ "__schema": "TypeRefSchema",
340
292
  "location": {
341
293
  "filePath": "cache.main.runtime.ts",
342
- "line": 60,
343
- "character": 25
294
+ "line": 42,
295
+ "character": 30
344
296
  },
345
- "name": "[ loggerFactory ]",
346
- "type": {
347
- "__schema": "TupleTypeSchema",
297
+ "name": "Promise",
298
+ "typeArgs": [
299
+ {
300
+ "__schema": "TypeUnionSchema",
301
+ "location": {
302
+ "filePath": "cache.main.runtime.ts",
303
+ "line": 42,
304
+ "character": 38
305
+ },
306
+ "types": [
307
+ {
308
+ "__schema": "TypeRefSchema",
309
+ "location": {
310
+ "filePath": "cache.main.runtime.ts",
311
+ "line": 42,
312
+ "character": 38
313
+ },
314
+ "name": "T"
315
+ },
316
+ {
317
+ "__schema": "KeywordTypeSchema",
318
+ "location": {
319
+ "filePath": "cache.main.runtime.ts",
320
+ "line": 42,
321
+ "character": 42
322
+ },
323
+ "name": "undefined"
324
+ }
325
+ ]
326
+ }
327
+ ]
328
+ },
329
+ "modifiers": [
330
+ "async"
331
+ ],
332
+ "typeParams": [
333
+ "T"
334
+ ]
335
+ },
336
+ {
337
+ "__schema": "FunctionLikeSchema",
338
+ "location": {
339
+ "filePath": "cache.main.runtime.ts",
340
+ "line": 60,
341
+ "character": 3
342
+ },
343
+ "signature": "(method) CacheMain.provider([loggerFactory]: [LoggerMain], config: CacheConfig): Promise<CacheMain>",
344
+ "name": "provider",
345
+ "params": [
346
+ {
347
+ "__schema": "ParameterSchema",
348
348
  "location": {
349
349
  "filePath": "cache.main.runtime.ts",
350
350
  "line": 60,
351
- "character": 42
352
- },
353
- "elements": [
354
- {
355
- "__schema": "TypeRefSchema",
356
- "location": {
357
- "filePath": "cache.main.runtime.ts",
358
- "line": 60,
359
- "character": 43
360
- },
361
- "name": "LoggerMain",
362
- "componentId": {
363
- "scope": "teambit.harmony",
364
- "name": "logger"
351
+ "character": 25
352
+ },
353
+ "name": "[ loggerFactory ]",
354
+ "type": {
355
+ "__schema": "TupleTypeSchema",
356
+ "location": {
357
+ "filePath": "cache.main.runtime.ts",
358
+ "line": 60,
359
+ "character": 42
360
+ },
361
+ "elements": [
362
+ {
363
+ "__schema": "TypeRefSchema",
364
+ "location": {
365
+ "filePath": "cache.main.runtime.ts",
366
+ "line": 60,
367
+ "character": 43
368
+ },
369
+ "name": "LoggerMain",
370
+ "componentId": {
371
+ "scope": "teambit.harmony",
372
+ "name": "logger"
373
+ }
365
374
  }
366
- }
367
- ]
368
- },
369
- "isOptional": false,
370
- "isSpread": false
371
- },
372
- {
373
- "__schema": "ParameterSchema",
374
- "location": {
375
- "filePath": "cache.main.runtime.ts",
376
- "line": 60,
377
- "character": 56
375
+ ]
376
+ },
377
+ "isOptional": false,
378
+ "isSpread": false
378
379
  },
379
- "name": "config",
380
- "type": {
381
- "__schema": "TypeRefSchema",
380
+ {
381
+ "__schema": "ParameterSchema",
382
382
  "location": {
383
383
  "filePath": "cache.main.runtime.ts",
384
384
  "line": 60,
385
- "character": 64
385
+ "character": 56
386
+ },
387
+ "name": "config",
388
+ "type": {
389
+ "__schema": "TypeRefSchema",
390
+ "location": {
391
+ "filePath": "cache.main.runtime.ts",
392
+ "line": 60,
393
+ "character": 64
394
+ },
395
+ "name": "CacheConfig",
396
+ "internalFilePath": "cache.main.runtime.ts"
386
397
  },
387
- "name": "CacheConfig",
388
- "internalFilePath": "cache.main.runtime.ts"
398
+ "isOptional": false,
399
+ "isSpread": false
400
+ }
401
+ ],
402
+ "returnType": {
403
+ "__schema": "InferenceTypeSchema",
404
+ "location": {
405
+ "filePath": "cache.main.runtime.ts",
406
+ "line": 60,
407
+ "character": 3
389
408
  },
390
- "isOptional": false,
391
- "isSpread": false
392
- }
393
- ],
394
- "returnType": {
395
- "__schema": "InferenceTypeSchema",
396
- "location": {
397
- "filePath": "cache.main.runtime.ts",
398
- "line": 60,
399
- "character": 3
409
+ "type": "Promise<CacheMain>"
400
410
  },
401
- "type": "Promise<CacheMain>"
402
- },
403
- "modifiers": [
404
- "static",
405
- "async"
406
- ]
407
- }
408
- ],
409
- "extendsNodes": [],
410
- "implementNodes": []
411
+ "modifiers": [
412
+ "static",
413
+ "async"
414
+ ]
415
+ }
416
+ ],
417
+ "extendsNodes": [],
418
+ "implementNodes": []
419
+ }
411
420
  },
412
421
  {
413
- "__schema": "VariableLikeSchema",
422
+ "__schema": "ExportSchema",
414
423
  "location": {
415
- "filePath": "cache.aspect.ts",
416
- "line": 3,
417
- "character": 14
424
+ "filePath": "index.ts",
425
+ "line": 2,
426
+ "character": 10
418
427
  },
419
- "signature": "const CacheAspect: Aspect",
420
428
  "name": "CacheAspect",
421
- "type": {
422
- "__schema": "TypeRefSchema",
429
+ "exportNode": {
430
+ "__schema": "VariableLikeSchema",
423
431
  "location": {
424
432
  "filePath": "cache.aspect.ts",
425
433
  "line": 3,
426
434
  "character": 14
427
435
  },
428
- "name": "Aspect",
429
- "componentId": {
430
- "scope": "teambit.harmony",
431
- "name": "harmony",
432
- "version": "0.4.6"
433
- }
434
- },
435
- "isOptional": false,
436
- "defaultValue": "Aspect.create({\n id: 'teambit.harmony/cache',\n dependencies: [],\n defaultConfig: {},\n})"
436
+ "signature": "const CacheAspect: Aspect",
437
+ "name": "CacheAspect",
438
+ "type": {
439
+ "__schema": "TypeRefSchema",
440
+ "location": {
441
+ "filePath": "cache.aspect.ts",
442
+ "line": 3,
443
+ "character": 14
444
+ },
445
+ "name": "Aspect",
446
+ "componentId": {
447
+ "scope": "teambit.harmony",
448
+ "name": "harmony",
449
+ "version": "0.4.6"
450
+ }
451
+ },
452
+ "isOptional": false,
453
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/cache',\n dependencies: [],\n defaultConfig: {},\n})"
454
+ }
437
455
  }
438
456
  ],
439
457
  "internals": []
@@ -938,7 +956,7 @@
938
956
  "componentId": {
939
957
  "scope": "teambit.harmony",
940
958
  "name": "cache",
941
- "version": "0.0.955"
959
+ "version": "0.0.957"
942
960
  },
943
961
  "taggedModuleExports": []
944
962
  }
@@ -1,5 +1,5 @@
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';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cache@0.0.957/dist/cache.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cache@0.0.957/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.955",
3
+ "version": "0.0.957",
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.955"
9
+ "version": "0.0.957"
10
10
  },
11
11
  "dependencies": {
12
12
  "cacache": "15.0.5",
13
13
  "@teambit/harmony": "0.4.6",
14
- "@teambit/cli": "0.0.862",
15
- "@teambit/logger": "0.0.955"
14
+ "@teambit/cli": "0.0.864",
15
+ "@teambit/logger": "0.0.957"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/cacache": "12.0.1",