@letpeoplework/lighthouse-client 0.3.0 → 0.3.1
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,4 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
1
20
|
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
createLighthouseAuthContext: () => createLighthouseAuthContext,
|
|
24
|
+
createLighthouseClient: () => createLighthouseClient,
|
|
25
|
+
getClientPackageContract: () => getClientPackageContract,
|
|
26
|
+
getDefaultMetricsDateRange: () => getDefaultMetricsDateRange,
|
|
27
|
+
parseStandaloneDiscoveryContract: () => parseStandaloneDiscoveryContract,
|
|
28
|
+
validateLighthouseConnectivity: () => validateLighthouseConnectivity
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(index_exports);
|
|
2
31
|
var getClientPackageContract = () => ({
|
|
3
32
|
name: "@letpeoplework/lighthouse-client",
|
|
4
33
|
capabilities: [
|
|
@@ -666,11 +695,12 @@ var createLighthouseClient = (configuration, dependencies = {}) => ({
|
|
|
666
695
|
{ method: "POST", body: payload }
|
|
667
696
|
)
|
|
668
697
|
});
|
|
669
|
-
export
|
|
698
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
699
|
+
0 && (module.exports = {
|
|
670
700
|
createLighthouseAuthContext,
|
|
671
701
|
createLighthouseClient,
|
|
672
702
|
getClientPackageContract,
|
|
673
703
|
getDefaultMetricsDateRange,
|
|
674
704
|
parseStandaloneDiscoveryContract,
|
|
675
705
|
validateLighthouseConnectivity
|
|
676
|
-
};
|
|
706
|
+
});
|
package/dist/index.js
CHANGED
|
@@ -1,33 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
1
|
// src/index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
createLighthouseAuthContext: () => createLighthouseAuthContext,
|
|
24
|
-
createLighthouseClient: () => createLighthouseClient,
|
|
25
|
-
getClientPackageContract: () => getClientPackageContract,
|
|
26
|
-
getDefaultMetricsDateRange: () => getDefaultMetricsDateRange,
|
|
27
|
-
parseStandaloneDiscoveryContract: () => parseStandaloneDiscoveryContract,
|
|
28
|
-
validateLighthouseConnectivity: () => validateLighthouseConnectivity
|
|
29
|
-
});
|
|
30
|
-
module.exports = __toCommonJS(index_exports);
|
|
31
2
|
var getClientPackageContract = () => ({
|
|
32
3
|
name: "@letpeoplework/lighthouse-client",
|
|
33
4
|
capabilities: [
|
|
@@ -695,12 +666,11 @@ var createLighthouseClient = (configuration, dependencies = {}) => ({
|
|
|
695
666
|
{ method: "POST", body: payload }
|
|
696
667
|
)
|
|
697
668
|
});
|
|
698
|
-
|
|
699
|
-
0 && (module.exports = {
|
|
669
|
+
export {
|
|
700
670
|
createLighthouseAuthContext,
|
|
701
671
|
createLighthouseClient,
|
|
702
672
|
getClientPackageContract,
|
|
703
673
|
getDefaultMetricsDateRange,
|
|
704
674
|
parseStandaloneDiscoveryContract,
|
|
705
675
|
validateLighthouseConnectivity
|
|
706
|
-
}
|
|
676
|
+
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letpeoplework/lighthouse-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Shared Lighthouse API client contracts",
|
|
5
5
|
"repository": "https://github.com/LetPeopleWork/lighthouse-clients",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"main": "dist/index.cjs",
|
|
7
8
|
"module": "dist/index.js",
|
|
8
9
|
"types": "dist/index.d.ts",
|
|
File without changes
|