@imbricate/core 1.10.0 → 1.13.0
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/origin/definition.d.ts +6 -0
- package/origin/definition.js +7 -0
- package/package.json +1 -1
- package/page/interface.d.ts +3 -0
- package/script/interface.d.ts +3 -0
package/origin/definition.d.ts
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
* @namespace Origin
|
|
4
4
|
* @description Definition
|
|
5
5
|
*/
|
|
6
|
+
export declare enum IMBRICATE_DIGEST_ALGORITHM {
|
|
7
|
+
MD5 = "MD5",
|
|
8
|
+
SHA1 = "SHA1",
|
|
9
|
+
SHA256 = "SHA256"
|
|
10
|
+
}
|
|
6
11
|
export type ImbricateOriginMetadata = {
|
|
7
12
|
readonly type: string;
|
|
13
|
+
readonly digestAlgorithm: IMBRICATE_DIGEST_ALGORITHM;
|
|
8
14
|
};
|
package/origin/definition.js
CHANGED
|
@@ -5,3 +5,10 @@
|
|
|
5
5
|
* @description Definition
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.IMBRICATE_DIGEST_ALGORITHM = void 0;
|
|
9
|
+
var IMBRICATE_DIGEST_ALGORITHM;
|
|
10
|
+
(function (IMBRICATE_DIGEST_ALGORITHM) {
|
|
11
|
+
IMBRICATE_DIGEST_ALGORITHM["MD5"] = "MD5";
|
|
12
|
+
IMBRICATE_DIGEST_ALGORITHM["SHA1"] = "SHA1";
|
|
13
|
+
IMBRICATE_DIGEST_ALGORITHM["SHA256"] = "SHA256";
|
|
14
|
+
})(IMBRICATE_DIGEST_ALGORITHM || (exports.IMBRICATE_DIGEST_ALGORITHM = IMBRICATE_DIGEST_ALGORITHM = {}));
|
package/package.json
CHANGED
package/page/interface.d.ts
CHANGED
|
@@ -17,5 +17,8 @@ export interface IImbricatePage {
|
|
|
17
17
|
writeContent(content: string): PromiseOr<void>;
|
|
18
18
|
readAttributes(): PromiseOr<ImbricatePageAttributes>;
|
|
19
19
|
writeAttribute(key: string, value: string): PromiseOr<void>;
|
|
20
|
+
refreshUpdateMetadata(updatedAt: Date, digest: string): PromiseOr<void>;
|
|
20
21
|
refreshUpdatedAt(updatedAt: Date): PromiseOr<void>;
|
|
22
|
+
refreshDigest(digest: string): PromiseOr<void>;
|
|
23
|
+
addHistoryRecord(record: ImbricatePageHistoryRecord): PromiseOr<void>;
|
|
21
24
|
}
|
package/script/interface.d.ts
CHANGED
|
@@ -20,6 +20,9 @@ export interface IImbricateScript {
|
|
|
20
20
|
writeScript(script: string): PromiseOr<void>;
|
|
21
21
|
readAttributes(): PromiseOr<ImbricateScriptAttributes>;
|
|
22
22
|
writeAttribute(key: string, value: string): PromiseOr<void>;
|
|
23
|
+
refreshUpdateMetadata(updatedAt: Date, digest: string): PromiseOr<void>;
|
|
23
24
|
refreshUpdatedAt(updatedAt: Date): PromiseOr<void>;
|
|
25
|
+
refreshDigest(digest: string): PromiseOr<void>;
|
|
26
|
+
addHistoryRecord(record: ImbricateScriptHistoryRecord): PromiseOr<void>;
|
|
24
27
|
execute(features: SandboxFeature[], config: SandboxExecuteConfig, parameter: SandboxExecuteParameter): PromiseOr<MarkedResult>;
|
|
25
28
|
}
|