@teambit/env 0.0.259 → 0.0.260

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.
@@ -0,0 +1,425 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "Module",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "ClassSchema",
18
+ "className": "EnvEnv",
19
+ "location": {
20
+ "filePath": "env.env.ts",
21
+ "line": 6,
22
+ "character": 1
23
+ },
24
+ "members": [
25
+ {
26
+ "__schema": "VariableLikeSchema",
27
+ "location": {
28
+ "filePath": "env.env.ts",
29
+ "line": 8,
30
+ "character": 3
31
+ },
32
+ "name": "icon",
33
+ "signature": "(property) EnvEnv.icon: string",
34
+ "isOptional": false,
35
+ "type": {
36
+ "__schema": "InferenceTypeSchema",
37
+ "location": {
38
+ "filePath": "env.env.ts",
39
+ "line": 8,
40
+ "character": 3
41
+ },
42
+ "type": "string"
43
+ }
44
+ },
45
+ {
46
+ "__schema": "FunctionLikeSchema",
47
+ "location": {
48
+ "filePath": "env.env.ts",
49
+ "line": 10,
50
+ "character": 3
51
+ },
52
+ "name": "__getDescriptor",
53
+ "signature": "(method) EnvEnv.__getDescriptor(): Promise<{\n type: string;\n}>",
54
+ "modifiers": [
55
+ "async"
56
+ ],
57
+ "params": [],
58
+ "returnType": {
59
+ "__schema": "InferenceTypeSchema",
60
+ "location": {
61
+ "filePath": "env.env.ts",
62
+ "line": 10,
63
+ "character": 3
64
+ },
65
+ "type": "Promise<{\n type: string;\n}>"
66
+ }
67
+ },
68
+ {
69
+ "__schema": "FunctionLikeSchema",
70
+ "location": {
71
+ "filePath": "env.env.ts",
72
+ "line": 16,
73
+ "character": 3
74
+ },
75
+ "name": "getPreviewConfig",
76
+ "signature": "(method) EnvEnv.getPreviewConfig(): {\n strategyName: string;\n splitComponentBundle: boolean;\n}",
77
+ "modifiers": [],
78
+ "params": [],
79
+ "returnType": {
80
+ "__schema": "InferenceTypeSchema",
81
+ "location": {
82
+ "filePath": "env.env.ts",
83
+ "line": 16,
84
+ "character": 3
85
+ },
86
+ "type": "{\n strategyName: string;\n splitComponentBundle: boolean;\n}"
87
+ }
88
+ }
89
+ ],
90
+ "doc": {
91
+ "__schema": "DocSchema",
92
+ "location": {
93
+ "filePath": "env.env.ts",
94
+ "line": 3,
95
+ "character": 1
96
+ },
97
+ "raw": "/**\n * a component environment built for Envs.\n */",
98
+ "comment": "a component environment built for Envs."
99
+ }
100
+ },
101
+ {
102
+ "__schema": "ClassSchema",
103
+ "className": "EnvMain",
104
+ "location": {
105
+ "filePath": "env.main.runtime.ts",
106
+ "line": 7,
107
+ "character": 1
108
+ },
109
+ "members": [
110
+ {
111
+ "__schema": "ConstructorSchema",
112
+ "location": {
113
+ "filePath": "env.main.runtime.ts",
114
+ "line": 8,
115
+ "character": 3
116
+ },
117
+ "params": [
118
+ {
119
+ "__schema": "ParameterSchema",
120
+ "location": {
121
+ "filePath": "env.main.runtime.ts",
122
+ "line": 8,
123
+ "character": 15
124
+ },
125
+ "name": "envEnv",
126
+ "isOptional": false,
127
+ "type": {
128
+ "__schema": "TypeRefSchema",
129
+ "location": {
130
+ "filePath": "env.main.runtime.ts",
131
+ "line": 8,
132
+ "character": 32
133
+ },
134
+ "name": "EnvEnv"
135
+ }
136
+ },
137
+ {
138
+ "__schema": "ParameterSchema",
139
+ "location": {
140
+ "filePath": "env.main.runtime.ts",
141
+ "line": 8,
142
+ "character": 40
143
+ },
144
+ "name": "envs",
145
+ "isOptional": false,
146
+ "type": {
147
+ "__schema": "TypeRefSchema",
148
+ "location": {
149
+ "filePath": "env.main.runtime.ts",
150
+ "line": 8,
151
+ "character": 54
152
+ },
153
+ "name": "EnvsMain",
154
+ "componentId": {
155
+ "scope": "teambit.envs",
156
+ "name": "envs",
157
+ "version": "0.0.887"
158
+ }
159
+ }
160
+ }
161
+ ]
162
+ },
163
+ {
164
+ "__schema": "FunctionLikeSchema",
165
+ "location": {
166
+ "filePath": "env.main.runtime.ts",
167
+ "line": 13,
168
+ "character": 3
169
+ },
170
+ "name": "compose",
171
+ "signature": "(method) EnvMain.compose(transformers?: EnvTransformer[], targetEnv?: Environment): Environment",
172
+ "modifiers": [],
173
+ "params": [
174
+ {
175
+ "__schema": "ParameterSchema",
176
+ "location": {
177
+ "filePath": "env.main.runtime.ts",
178
+ "line": 13,
179
+ "character": 11
180
+ },
181
+ "name": "transformers",
182
+ "isOptional": false,
183
+ "defaultValue": "[]",
184
+ "type": {
185
+ "__schema": "TypeArraySchema",
186
+ "location": {
187
+ "filePath": "env.main.runtime.ts",
188
+ "line": 13,
189
+ "character": 25
190
+ },
191
+ "type": {
192
+ "__schema": "TypeRefSchema",
193
+ "location": {
194
+ "filePath": "env.main.runtime.ts",
195
+ "line": 13,
196
+ "character": 25
197
+ },
198
+ "name": "EnvTransformer",
199
+ "componentId": {
200
+ "scope": "teambit.envs",
201
+ "name": "envs",
202
+ "version": "0.0.887"
203
+ }
204
+ }
205
+ }
206
+ },
207
+ {
208
+ "__schema": "ParameterSchema",
209
+ "location": {
210
+ "filePath": "env.main.runtime.ts",
211
+ "line": 13,
212
+ "character": 48
213
+ },
214
+ "name": "targetEnv",
215
+ "isOptional": false,
216
+ "defaultValue": "{}",
217
+ "type": {
218
+ "__schema": "TypeRefSchema",
219
+ "location": {
220
+ "filePath": "env.main.runtime.ts",
221
+ "line": 13,
222
+ "character": 59
223
+ },
224
+ "name": "Environment",
225
+ "componentId": {
226
+ "scope": "teambit.envs",
227
+ "name": "envs",
228
+ "version": "0.0.887"
229
+ }
230
+ }
231
+ }
232
+ ],
233
+ "returnType": {
234
+ "__schema": "TypeRefSchema",
235
+ "location": {
236
+ "filePath": "env.main.runtime.ts",
237
+ "line": 13,
238
+ "character": 3
239
+ },
240
+ "name": "Environment",
241
+ "componentId": {
242
+ "scope": "teambit.envs",
243
+ "name": "envs",
244
+ "version": "0.0.887"
245
+ }
246
+ },
247
+ "doc": {
248
+ "__schema": "DocSchema",
249
+ "location": {
250
+ "filePath": "env.main.runtime.ts",
251
+ "line": 10,
252
+ "character": 3
253
+ },
254
+ "raw": "/**\n * compose your own aspect environment.\n */",
255
+ "comment": "compose your own aspect environment."
256
+ }
257
+ },
258
+ {
259
+ "__schema": "VariableLikeSchema",
260
+ "location": {
261
+ "filePath": "env.main.runtime.ts",
262
+ "line": 17,
263
+ "character": 3
264
+ },
265
+ "name": "slots",
266
+ "signature": "(property) EnvMain.slots: never[]",
267
+ "isOptional": false,
268
+ "type": {
269
+ "__schema": "InferenceTypeSchema",
270
+ "location": {
271
+ "filePath": "env.main.runtime.ts",
272
+ "line": 17,
273
+ "character": 3
274
+ },
275
+ "type": "never[]"
276
+ }
277
+ },
278
+ {
279
+ "__schema": "VariableLikeSchema",
280
+ "location": {
281
+ "filePath": "env.main.runtime.ts",
282
+ "line": 18,
283
+ "character": 3
284
+ },
285
+ "name": "dependencies",
286
+ "signature": "(property) EnvMain.dependencies: Aspect[]",
287
+ "isOptional": false,
288
+ "type": {
289
+ "__schema": "InferenceTypeSchema",
290
+ "location": {
291
+ "filePath": "env.main.runtime.ts",
292
+ "line": 18,
293
+ "character": 3
294
+ },
295
+ "type": "Aspect[]"
296
+ }
297
+ },
298
+ {
299
+ "__schema": "VariableLikeSchema",
300
+ "location": {
301
+ "filePath": "env.main.runtime.ts",
302
+ "line": 19,
303
+ "character": 3
304
+ },
305
+ "name": "runtime",
306
+ "signature": "(property) EnvMain.runtime: RuntimeDefinition",
307
+ "isOptional": false,
308
+ "type": {
309
+ "__schema": "InferenceTypeSchema",
310
+ "location": {
311
+ "filePath": "env.main.runtime.ts",
312
+ "line": 19,
313
+ "character": 3
314
+ },
315
+ "type": "RuntimeDefinition"
316
+ }
317
+ },
318
+ {
319
+ "__schema": "FunctionLikeSchema",
320
+ "location": {
321
+ "filePath": "env.main.runtime.ts",
322
+ "line": 20,
323
+ "character": 3
324
+ },
325
+ "name": "provider",
326
+ "signature": "(method) EnvMain.provider([aspectAspect, envs]: [AspectMain, EnvsMain]): Promise<EnvMain>",
327
+ "modifiers": [
328
+ "static",
329
+ "async"
330
+ ],
331
+ "params": [
332
+ {
333
+ "__schema": "ParameterSchema",
334
+ "location": {
335
+ "filePath": "env.main.runtime.ts",
336
+ "line": 20,
337
+ "character": 25
338
+ },
339
+ "name": "[ aspectAspect, envs ]",
340
+ "isOptional": false,
341
+ "type": {
342
+ "__schema": "TupleTypeSchema",
343
+ "location": {
344
+ "filePath": "env.main.runtime.ts",
345
+ "line": 20,
346
+ "character": 47
347
+ },
348
+ "elements": [
349
+ {
350
+ "__schema": "TypeRefSchema",
351
+ "location": {
352
+ "filePath": "env.main.runtime.ts",
353
+ "line": 20,
354
+ "character": 48
355
+ },
356
+ "name": "AspectMain",
357
+ "componentId": {
358
+ "scope": "teambit.harmony",
359
+ "name": "aspect",
360
+ "version": "0.0.887"
361
+ }
362
+ },
363
+ {
364
+ "__schema": "TypeRefSchema",
365
+ "location": {
366
+ "filePath": "env.main.runtime.ts",
367
+ "line": 20,
368
+ "character": 60
369
+ },
370
+ "name": "EnvsMain",
371
+ "componentId": {
372
+ "scope": "teambit.envs",
373
+ "name": "envs",
374
+ "version": "0.0.887"
375
+ }
376
+ }
377
+ ]
378
+ }
379
+ }
380
+ ],
381
+ "returnType": {
382
+ "__schema": "InferenceTypeSchema",
383
+ "location": {
384
+ "filePath": "env.main.runtime.ts",
385
+ "line": 20,
386
+ "character": 3
387
+ },
388
+ "type": "Promise<EnvMain>"
389
+ }
390
+ }
391
+ ]
392
+ },
393
+ {
394
+ "__schema": "VariableLikeSchema",
395
+ "location": {
396
+ "filePath": "env.aspect.ts",
397
+ "line": 3,
398
+ "character": 14
399
+ },
400
+ "name": "EnvAspect",
401
+ "signature": "const EnvAspect: Aspect",
402
+ "isOptional": false,
403
+ "type": {
404
+ "__schema": "TypeRefSchema",
405
+ "location": {
406
+ "filePath": "env.aspect.ts",
407
+ "line": 3,
408
+ "character": 14
409
+ },
410
+ "name": "Aspect",
411
+ "componentId": {
412
+ "scope": "teambit.harmony",
413
+ "name": "harmony",
414
+ "version": "0.3.3"
415
+ }
416
+ }
417
+ }
418
+ ]
419
+ },
420
+ "componentId": {
421
+ "scope": "teambit.envs",
422
+ "name": "env",
423
+ "version": "0.0.260"
424
+ }
425
+ }
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@teambit/env",
3
- "version": "0.0.259",
3
+ "version": "0.0.260",
4
4
  "homepage": "https://bit.dev/teambit/envs/env",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.envs",
