@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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.2
4
+
5
+ - Fixed: updated alias option for meow
6
+
7
+ ## 0.11.1
8
+
9
+ - Fixed: missing option for meow
10
+ - Added: exported common dynamodb command to improve usability
11
+
3
12
  ## 0.11.0
4
13
 
5
14
  - BREAKING: Converted package to modules
package/api.js CHANGED
@@ -102,6 +102,7 @@ ${getSelectorDesc(selector)}
102
102
  --verbose Output debug messages
103
103
  `,
104
104
  {
105
+ importMeta: import.meta,
105
106
  description: false,
106
107
  version: false,
107
108
  flags: {
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
- alias: "since",
500
+ aliases: ["since"],
500
501
  type: "number",
501
502
  default: 0,
502
503
  },
503
504
  to: {
504
- alias: "until",
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
- alias: "prd",
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
- alias: "prd",
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,
@@ -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
- alias: "since",
519
+ aliases: ["since"],
519
520
  type: "string",
520
521
  },
521
522
  to: {
522
- alias: "until",
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
- alias: "since",
177
+ aliases: ["since"],
177
178
  type: "number",
178
179
  default: 0,
179
180
  },
180
181
  to: {
181
- alias: "until",
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
@@ -86,6 +86,7 @@ ${
86
86
  --verbose Output debug messages
87
87
  `,
88
88
  {
89
+ importMeta: import.meta,
89
90
  description: false,
90
91
  version: false,
91
92
  flags: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@certik/skynet",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Skynet Shared JS library",
5
5
  "type": "module",
6
6
  "main": "index.js",
File without changes
File without changes
File without changes
File without changes