@wix/site-service-site-info 1.0.7 → 1.0.9
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/cjs/build/definition/index.d.ts +2 -3
- package/cjs/build/definition/index.js.map +1 -1
- package/cjs/build/index.js +3 -16
- package/cjs/build/index.js.map +1 -1
- package/dist/definition/index.d.ts +2 -3
- package/dist/definition/index.js.map +1 -1
- package/package.json +17 -7
- package/src/definition/index.ts +2 -3
|
@@ -20,7 +20,7 @@ export type ISiteInfoServiceConfig = {
|
|
|
20
20
|
*/
|
|
21
21
|
siteId: string;
|
|
22
22
|
};
|
|
23
|
-
/** Reports the display name, revision number and ID of the site your code runs on. */
|
|
23
|
+
/** Reports the display name, revision number, and ID of the site your code runs on. */
|
|
24
24
|
export interface ISiteInfoService {
|
|
25
25
|
/**
|
|
26
26
|
* Site's display name.
|
|
@@ -52,8 +52,7 @@ export interface ISiteInfoService {
|
|
|
52
52
|
* Site's ID: the ID that Wix APIs and analytics use to identify the site.
|
|
53
53
|
*
|
|
54
54
|
* This value can change while the page is open. It changes when a Wix user saves an unsaved template
|
|
55
|
-
* while editing it. Read it while a component renders,
|
|
56
|
-
* changes.
|
|
55
|
+
* while editing it. Read it while a component renders, so the component updates when it changes.
|
|
57
56
|
*
|
|
58
57
|
* `''` when the site has no ID yet, for example an unsaved template in the editor.
|
|
59
58
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AAuEzD,yEAAyE;AAC5D,QAAA,kBAAkB,GAAG,IAAA,oCAAa,EAA2C,6BAA6B,CAAC,CAAA"}
|
package/cjs/build/index.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./definition"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./implementations"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
package/cjs/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,4DAAiC"}
|
|
@@ -20,7 +20,7 @@ export type ISiteInfoServiceConfig = {
|
|
|
20
20
|
*/
|
|
21
21
|
siteId: string;
|
|
22
22
|
};
|
|
23
|
-
/** Reports the display name, revision number and ID of the site your code runs on. */
|
|
23
|
+
/** Reports the display name, revision number, and ID of the site your code runs on. */
|
|
24
24
|
export interface ISiteInfoService {
|
|
25
25
|
/**
|
|
26
26
|
* Site's display name.
|
|
@@ -52,8 +52,7 @@ export interface ISiteInfoService {
|
|
|
52
52
|
* Site's ID: the ID that Wix APIs and analytics use to identify the site.
|
|
53
53
|
*
|
|
54
54
|
* This value can change while the page is open. It changes when a Wix user saves an unsaved template
|
|
55
|
-
* while editing it. Read it while a component renders,
|
|
56
|
-
* changes.
|
|
55
|
+
* while editing it. Read it while a component renders, so the component updates when it changes.
|
|
57
56
|
*
|
|
58
57
|
* `''` when the site has no ID yet, for example an unsaved template in the editor.
|
|
59
58
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAuEzD,yEAAyE;AACzE,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAA2C,6BAA6B,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-service-site-info",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -48,18 +48,29 @@
|
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsc -b . && tsc --project tsconfig.cjs.json",
|
|
51
|
-
"lint": "pnpm --workspace-root run lint:package --package $npm_package_name",
|
|
52
51
|
"test": "vitest --run && pnpm run test-type-check",
|
|
53
52
|
"test-type-check": "echo 'validating typescript in test files' && tsc --project tsconfig.test.json && echo 'Finished validating typescript in test files successfully'"
|
|
54
53
|
},
|
|
55
54
|
"dependencies": {
|
|
56
|
-
"@wix/services-definitions": "^0.
|
|
57
|
-
"@wix/services-manager": "^0.
|
|
55
|
+
"@wix/services-definitions": "^1.0.5",
|
|
56
|
+
"@wix/services-manager": "^1.0.7",
|
|
57
|
+
"tslib": "^2.8.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"typescript": "~7.0.2",
|
|
61
61
|
"vitest": "4.1.11"
|
|
62
62
|
},
|
|
63
|
+
"nx": {
|
|
64
|
+
"targets": {
|
|
65
|
+
"build": {
|
|
66
|
+
"outputs": [
|
|
67
|
+
"{projectRoot}/dist/**/*",
|
|
68
|
+
"{projectRoot}/cjs/build/**/*",
|
|
69
|
+
"{projectRoot}/*.tsbuildinfo"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
63
74
|
"publishUnscoped": false,
|
|
64
75
|
"wix": {
|
|
65
76
|
"artifact": {
|
|
@@ -72,10 +83,9 @@
|
|
|
72
83
|
},
|
|
73
84
|
"validations": {
|
|
74
85
|
"postBuild": [
|
|
75
|
-
"test"
|
|
76
|
-
"lint"
|
|
86
|
+
"test"
|
|
77
87
|
]
|
|
78
88
|
}
|
|
79
89
|
},
|
|
80
|
-
"falconPackageHash": "
|
|
90
|
+
"falconPackageHash": "7a7a6f65fc81bb6235651897ff457ad5f5f541c89d028657c06c2e73"
|
|
81
91
|
}
|
package/src/definition/index.ts
CHANGED
|
@@ -23,7 +23,7 @@ export type ISiteInfoServiceConfig = {
|
|
|
23
23
|
siteId: string
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
/** Reports the display name, revision number and ID of the site your code runs on. */
|
|
26
|
+
/** Reports the display name, revision number, and ID of the site your code runs on. */
|
|
27
27
|
export interface ISiteInfoService {
|
|
28
28
|
/**
|
|
29
29
|
* Site's display name.
|
|
@@ -55,8 +55,7 @@ export interface ISiteInfoService {
|
|
|
55
55
|
* Site's ID: the ID that Wix APIs and analytics use to identify the site.
|
|
56
56
|
*
|
|
57
57
|
* This value can change while the page is open. It changes when a Wix user saves an unsaved template
|
|
58
|
-
* while editing it. Read it while a component renders,
|
|
59
|
-
* changes.
|
|
58
|
+
* while editing it. Read it while a component renders, so the component updates when it changes.
|
|
60
59
|
*
|
|
61
60
|
* `''` when the site has no ID yet, for example an unsaved template in the editor.
|
|
62
61
|
*
|