@sinoia/hubdoc-tools 1.3.7 → 1.3.8
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.
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.HubDocApiService = void 0;
|
|
7
|
-
const api_1 = require("
|
|
7
|
+
const api_1 = require("../api/api");
|
|
8
8
|
const chalk_1 = __importDefault(require("chalk"));
|
|
9
9
|
const form_data_1 = __importDefault(require("form-data"));
|
|
10
10
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
@@ -9,8 +9,8 @@ const child_process_1 = require("child_process");
|
|
|
9
9
|
const http_1 = __importDefault(require("http"));
|
|
10
10
|
const url_1 = require("url");
|
|
11
11
|
const util_1 = require("util");
|
|
12
|
-
const api_1 = require("
|
|
13
|
-
const configuration_1 = require("
|
|
12
|
+
const api_1 = require("../api/api");
|
|
13
|
+
const configuration_1 = require("../api/configuration");
|
|
14
14
|
const axios_1 = __importDefault(require("axios"));
|
|
15
15
|
const execAsync = (0, util_1.promisify)(child_process_1.exec);
|
|
16
16
|
/**
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PermissionManager = void 0;
|
|
7
|
-
const api_1 = require("
|
|
7
|
+
const api_1 = require("../api/api");
|
|
8
8
|
const chalk_1 = __importDefault(require("chalk"));
|
|
9
9
|
class PermissionManager {
|
|
10
10
|
constructor(config, client) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sinoia/hubdoc-tools",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "Professional command-line tool for HubDoc document management and bulk import/export",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,10 +23,16 @@
|
|
|
23
23
|
"require": "./dist/plugins/*/index.js",
|
|
24
24
|
"import": "./dist/plugins/*/index.js"
|
|
25
25
|
},
|
|
26
|
+
"./api/*": {
|
|
27
|
+
"types": "./dist/api/*.d.ts",
|
|
28
|
+
"require": "./dist/api/*.js",
|
|
29
|
+
"import": "./dist/api/*.js"
|
|
30
|
+
},
|
|
26
31
|
"./package.json": "./package.json"
|
|
27
32
|
},
|
|
28
33
|
"scripts": {
|
|
29
|
-
"build": "npm run build:main && npm run build:plugins",
|
|
34
|
+
"build": "npm run build:main && npm run build:plugins && npm run fix:aliases",
|
|
35
|
+
"fix:aliases": "node scripts/fix-aliases.js",
|
|
30
36
|
"build:main": "tsc --project tsconfig.main.json && tsc-alias -p tsconfig.main.json",
|
|
31
37
|
"build:plugins": "tsc --project tsconfig.plugins.json && tsc-alias -p tsconfig.plugins.json && npm run copy:plugin-manifests",
|
|
32
38
|
"copy:plugin-manifests": "for dir in plugins/*/; do name=$(basename \"$dir\"); [ -f \"$dir/plugin.json\" ] && mkdir -p \"dist/plugins/$name\" && cp \"$dir/plugin.json\" \"dist/plugins/$name/\" || true; done",
|