@teambit/component.ui.component-compare.utils.lazy-loading 0.0.6 → 0.0.8
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/lazy-loading.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type MaybeLazyLoaded<T> = T | (() => T);
|
|
2
2
|
export declare function extractLazyLoadedData<T>(data?: MaybeLazyLoaded<T>): T | undefined;
|
package/dist/lazy-loading.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.extractLazyLoadedData =
|
|
3
|
+
exports.extractLazyLoadedData = extractLazyLoadedData;
|
|
4
4
|
const lodash_1 = require("lodash");
|
|
5
5
|
function extractLazyLoadedData(data) {
|
|
6
6
|
if ((0, lodash_1.isFunction)(data))
|
|
7
7
|
return data();
|
|
8
8
|
return data;
|
|
9
9
|
}
|
|
10
|
-
exports.extractLazyLoadedData = extractLazyLoadedData;
|
|
11
10
|
//# sourceMappingURL=lazy-loading.js.map
|
package/dist/lazy-loading.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy-loading.js","sourceRoot":"","sources":["../lazy-loading.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lazy-loading.js","sourceRoot":"","sources":["../lazy-loading.ts"],"names":[],"mappings":";;AAGA,sDAGC;AAND,mCAAoC;AAGpC,SAAgB,qBAAqB,CAAI,IAAyB;IAChE,IAAI,IAAA,mBAAU,EAAC,IAAI,CAAC;QAAE,OAAO,IAAI,EAAE,CAAC;IACpC,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component.ui.component-compare.utils.lazy-loading",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/ui/component-compare/utils/lazy-loading",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "ui/component-compare/utils/lazy-loading",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.8"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
|
@@ -16,17 +16,19 @@
|
|
|
16
16
|
"@types/lodash": "4.14.165",
|
|
17
17
|
"@types/mocha": "9.1.0",
|
|
18
18
|
"@types/node": "12.20.4",
|
|
19
|
-
"@types/react": "^
|
|
20
|
-
"@types/react-dom": "^
|
|
19
|
+
"@types/react": "^19.0.0",
|
|
20
|
+
"@types/react-dom": "^19.0.0",
|
|
21
21
|
"@types/jest": "^26.0.0",
|
|
22
22
|
"@babel/runtime": "7.20.0",
|
|
23
23
|
"@types/testing-library__jest-dom": "5.9.5"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"react": "^
|
|
27
|
-
"react-dom": "^
|
|
26
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
27
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
|
+
"optionalDependencies": {},
|
|
31
|
+
"peerDependenciesMeta": {},
|
|
30
32
|
"private": false,
|
|
31
33
|
"engines": {
|
|
32
34
|
"node": ">=12.22.0"
|
|
@@ -45,4 +47,4 @@
|
|
|
45
47
|
"angular",
|
|
46
48
|
"angular-components"
|
|
47
49
|
]
|
|
48
|
-
}
|
|
50
|
+
}
|
package/dist/tsconfig.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": [
|
|
4
|
-
"es2019",
|
|
5
|
-
"DOM",
|
|
6
|
-
"ES6",
|
|
7
|
-
"DOM.Iterable"
|
|
8
|
-
],
|
|
9
|
-
"target": "es2015",
|
|
10
|
-
"module": "CommonJS",
|
|
11
|
-
"jsx": "react",
|
|
12
|
-
"allowJs": true,
|
|
13
|
-
"composite": true,
|
|
14
|
-
"declaration": true,
|
|
15
|
-
"sourceMap": true,
|
|
16
|
-
"skipLibCheck": true,
|
|
17
|
-
"experimentalDecorators": true,
|
|
18
|
-
"outDir": "dist",
|
|
19
|
-
"moduleResolution": "node",
|
|
20
|
-
"esModuleInterop": true,
|
|
21
|
-
"rootDir": ".",
|
|
22
|
-
"resolveJsonModule": true
|
|
23
|
-
},
|
|
24
|
-
"exclude": [
|
|
25
|
-
"dist",
|
|
26
|
-
"package.json"
|
|
27
|
-
],
|
|
28
|
-
"include": [
|
|
29
|
-
"**/*",
|
|
30
|
-
"**/*.json"
|
|
31
|
-
]
|
|
32
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": [
|
|
4
|
-
"es2019",
|
|
5
|
-
"DOM",
|
|
6
|
-
"ES6",
|
|
7
|
-
"DOM.Iterable"
|
|
8
|
-
],
|
|
9
|
-
"target": "es2015",
|
|
10
|
-
"module": "CommonJS",
|
|
11
|
-
"jsx": "react",
|
|
12
|
-
"allowJs": true,
|
|
13
|
-
"composite": true,
|
|
14
|
-
"declaration": true,
|
|
15
|
-
"sourceMap": true,
|
|
16
|
-
"skipLibCheck": true,
|
|
17
|
-
"experimentalDecorators": true,
|
|
18
|
-
"outDir": "dist",
|
|
19
|
-
"moduleResolution": "node",
|
|
20
|
-
"esModuleInterop": true,
|
|
21
|
-
"rootDir": ".",
|
|
22
|
-
"resolveJsonModule": true
|
|
23
|
-
},
|
|
24
|
-
"exclude": [
|
|
25
|
-
"dist",
|
|
26
|
-
"package.json"
|
|
27
|
-
],
|
|
28
|
-
"include": [
|
|
29
|
-
"**/*",
|
|
30
|
-
"**/*.json"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
File without changes
|