@certik/skynet 0.11.0 → 0.11.2
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/CHANGELOG.md +9 -0
- package/api.js +1 -0
- package/deploy.js +6 -4
- package/dynamodb.js +8 -0
- package/examples/{api → api.js} +1 -1
- package/indexer.js +4 -2
- package/kafka.js +4 -2
- package/monitor.js +1 -0
- package/package.json +1 -1
- /package/examples/{consumer → consumer.js} +0 -0
- /package/examples/{indexer → indexer.js} +0 -0
- /package/examples/{mode-indexer → mode-indexer.js} +0 -0
- /package/examples/{producer → producer.js} +0 -0
package/CHANGELOG.md
CHANGED
package/api.js
CHANGED
package/deploy.js
CHANGED
|
@@ -487,6 +487,7 @@ ${getSelectorDesc(selector)}
|
|
|
487
487
|
${binaryName} --mode validate
|
|
488
488
|
`,
|
|
489
489
|
{
|
|
490
|
+
importMeta: import.meta,
|
|
490
491
|
description: false,
|
|
491
492
|
version: false,
|
|
492
493
|
flags: {
|
|
@@ -496,12 +497,12 @@ ${getSelectorDesc(selector)}
|
|
|
496
497
|
default: "delta",
|
|
497
498
|
},
|
|
498
499
|
from: {
|
|
499
|
-
|
|
500
|
+
aliases: ["since"],
|
|
500
501
|
type: "number",
|
|
501
502
|
default: 0,
|
|
502
503
|
},
|
|
503
504
|
to: {
|
|
504
|
-
|
|
505
|
+
aliases: ["until"],
|
|
505
506
|
type: "number",
|
|
506
507
|
default: 0,
|
|
507
508
|
},
|
|
@@ -513,7 +514,7 @@ ${getSelectorDesc(selector)}
|
|
|
513
514
|
default: false,
|
|
514
515
|
},
|
|
515
516
|
production: {
|
|
516
|
-
|
|
517
|
+
aliases: ["prd"],
|
|
517
518
|
type: "boolean",
|
|
518
519
|
default: false,
|
|
519
520
|
},
|
|
@@ -653,6 +654,7 @@ ${getSelectorDesc(selector)}
|
|
|
653
654
|
--dry-run print nomad job file but do not really execute it
|
|
654
655
|
`,
|
|
655
656
|
{
|
|
657
|
+
importMeta: import.meta,
|
|
656
658
|
description: false,
|
|
657
659
|
version: false,
|
|
658
660
|
flags: {
|
|
@@ -665,7 +667,7 @@ ${getSelectorDesc(selector)}
|
|
|
665
667
|
default: false,
|
|
666
668
|
},
|
|
667
669
|
production: {
|
|
668
|
-
|
|
670
|
+
aliases: ["prd"],
|
|
669
671
|
type: "boolean",
|
|
670
672
|
default: false,
|
|
671
673
|
},
|
package/dynamodb.js
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
DynamoDBDocumentClient,
|
|
3
3
|
ScanCommand,
|
|
4
4
|
BatchWriteCommand,
|
|
5
|
+
GetCommand,
|
|
5
6
|
PutCommand,
|
|
6
7
|
QueryCommand,
|
|
7
8
|
UpdateCommand,
|
|
@@ -456,6 +457,13 @@ async function deleteRecordsByHashKey(tableName, indexName, hashKeyValue, verbos
|
|
|
456
457
|
|
|
457
458
|
export {
|
|
458
459
|
getDocClient,
|
|
460
|
+
// export common dynamodb commands to make it easier to use
|
|
461
|
+
ScanCommand,
|
|
462
|
+
BatchWriteCommand,
|
|
463
|
+
GetCommand,
|
|
464
|
+
PutCommand,
|
|
465
|
+
QueryCommand,
|
|
466
|
+
UpdateCommand,
|
|
459
467
|
scanWholeTable,
|
|
460
468
|
batchCreateRecords,
|
|
461
469
|
createRecord,
|
package/examples/{api → api.js}
RENAMED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// $ examples/api deploy
|
|
8
8
|
// $ examples/api --help
|
|
9
9
|
|
|
10
|
-
import { api, every, SENSITIVE_VALUE, ERROR_LEVEL } from "../app";
|
|
10
|
+
import { api, every, SENSITIVE_VALUE, ERROR_LEVEL } from "../app.js";
|
|
11
11
|
|
|
12
12
|
// an example middleware
|
|
13
13
|
async function exampleMiddleware(req, res, next) {
|
package/indexer.js
CHANGED
|
@@ -506,6 +506,7 @@ ${getSelectorDesc(selector)}
|
|
|
506
506
|
--verbose Output debug messages
|
|
507
507
|
`,
|
|
508
508
|
{
|
|
509
|
+
importMeta: import.meta,
|
|
509
510
|
description: false,
|
|
510
511
|
version: false,
|
|
511
512
|
flags: {
|
|
@@ -515,11 +516,11 @@ ${getSelectorDesc(selector)}
|
|
|
515
516
|
default: "delta",
|
|
516
517
|
},
|
|
517
518
|
from: {
|
|
518
|
-
|
|
519
|
+
aliases: ["since"],
|
|
519
520
|
type: "string",
|
|
520
521
|
},
|
|
521
522
|
to: {
|
|
522
|
-
|
|
523
|
+
aliases: ["until"],
|
|
523
524
|
type: "string",
|
|
524
525
|
},
|
|
525
526
|
status: {
|
|
@@ -562,6 +563,7 @@ ${getSelectorDesc(selector)}
|
|
|
562
563
|
--verbose Output debug messages
|
|
563
564
|
`,
|
|
564
565
|
{
|
|
566
|
+
importMeta: import.meta,
|
|
565
567
|
description: false,
|
|
566
568
|
version: false,
|
|
567
569
|
flags: {
|
package/kafka.js
CHANGED
|
@@ -168,17 +168,18 @@ ${getSelectorDesc(selector)}
|
|
|
168
168
|
--reset restart producer
|
|
169
169
|
`,
|
|
170
170
|
{
|
|
171
|
+
importMeta: import.meta,
|
|
171
172
|
description: false,
|
|
172
173
|
version: false,
|
|
173
174
|
flags: {
|
|
174
175
|
...getSelectorFlags(selector),
|
|
175
176
|
from: {
|
|
176
|
-
|
|
177
|
+
aliases: ["since"],
|
|
177
178
|
type: "number",
|
|
178
179
|
default: 0,
|
|
179
180
|
},
|
|
180
181
|
to: {
|
|
181
|
-
|
|
182
|
+
aliases: ["until"],
|
|
182
183
|
type: "number",
|
|
183
184
|
default: 0,
|
|
184
185
|
},
|
|
@@ -357,6 +358,7 @@ ${getSelectorDesc(selector)}
|
|
|
357
358
|
--verbose Output debug messages
|
|
358
359
|
`,
|
|
359
360
|
{
|
|
361
|
+
importMeta: import.meta,
|
|
360
362
|
description: false,
|
|
361
363
|
version: false,
|
|
362
364
|
flags: {
|
package/monitor.js
CHANGED
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|