aeria-sdk 0.0.61 → 0.0.63

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/mirror.js CHANGED
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.mirrorRemotely = exports.writeMirrorFiles = exports.runtimeEsm = exports.runtimeCjs = void 0;
7
- const path_1 = __importDefault(require("path"));
4
+ const path = require("path");
8
5
  const common_1 = require("@aeriajs/common");
9
6
  const promises_1 = require("fs/promises");
10
7
  const topLevel_js_1 = require("./topLevel.js");
@@ -107,13 +104,13 @@ export default aeria
107
104
  \n`;
108
105
  exports.runtimeEsm = runtimeEsm;
109
106
  const writeMirrorFiles = async (mirror, config, filesPath = process.cwd()) => {
110
- const runtimeBase = path_1.default.dirname(require.resolve('aeria-sdk'));
107
+ const runtimeBase = path.dirname(require.resolve('aeria-sdk'));
111
108
  await (0, promises_1.mkdir)(runtimeBase, {
112
109
  recursive: true,
113
110
  });
114
- await (0, promises_1.writeFile)(path_1.default.join(filesPath, 'aeria-sdk.d.ts'), mirrorDts(mirror, config));
115
- await (0, promises_1.writeFile)(path_1.default.join(runtimeBase, 'runtime.js'), (0, exports.runtimeCjs)(config));
116
- await (0, promises_1.writeFile)(path_1.default.join(runtimeBase, 'runtime.mjs'), (0, exports.runtimeEsm)(config));
111
+ await (0, promises_1.writeFile)(path.join(filesPath, 'aeria-sdk.d.ts'), mirrorDts(mirror, config));
112
+ await (0, promises_1.writeFile)(path.join(runtimeBase, 'runtime.js'), (0, exports.runtimeCjs)(config));
113
+ await (0, promises_1.writeFile)(path.join(runtimeBase, 'runtime.mjs'), (0, exports.runtimeEsm)(config));
117
114
  };
118
115
  exports.writeMirrorFiles = writeMirrorFiles;
119
116
  const mirrorRemotely = async (config) => {
package/dist/mirror.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- import path from "path";
2
+ import * as path from "path";
3
3
  import { deserialize } from "@aeriajs/common";
4
4
  import { writeFile, mkdir } from "fs/promises";
5
5
  import { topLevel } from "./topLevel.mjs";
package/dist/utils.js CHANGED
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.getConfig = exports.publicUrl = void 0;
7
4
  const common_1 = require("@aeriajs/common");
8
- const path_1 = __importDefault(require("path"));
5
+ const path = require("path");
9
6
  const publicUrl = (config) => {
10
7
  if (typeof config.publicUrl === 'string') {
11
8
  return config.publicUrl;
@@ -16,7 +13,7 @@ const publicUrl = (config) => {
16
13
  };
17
14
  exports.publicUrl = publicUrl;
18
15
  const getConfig = async () => {
19
- const { aeriaSdk } = await (0, common_1.dynamicImport)(path_1.default.join(process.cwd(), 'package.json'));
16
+ const { aeriaSdk } = await (0, common_1.dynamicImport)(path.join(process.cwd(), 'package.json'));
20
17
  if (typeof aeriaSdk !== 'object' || !aeriaSdk) {
21
18
  throw new Error('aeriaSdk is absent in package.json');
22
19
  }
package/dist/utils.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  import { dynamicImport } from "@aeriajs/common";
3
- import path from "path";
3
+ import * as path from "path";
4
4
  export const publicUrl = (config) => {
5
5
  if (typeof config.publicUrl === "string") {
6
6
  return config.publicUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aeria-sdk",
3
- "version": "0.0.61",
3
+ "version": "0.0.63",
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.38",
64
- "@aeriajs/types": "^0.0.35"
63
+ "@aeriajs/common": "^0.0.40",
64
+ "@aeriajs/types": "^0.0.37"
65
65
  },
66
66
  "scripts": {
67
67
  "test": "echo skipping",