aeria-sdk 0.0.62 → 0.0.64
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 +5 -8
- package/dist/mirror.mjs +1 -1
- package/dist/utils.js +2 -5
- package/dist/utils.mjs +1 -1
- package/package.json +3 -3
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
|
|
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 =
|
|
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)(
|
|
115
|
-
await (0, promises_1.writeFile)(
|
|
116
|
-
await (0, promises_1.writeFile)(
|
|
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
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
|
|
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)(
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aeria-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.64",
|
|
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.
|
|
64
|
-
"@aeriajs/types": "^0.0.
|
|
63
|
+
"@aeriajs/common": "^0.0.41",
|
|
64
|
+
"@aeriajs/types": "^0.0.38"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"test": "echo skipping",
|