8
8
  "name": "env",
9
- "version": "0.0.259"
9
+ "version": "0.0.260"
10
10
  },
11
11
  "dependencies": {
12
- "@babel/runtime": "7.12.18",
12
+ "@babel/runtime": "7.20.0",
13
13
  "core-js": "^3.0.0",
14
14
  "@teambit/harmony": "0.3.3",
15
- "@teambit/aspect": "0.0.886",
16
- "@teambit/cli": "0.0.594",
17
- "@teambit/envs": "0.0.886"
15
+ "@teambit/aspect": "0.0.887",
16
+ "@teambit/cli": "0.0.595",
17
+ "@teambit/envs": "0.0.887"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/react": "^17.0.8",
@@ -25,7 +25,7 @@
25
25
  "@types/node": "12.20.4"
26
26
  },
27
27
  "peerDependencies": {
28
- "@teambit/legacy": "1.0.377",
28
+ "@teambit/legacy": "1.0.379",
29
29
  "react-dom": "^16.8.0 || ^17.0.0",
30
30
  "react": "^16.8.0 || ^17.0.0"
31
31
  },
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.envs_env@0.0.259/dist/env.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.envs_env@0.0.259/dist/env.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.envs_env@0.0.260/dist/env.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.envs_env@0.0.260/dist/env.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -1 +0,0 @@
1
- "use strict";(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[340],{41246:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{var _home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_preview_runtime_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(74649),_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(79022),_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_1__);(0,_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_preview_runtime_js__WEBPACK_IMPORTED_MODULE_0__.Bu)("overview",{mainModule:_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_1__,isSplitComponentBundle:!1,componentMap:{}})}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[22,244,926,629,384],()=>__webpack_exec__(41246));var __webpack_exports__=__webpack_require__.O()}]);
@@ -1 +0,0 @@
1
- (()=>{"use strict";var __webpack_modules__={5806:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__2)=>{var react__WEBPACK_IMPORTED_MODULE_0___namespace_cache,react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__2(67294),react_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__2(73935),_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__2(38168),_mdx_js_react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__2(3905);const globalObj=window;guard("React",react__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__2.t(react__WEBPACK_IMPORTED_MODULE_0__,2))),guard("ReactDom",react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache||(react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache=__webpack_require__2.t(react_dom__WEBPACK_IMPORTED_MODULE_1__,2))),guard("TeambitMdxUiMdxScopeContext",_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_2__),guard("MdxJsReact",_mdx_js_react__WEBPACK_IMPORTED_MODULE_3__),globalObj.React=react__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__2.t(react__WEBPACK_IMPORTED_MODULE_0__,2)),globalObj.ReactDom=react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache||(react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache=__webpack_require__2.t(react_dom__WEBPACK_IMPORTED_MODULE_1__,2)),globalObj.TeambitMdxUiMdxScopeContext=_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_2__,globalObj.MdxJsReact=_mdx_js_react__WEBPACK_IMPORTED_MODULE_3__;function guard(property,expected){var existing=globalObj[property];if(existing===expected&&expected!==void 0)console.warn('[expose-peers] "'+property+'" already exists in global scope, but with correct value');else if(existing!==void 0)throw new Error('[expose-peers] "'+property+'" already exists in the global scope, cannot overwrite')}}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(cachedModule!==void 0)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,(()=>{var deferred=[];__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(chunkIds){priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority];return}for(var notFulfilled=1/0,i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(priority&!1||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();r!==void 0&&(result=r)}}return result}})(),__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},(()=>{var getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,leafPrototypes;__webpack_require__.t=function(value,mode){if(mode&1&&(value=this(value)),mode&8||typeof value=="object"&&value&&(mode&4&&value.__esModule||mode&16&&typeof value.then=="function"))return value;var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=mode&2&&value;typeof current=="object"&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach(key=>def[key]=()=>value[key]);return def.default=()=>value,__webpack_require__.d(ns,def),ns}})(),__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.r=exports=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),(()=>{var installedChunks={703:0};__webpack_require__.O.j=chunkId=>installedChunks[chunkId]===0;var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var[chunkIds,moreModules,runtime]=data,moduleId,chunkId,i=0;if(chunkIds.some(id=>installedChunks[id]!==0)){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkIds[i]]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})();var __webpack_exports__=__webpack_require__.O(void 0,[244],()=>__webpack_require__(5806));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
Binary file