@veridia/node-sdk 1.0.13 → 1.0.14

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/README.md CHANGED
@@ -29,8 +29,10 @@ yarn add @veridia/node-sdk
29
29
  import { VeridiaClient } from '@veridia/node-sdk';
30
30
 
31
31
  const client = new VeridiaClient({
32
- accessKeyId: 'your-access-key-id',
33
- secretAccessKey: 'your-secret-access-key',
32
+ credentials: {
33
+ accessKeyId: 'your-access-key-id',
34
+ secretAccessKey: 'your-secret-access-key',
35
+ },
34
36
  logger: {
35
37
  error: (service, msg, ctx) => console.error(`[ERROR] ${service}: ${msg}`, ctx),
36
38
  warn: (service, msg, ctx) => console.warn(`[WARN] ${service}: ${msg}`, ctx),
@@ -45,8 +47,10 @@ const client = new VeridiaClient({
45
47
  const { VeridiaClient } = require('@veridia/node-sdk');
46
48
 
47
49
  const client = new VeridiaClient({
48
- accessKeyId: 'your-access-key-id',
49
- secretAccessKey: 'your-secret-access-key',
50
+ credentials: {
51
+ accessKeyId: 'your-access-key-id',
52
+ secretAccessKey: 'your-secret-access-key',
53
+ },
50
54
  logger: { error: console.error },
51
55
  });
52
56
  ```
@@ -186,8 +190,10 @@ import pino from 'pino';
186
190
  const log = pino();
187
191
 
188
192
  const client = new VeridiaClient({
189
- accessKeyId: '...',
190
- secretAccessKey: '...',
193
+ credentials: {
194
+ accessKeyId: 'your-access-key-id',
195
+ secretAccessKey: 'your-secret-access-key',
196
+ },
191
197
  logger: {
192
198
  info: (s, m, c) => log.info({ service: s, context: c }, m),
193
199
  warn: (s, m, c) => log.warn({ service: s, context: c }, m),
@@ -211,8 +217,10 @@ Hover over any method in VS Code to see inline descriptions and parameter hints.
211
217
  import { VeridiaClient } from '@veridia/node-sdk';
212
218
 
213
219
  const client = new VeridiaClient({
214
- accessKeyId: 'test',
215
- secretAccessKey: 'test',
220
+ credentials: {
221
+ accessKeyId: 'your-access-key-id',
222
+ secretAccessKey: 'your-secret-access-key',
223
+ },
216
224
  logger: { error: console.error },
217
225
  });
218
226
 
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.13";
1
+ export declare const SDK_VERSION = "1.0.14";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '1.0.13';
4
+ exports.SDK_VERSION = '1.0.14';
5
5
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.13";
1
+ export declare const SDK_VERSION = "1.0.14";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '1.0.13';
4
+ exports.SDK_VERSION = '1.0.14';
5
5
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veridia/node-sdk",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",