@microsoft/ccf-app 2.0.0-dev7 → 2.0.0-dev8
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/endpoints.d.ts +8 -0
- package/endpoints.js +4 -0
- package/global.d.ts +7 -0
- package/package.json +5 -4
- package/polyfill.js +3 -0
package/endpoints.d.ts
CHANGED
|
@@ -46,6 +46,10 @@ export interface Request<T extends JsonCompatible<T> = any> {
|
|
|
46
46
|
* The query string of the requested URL.
|
|
47
47
|
*/
|
|
48
48
|
query: string;
|
|
49
|
+
/**
|
|
50
|
+
* The request path of the requested URL.
|
|
51
|
+
*/
|
|
52
|
+
path: string;
|
|
49
53
|
/**
|
|
50
54
|
* An object to access the request body in various ways.
|
|
51
55
|
*/
|
|
@@ -192,4 +196,8 @@ export declare type EndpointFn<A extends JsonCompatible<A> = any, B extends Resp
|
|
|
192
196
|
* @inheritDoc CCF.rpc.setApplyWrites
|
|
193
197
|
*/
|
|
194
198
|
export declare const setApplyWrites: (force: boolean) => void;
|
|
199
|
+
/**
|
|
200
|
+
* @inheritDoc CCF.rpc.setClaimsDigest
|
|
201
|
+
*/
|
|
202
|
+
export declare const setClaimsDigest: (digest: ArrayBuffer) => void;
|
|
195
203
|
export {};
|
package/endpoints.js
CHANGED
|
@@ -11,3 +11,7 @@ import { ccf } from "./global.js";
|
|
|
11
11
|
* @inheritDoc CCF.rpc.setApplyWrites
|
|
12
12
|
*/
|
|
13
13
|
export const setApplyWrites = ccf.rpc.setApplyWrites.bind(ccf.rpc);
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc CCF.rpc.setClaimsDigest
|
|
16
|
+
*/
|
|
17
|
+
export const setClaimsDigest = ccf.rpc.setClaimsDigest.bind(ccf.rpc);
|
package/global.d.ts
CHANGED
|
@@ -194,6 +194,13 @@ export interface CCFRpc {
|
|
|
194
194
|
* The default is `false`.
|
|
195
195
|
*/
|
|
196
196
|
setApplyWrites(force: boolean): void;
|
|
197
|
+
/**
|
|
198
|
+
* Set a claims digest to be associated with the transaction if it succeeds. This
|
|
199
|
+
* digest can later be accessed from the receipt, and expanded into a full claim.
|
|
200
|
+
*
|
|
201
|
+
* The `digest` argument must be a sha-256 ArrayBuffer, eg. produced by {@link CCF.digest}
|
|
202
|
+
*/
|
|
203
|
+
setClaimsDigest(digest: ArrayBuffer): void;
|
|
197
204
|
}
|
|
198
205
|
export interface CCFConsensus {
|
|
199
206
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/ccf-app",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-dev8",
|
|
4
4
|
"description": "CCF app support package",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/chai": "^4.2.15",
|
|
22
22
|
"@types/mocha": "^9.0.0",
|
|
23
|
-
"@types/node": "
|
|
24
|
-
"@types/node-forge": "^0.
|
|
23
|
+
"@types/node": "^17.0.8",
|
|
24
|
+
"@types/node-forge": "^1.0.0",
|
|
25
25
|
"chai": "^4.3.4",
|
|
26
|
+
"colors": "1.4.0",
|
|
26
27
|
"cross-env": "^7.0.3",
|
|
27
28
|
"mocha": "^9.1.3",
|
|
28
|
-
"node-forge": "^
|
|
29
|
+
"node-forge": "^1.2.0",
|
|
29
30
|
"ts-node": "^10.4.0",
|
|
30
31
|
"typedoc": "^0.22.7",
|
|
31
32
|
"typescript": "^4.2.4"
|
package/polyfill.js
CHANGED