aeria-sdk 0.0.76 → 0.0.78

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/cli.js CHANGED
@@ -1,9 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const node_util_1 = require("node:util");
3
4
  const mirror_js_1 = require("./mirror.js");
4
5
  const utils_js_1 = require("./utils.js");
6
+ const { values: opts } = (0, node_util_1.parseArgs)({
7
+ options: {
8
+ dev: {
9
+ type: 'boolean',
10
+ short: 'd',
11
+ },
12
+ },
13
+ });
5
14
  const main = async () => {
6
15
  const config = await (0, utils_js_1.getConfig)();
16
+ if (opts.dev) {
17
+ config.environment = 'development';
18
+ }
7
19
  (0, mirror_js_1.mirrorRemotely)(config);
8
20
  };
9
21
  main();
package/dist/cli.mjs CHANGED
@@ -1,8 +1,20 @@
1
1
  "use strict";
2
+ import { parseArgs } from "node:util";
2
3
  import { mirrorRemotely } from "./mirror.mjs";
3
4
  import { getConfig } from "./utils.mjs";
5
+ const { values: opts } = parseArgs({
6
+ options: {
7
+ dev: {
8
+ type: "boolean",
9
+ short: "d"
10
+ }
11
+ }
12
+ });
4
13
  const main = async () => {
5
14
  const config = await getConfig();
15
+ if (opts.dev) {
16
+ config.environment = "development";
17
+ }
6
18
  mirrorRemotely(config);
7
19
  };
8
20
  main();
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { left, right, isLeft, isRight, unwrapEither, unsafe, } from '@aeriajs/common/either';
1
+ export { left, right, isLeft, isRight, unwrapEither, error, isError, unwrapError, unsafe, } from '@aeriajs/common';
2
2
  export * from './auth.js';
3
3
  export * from './topLevel.js';
4
4
  export * from './constants.js';
package/dist/index.js CHANGED
@@ -14,14 +14,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.unsafe = exports.unwrapEither = exports.isRight = exports.isLeft = exports.right = exports.left = void 0;
18
- var either_1 = require("@aeriajs/common/either");
19
- Object.defineProperty(exports, "left", { enumerable: true, get: function () { return either_1.left; } });
20
- Object.defineProperty(exports, "right", { enumerable: true, get: function () { return either_1.right; } });
21
- Object.defineProperty(exports, "isLeft", { enumerable: true, get: function () { return either_1.isLeft; } });
22
- Object.defineProperty(exports, "isRight", { enumerable: true, get: function () { return either_1.isRight; } });
23
- Object.defineProperty(exports, "unwrapEither", { enumerable: true, get: function () { return either_1.unwrapEither; } });
24
- Object.defineProperty(exports, "unsafe", { enumerable: true, get: function () { return either_1.unsafe; } });
17
+ exports.unsafe = exports.unwrapError = exports.isError = exports.error = exports.unwrapEither = exports.isRight = exports.isLeft = exports.right = exports.left = void 0;
18
+ var common_1 = require("@aeriajs/common");
19
+ Object.defineProperty(exports, "left", { enumerable: true, get: function () { return common_1.left; } });
20
+ Object.defineProperty(exports, "right", { enumerable: true, get: function () { return common_1.right; } });
21
+ Object.defineProperty(exports, "isLeft", { enumerable: true, get: function () { return common_1.isLeft; } });
22
+ Object.defineProperty(exports, "isRight", { enumerable: true, get: function () { return common_1.isRight; } });
23
+ Object.defineProperty(exports, "unwrapEither", { enumerable: true, get: function () { return common_1.unwrapEither; } });
24
+ Object.defineProperty(exports, "error", { enumerable: true, get: function () { return common_1.error; } });
25
+ Object.defineProperty(exports, "isError", { enumerable: true, get: function () { return common_1.isError; } });
26
+ Object.defineProperty(exports, "unwrapError", { enumerable: true, get: function () { return common_1.unwrapError; } });
27
+ Object.defineProperty(exports, "unsafe", { enumerable: true, get: function () { return common_1.unsafe; } });
25
28
  __exportStar(require("./auth.js"), exports);
26
29
  __exportStar(require("./topLevel.js"), exports);
27
30
  __exportStar(require("./constants.js"), exports);
package/dist/index.mjs CHANGED
@@ -5,8 +5,11 @@ export {
5
5
  isLeft,
6
6
  isRight,
7
7
  unwrapEither,
8
+ error,
9
+ isError,
10
+ unwrapError,
8
11
  unsafe
9
- } from "@aeriajs/common/either";
12
+ } from "@aeriajs/common";
10
13
  export * from "./auth.mjs";
11
14
  export * from "./topLevel.mjs";
12
15
  export * from "./constants.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aeria-sdk",
3
- "version": "0.0.76",
3
+ "version": "0.0.78",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -60,8 +60,8 @@
60
60
  "@aeriajs/types": "link:../types"
61
61
  },
62
62
  "peerDependencies": {
63
- "@aeriajs/common": "^0.0.53",
64
- "@aeriajs/types": "^0.0.50"
63
+ "@aeriajs/common": "^0.0.55",
64
+ "@aeriajs/types": "^0.0.52"
65
65
  },
66
66
  "scripts": {
67
67
  "test": "echo skipping",