@degallery/node 0.1.0 → 0.2.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.
- package/dist/lib/node.d.ts +3 -1
- package/dist/lib/node.d.ts.map +1 -1
- package/dist/lib/node.js +5 -1
- package/package.json +6 -3
package/dist/lib/node.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { GalleryClient } from '@
|
|
1
|
+
export { GalleryClient } from '@degallery/sdk';
|
|
2
|
+
export type { Asset, GalleryDetail, GalleryLinkPayload, GallerySummary, } from '@degallery/sdk';
|
|
3
|
+
export declare function node(): string;
|
|
2
4
|
export declare function createDeliveryToken(input: {
|
|
3
5
|
resourceId: string;
|
|
4
6
|
environmentId: string;
|
package/dist/lib/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/lib/node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/lib/node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,YAAY,EACV,KAAK,EACL,aAAa,EACb,kBAAkB,EAClB,cAAc,GACf,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,IAAI,IAAI,MAAM,CAE7B;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE;IACL,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,EACD,MAAM,EAAE,MAAM,UAIf"}
|
package/dist/lib/node.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GalleryClient = void 0;
|
|
4
|
+
exports.node = node;
|
|
4
5
|
exports.createDeliveryToken = createDeliveryToken;
|
|
5
6
|
const node_crypto_1 = require("node:crypto");
|
|
6
|
-
var sdk_1 = require("@
|
|
7
|
+
var sdk_1 = require("@degallery/sdk");
|
|
7
8
|
Object.defineProperty(exports, "GalleryClient", { enumerable: true, get: function () { return sdk_1.GalleryClient; } });
|
|
9
|
+
function node() {
|
|
10
|
+
return 'node';
|
|
11
|
+
}
|
|
8
12
|
function createDeliveryToken(input, secret) {
|
|
9
13
|
const payload = Buffer.from(JSON.stringify(input)).toString('base64url');
|
|
10
14
|
return `${payload}.${(0, node_crypto_1.createHmac)('sha256', secret).update(payload).digest('base64url')}`;
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@degallery/node",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"lib:publish": "npm publish --access public"
|
|
9
|
+
},
|
|
7
10
|
"exports": {
|
|
8
11
|
"./package.json": "./package.json",
|
|
9
12
|
".": {
|
|
@@ -19,6 +22,6 @@
|
|
|
19
22
|
],
|
|
20
23
|
"dependencies": {
|
|
21
24
|
"tslib": "^2.3.0",
|
|
22
|
-
"@degallery/sdk": "
|
|
25
|
+
"@degallery/sdk": "workspace:*"
|
|
23
26
|
}
|
|
24
|
-
}
|
|
27
|
+
}
|