@jswork/weibo-ckeditor-upload-adpater 1.0.10 → 1.0.12
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/.ncurc.json +5 -0
- package/dist/cjs/index.d.ts +4 -2
- package/dist/cjs/index.js +7 -6
- package/dist/esm/index.d.ts +4 -2
- package/dist/esm/index.js +7 -6
- package/package.json +5 -5
package/.ncurc.json
ADDED
package/dist/cjs/index.d.ts
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
* name: @jswork/weibo-ckeditor-upload-adpater
|
|
3
3
|
* description: Weibo ckeditor upload adapter.
|
|
4
4
|
* homepage:
|
|
5
|
-
* version: 1.0.
|
|
6
|
-
* date:
|
|
5
|
+
* version: 1.0.12
|
|
6
|
+
* date: 2024-08-15 20:54:14
|
|
7
7
|
* license: MIT
|
|
8
8
|
*/
|
|
9
|
+
import '@jswork/next-weibo-oss';
|
|
10
|
+
import '@afeiship/next-leancloud-options';
|
|
9
11
|
export default class {
|
|
10
12
|
private loader;
|
|
11
13
|
private lcOpts;
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* name: @jswork/weibo-ckeditor-upload-adpater
|
|
4
4
|
* description: Weibo ckeditor upload adapter.
|
|
5
5
|
* homepage:
|
|
6
|
-
* version: 1.0.
|
|
7
|
-
* date:
|
|
6
|
+
* version: 1.0.12
|
|
7
|
+
* date: 2024-08-15 20:54:14
|
|
8
8
|
* license: MIT
|
|
9
9
|
*/
|
|
10
10
|
var __assign = (this && this.__assign) || function () {
|
|
@@ -22,8 +22,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
22
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
var
|
|
26
|
-
|
|
25
|
+
var next_1 = __importDefault(require("@jswork/next"));
|
|
26
|
+
require("@jswork/next-weibo-oss");
|
|
27
|
+
require("@afeiship/next-leancloud-options");
|
|
27
28
|
var WEIBO_LC_ID = '60f768f6d9f1465d3b1d5c43';
|
|
28
29
|
var fetch = window.fetch.bind(window);
|
|
29
30
|
var defaults = {
|
|
@@ -32,7 +33,7 @@ var defaults = {
|
|
|
32
33
|
var default_1 = /** @class */ (function () {
|
|
33
34
|
function default_1(inLoader, inOptions) {
|
|
34
35
|
this.loader = inLoader;
|
|
35
|
-
this.lcOpts = new
|
|
36
|
+
this.lcOpts = new next_1.default.LeancloudOptions({ fetch: fetch, id: WEIBO_LC_ID });
|
|
36
37
|
this.options = __assign(__assign({}, defaults), inOptions);
|
|
37
38
|
}
|
|
38
39
|
default_1.prototype.upload = function () {
|
|
@@ -59,7 +60,7 @@ var default_1 = /** @class */ (function () {
|
|
|
59
60
|
var baseURL = this.options.baseURL;
|
|
60
61
|
return new Promise(function (resolve) {
|
|
61
62
|
_this.lcOpts.get().then(function (res) {
|
|
62
|
-
_this.weiboOss = new
|
|
63
|
+
_this.weiboOss = new next_1.default.WeiboOss(res.value, { baseURL: baseURL });
|
|
63
64
|
resolve(_this.weiboOss);
|
|
64
65
|
});
|
|
65
66
|
});
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
* name: @jswork/weibo-ckeditor-upload-adpater
|
|
3
3
|
* description: Weibo ckeditor upload adapter.
|
|
4
4
|
* homepage:
|
|
5
|
-
* version: 1.0.
|
|
6
|
-
* date:
|
|
5
|
+
* version: 1.0.12
|
|
6
|
+
* date: 2024-08-15 20:54:16
|
|
7
7
|
* license: MIT
|
|
8
8
|
*/
|
|
9
|
+
import '@jswork/next-weibo-oss';
|
|
10
|
+
import '@afeiship/next-leancloud-options';
|
|
9
11
|
export default class {
|
|
10
12
|
private loader;
|
|
11
13
|
private lcOpts;
|
package/dist/esm/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* name: @jswork/weibo-ckeditor-upload-adpater
|
|
3
3
|
* description: Weibo ckeditor upload adapter.
|
|
4
4
|
* homepage:
|
|
5
|
-
* version: 1.0.
|
|
6
|
-
* date:
|
|
5
|
+
* version: 1.0.12
|
|
6
|
+
* date: 2024-08-15 20:54:16
|
|
7
7
|
* license: MIT
|
|
8
8
|
*/
|
|
9
9
|
var __assign = (this && this.__assign) || function () {
|
|
@@ -17,8 +17,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
17
17
|
};
|
|
18
18
|
return __assign.apply(this, arguments);
|
|
19
19
|
};
|
|
20
|
-
import
|
|
21
|
-
import
|
|
20
|
+
import nx from '@jswork/next';
|
|
21
|
+
import '@jswork/next-weibo-oss';
|
|
22
|
+
import '@afeiship/next-leancloud-options';
|
|
22
23
|
var WEIBO_LC_ID = '60f768f6d9f1465d3b1d5c43';
|
|
23
24
|
var fetch = window.fetch.bind(window);
|
|
24
25
|
var defaults = {
|
|
@@ -27,7 +28,7 @@ var defaults = {
|
|
|
27
28
|
var default_1 = /** @class */ (function () {
|
|
28
29
|
function default_1(inLoader, inOptions) {
|
|
29
30
|
this.loader = inLoader;
|
|
30
|
-
this.lcOpts = new
|
|
31
|
+
this.lcOpts = new nx.LeancloudOptions({ fetch: fetch, id: WEIBO_LC_ID });
|
|
31
32
|
this.options = __assign(__assign({}, defaults), inOptions);
|
|
32
33
|
}
|
|
33
34
|
default_1.prototype.upload = function () {
|
|
@@ -54,7 +55,7 @@ var default_1 = /** @class */ (function () {
|
|
|
54
55
|
var baseURL = this.options.baseURL;
|
|
55
56
|
return new Promise(function (resolve) {
|
|
56
57
|
_this.lcOpts.get().then(function (res) {
|
|
57
|
-
_this.weiboOss = new
|
|
58
|
+
_this.weiboOss = new nx.WeiboOss(res.value, { baseURL: baseURL });
|
|
58
59
|
resolve(_this.weiboOss);
|
|
59
60
|
});
|
|
60
61
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jswork/weibo-ckeditor-upload-adpater",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "Weibo ckeditor upload adapter.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"@babel/core": "^7.14.3",
|
|
16
16
|
"@babel/preset-env": "^7.14.2",
|
|
17
17
|
"@babel/preset-typescript": "^7.13.0",
|
|
18
|
-
"@jswork/gulp-pkg-header": "^1.0.
|
|
18
|
+
"@jswork/gulp-pkg-header": "^1.0.11",
|
|
19
|
+
"@jswork/next": "^1.2.4",
|
|
19
20
|
"@types/jest": "^26.0.23",
|
|
20
21
|
"babel-jest": "^27.0.1",
|
|
21
22
|
"del": "^5.1.0",
|
|
@@ -38,9 +39,8 @@
|
|
|
38
39
|
"registry": "https://registry.npmjs.org"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@afeiship/next-leancloud-options": "^1.0.
|
|
42
|
-
"@jswork/next": "^1.1.
|
|
43
|
-
"@jswork/next-weibo-oss": "^1.0.3"
|
|
42
|
+
"@afeiship/next-leancloud-options": "^1.0.17",
|
|
43
|
+
"@jswork/next-weibo-oss": "^1.1.2"
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"weibo",
|