@smart100/spu-web-plugin 0.0.1 → 0.0.2

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.
@@ -1,162 +1,162 @@
1
- {
2
- "_args": [
3
- [
4
- "ali-oss@5.3.2",
5
- "c:\\code\\ImageDoDown"
6
- ]
7
- ],
8
- "_from": "ali-oss@5.3.2",
9
- "_id": "ali-oss@5.3.2",
10
- "_inBundle": false,
11
- "_integrity": "sha1-ESWQYsg4ECFJvWJsrA6CtROrvcE=",
12
- "_location": "/ali-oss",
13
- "_phantomChildren": {},
14
- "_requested": {
15
- "type": "version",
16
- "registry": true,
17
- "raw": "ali-oss@5.3.2",
18
- "name": "ali-oss",
19
- "escapedName": "ali-oss",
20
- "rawSpec": "5.3.2",
21
- "saveSpec": null,
22
- "fetchSpec": "5.3.2"
23
- },
24
- "_requiredBy": [
25
- "/"
26
- ],
27
- "_resolved": "https://registry.npm.taobao.org/ali-oss/download/ali-oss-5.3.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fali-oss%2Fdownload%2Fali-oss-5.3.2.tgz",
28
- "_spec": "5.3.2",
29
- "_where": "c:\\code\\ImageDoDown",
30
- "author": {
31
- "name": "dead_horse"
32
- },
33
- "browser": {
34
- "lib/client.js": "./dist/aliyun-oss-sdk.js",
35
- "mime": "./shims/mime.js",
36
- "urllib": "./shims/xhr.js",
37
- "utility": "./shims/utility.js",
38
- "crypto": "./shims/crypto/crypto.js",
39
- "fs": false,
40
- "child_process": false
41
- },
42
- "bugs": {
43
- "url": "https://github.com/aliyun/oss-nodejs-sdk/issues"
44
- },
45
- "dependencies": {
46
- "address": "^1.0.0",
47
- "agentkeepalive": "^3.4.1",
48
- "any-promise": "^1.3.0",
49
- "bowser": "^1.6.0",
50
- "co": "^4.6.0",
51
- "co-defer": "^1.0.0",
52
- "co-gather": "^0.0.1",
53
- "co-priority-queue": "^1.0.3",
54
- "copy-to": "^2.0.1",
55
- "dateformat": "^2.0.0",
56
- "debug": "^2.2.0",
57
- "destroy": "^1.0.4",
58
- "end-or-error": "^1.0.1",
59
- "get-ready": "^1.0.0",
60
- "humanize-ms": "^1.2.0",
61
- "is-type-of": "^1.0.0",
62
- "jstoxml": "^0.2.3",
63
- "merge-descriptors": "^1.0.1",
64
- "mime": "^1.3.4",
65
- "mz-modules": "^2.1.0",
66
- "platform": "^1.3.1",
67
- "sdk-base": "^2.0.1",
68
- "stream-http": "2.8.2",
69
- "stream-wormhole": "^1.0.4",
70
- "urllib": "^2.17.1",
71
- "utility": "^1.8.0",
72
- "xml2js": "^0.4.16"
73
- },
74
- "description": "aliyun oss(object storage service) node client",
75
- "devDependencies": {
76
- "aliasify": "^2.0.0",
77
- "autod": "^2.6.1",
78
- "babel-plugin-transform-runtime": "^6.8.0",
79
- "babel-preset-es2015": "^6.24.1",
80
- "babel-register": "^6.26.0",
81
- "babel-runtime": "^6.6.1",
82
- "babelify": "^7.3.0",
83
- "beautify-benchmark": "^0.2.4",
84
- "benchmark": "^2.1.1",
85
- "bluebird": "^3.1.5",
86
- "browserify": "^13.3.0",
87
- "co-fs": "^1.2.0",
88
- "co-mocha": "^1.2.1",
89
- "crypto-js": "^3.1.9-1",
90
- "eslint": "^4.18.1",
91
- "eslint-config-airbnb": "^16.1.0",
92
- "eslint-plugin-import": "^2.9.0",
93
- "eslint-plugin-jsx-a11y": "^6.0.3",
94
- "eslint-plugin-react": "^7.7.0",
95
- "filereader": "^0.10.3",
96
- "git-pre-hooks": "^1.2.0",
97
- "istanbul": "^0.4.3",
98
- "karma": "^1.7.1",
99
- "karma-browserify": "^5.1.1",
100
- "karma-chrome-launcher": "^2.2.0",
101
- "karma-firefox-launcher": "^1.0.1",
102
- "karma-ie-launcher": "^1.0.0",
103
- "karma-mocha": "^1.3.0",
104
- "karma-safari-launcher": "^1.0.0",
105
- "mm": "^2.0.0",
106
- "mocha": "^3.5.3",
107
- "promise-polyfill": "^6.0.2",
108
- "should": "^11.0.0",
109
- "sinon": "^1.17.7",
110
- "standard-version": "^4.4.0",
111
- "stream-equal": "^1.1.0",
112
- "thunk-mocha": "^1.0.3",
113
- "timemachine": "^0.3.0",
114
- "uglify-js": "^2.8.29",
115
- "watchify": "^3.9.0"
116
- },
117
- "engines": {
118
- "node": ">=8"
119
- },
120
- "files": [
121
- "lib",
122
- "shims",
123
- "dist"
124
- ],
125
- "git-pre-hooks": {
126
- "pre-release": "npm run build-dist",
127
- "post-release": [
128
- "npm run publish-to-npm",
129
- "npm run publish-to-cdn"
130
- ]
131
- },
132
- "homepage": "https://github.com/aliyun/oss-nodejs-sdk",
133
- "keywords": [
134
- "oss",
135
- "client",
136
- "file",
137
- "aliyun"
138
- ],
139
- "license": "MIT",
140
- "main": "lib/client.js",
141
- "name": "ali-oss",
142
- "publishConfig": {
143
- "tag": "latest-5"
144
- },
145
- "repository": {
146
- "type": "git",
147
- "url": "git://github.com/aliyun/oss-nodejs-sdk.git"
148
- },
149
- "scripts": {
150
- "autod": "autod",
151
- "browser-test": "npm run build-test && karma start",
152
- "build-change-log": "standard-version",
153
- "build-dist": "node browser-build.js > dist/aliyun-oss-sdk.js && MINIFY=1 node browser-build.js > dist/aliyun-oss-sdk.min.js",
154
- "build-test": "node browser-build.js > test/browser/build/aliyun-oss-sdk.js && node task/browser-test-build.js > test/browser/build/tests.js",
155
- "jshint": "jshint .",
156
- "publish-to-cdn": "node publish.js",
157
- "publish-to-npm": "node publish-npm-check.js && npm publish",
158
- "test": "mocha -t 60000 -r thunk-mocha -r should test/node/*.test.js",
159
- "test-cov": "istanbul cover node_modules/.bin/_mocha -- -t 60000 -r thunk-mocha -r should test/node/*.test.js"
160
- },
161
- "version": "5.3.2"
162
- }
1
+ {
2
+ "_args": [
3
+ [
4
+ "ali-oss@5.3.2",
5
+ "c:\\code\\ImageDoDown"
6
+ ]
7
+ ],
8
+ "_from": "ali-oss@5.3.2",
9
+ "_id": "ali-oss@5.3.2",
10
+ "_inBundle": false,
11
+ "_integrity": "sha1-ESWQYsg4ECFJvWJsrA6CtROrvcE=",
12
+ "_location": "/ali-oss",
13
+ "_phantomChildren": {},
14
+ "_requested": {
15
+ "type": "version",
16
+ "registry": true,
17
+ "raw": "ali-oss@5.3.2",
18
+ "name": "ali-oss",
19
+ "escapedName": "ali-oss",
20
+ "rawSpec": "5.3.2",
21
+ "saveSpec": null,
22
+ "fetchSpec": "5.3.2"
23
+ },
24
+ "_requiredBy": [
25
+ "/"
26
+ ],
27
+ "_resolved": "https://registry.npm.taobao.org/ali-oss/download/ali-oss-5.3.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fali-oss%2Fdownload%2Fali-oss-5.3.2.tgz",
28
+ "_spec": "5.3.2",
29
+ "_where": "c:\\code\\ImageDoDown",
30
+ "author": {
31
+ "name": "dead_horse"
32
+ },
33
+ "browser": {
34
+ "lib/client.js": "./dist/aliyun-oss-sdk.js",
35
+ "mime": "./shims/mime.js",
36
+ "urllib": "./shims/xhr.js",
37
+ "utility": "./shims/utility.js",
38
+ "crypto": "./shims/crypto/crypto.js",
39
+ "fs": false,
40
+ "child_process": false
41
+ },
42
+ "bugs": {
43
+ "url": "https://github.com/aliyun/oss-nodejs-sdk/issues"
44
+ },
45
+ "dependencies": {
46
+ "address": "^1.0.0",
47
+ "agentkeepalive": "^3.4.1",
48
+ "any-promise": "^1.3.0",
49
+ "bowser": "^1.6.0",
50
+ "co": "^4.6.0",
51
+ "co-defer": "^1.0.0",
52
+ "co-gather": "^0.0.1",
53
+ "co-priority-queue": "^1.0.3",
54
+ "copy-to": "^2.0.1",
55
+ "dateformat": "^2.0.0",
56
+ "debug": "^2.2.0",
57
+ "destroy": "^1.0.4",
58
+ "end-or-error": "^1.0.1",
59
+ "get-ready": "^1.0.0",
60
+ "humanize-ms": "^1.2.0",
61
+ "is-type-of": "^1.0.0",
62
+ "jstoxml": "^0.2.3",
63
+ "merge-descriptors": "^1.0.1",
64
+ "mime": "^1.3.4",
65
+ "mz-modules": "^2.1.0",
66
+ "platform": "^1.3.1",
67
+ "sdk-base": "^2.0.1",
68
+ "stream-http": "2.8.2",
69
+ "stream-wormhole": "^1.0.4",
70
+ "urllib": "^2.17.1",
71
+ "utility": "^1.8.0",
72
+ "xml2js": "^0.4.16"
73
+ },
74
+ "description": "aliyun oss(object storage service) node client",
75
+ "devDependencies": {
76
+ "aliasify": "^2.0.0",
77
+ "autod": "^2.6.1",
78
+ "babel-plugin-transform-runtime": "^6.8.0",
79
+ "babel-preset-es2015": "^6.24.1",
80
+ "babel-register": "^6.26.0",
81
+ "babel-runtime": "^6.6.1",
82
+ "babelify": "^7.3.0",
83
+ "beautify-benchmark": "^0.2.4",
84
+ "benchmark": "^2.1.1",
85
+ "bluebird": "^3.1.5",
86
+ "browserify": "^13.3.0",
87
+ "co-fs": "^1.2.0",
88
+ "co-mocha": "^1.2.1",
89
+ "crypto-js": "^3.1.9-1",
90
+ "eslint": "^4.18.1",
91
+ "eslint-config-airbnb": "^16.1.0",
92
+ "eslint-plugin-import": "^2.9.0",
93
+ "eslint-plugin-jsx-a11y": "^6.0.3",
94
+ "eslint-plugin-react": "^7.7.0",
95
+ "filereader": "^0.10.3",
96
+ "git-pre-hooks": "^1.2.0",
97
+ "istanbul": "^0.4.3",
98
+ "karma": "^1.7.1",
99
+ "karma-browserify": "^5.1.1",
100
+ "karma-chrome-launcher": "^2.2.0",
101
+ "karma-firefox-launcher": "^1.0.1",
102
+ "karma-ie-launcher": "^1.0.0",
103
+ "karma-mocha": "^1.3.0",
104
+ "karma-safari-launcher": "^1.0.0",
105
+ "mm": "^2.0.0",
106
+ "mocha": "^3.5.3",
107
+ "promise-polyfill": "^6.0.2",
108
+ "should": "^11.0.0",
109
+ "sinon": "^1.17.7",
110
+ "standard-version": "^4.4.0",
111
+ "stream-equal": "^1.1.0",
112
+ "thunk-mocha": "^1.0.3",
113
+ "timemachine": "^0.3.0",
114
+ "uglify-js": "^2.8.29",
115
+ "watchify": "^3.9.0"
116
+ },
117
+ "engines": {
118
+ "node": ">=8"
119
+ },
120
+ "files": [
121
+ "lib",
122
+ "shims",
123
+ "dist"
124
+ ],
125
+ "git-pre-hooks": {
126
+ "pre-release": "npm run build-dist",
127
+ "post-release": [
128
+ "npm run publish-to-npm",
129
+ "npm run publish-to-cdn"
130
+ ]
131
+ },
132
+ "homepage": "https://github.com/aliyun/oss-nodejs-sdk",
133
+ "keywords": [
134
+ "oss",
135
+ "client",
136
+ "file",
137
+ "aliyun"
138
+ ],
139
+ "license": "MIT",
140
+ "main": "lib/client.js",
141
+ "name": "ali-oss",
142
+ "publishConfig": {
143
+ "tag": "latest-5"
144
+ },
145
+ "repository": {
146
+ "type": "git",
147
+ "url": "git://github.com/aliyun/oss-nodejs-sdk.git"
148
+ },
149
+ "scripts": {
150
+ "autod": "autod",
151
+ "browser-test": "npm run build-test && karma start",
152
+ "build-change-log": "standard-version",
153
+ "build-dist": "node browser-build.js > dist/aliyun-oss-sdk.js && MINIFY=1 node browser-build.js > dist/aliyun-oss-sdk.min.js",
154
+ "build-test": "node browser-build.js > test/browser/build/aliyun-oss-sdk.js && node task/browser-test-build.js > test/browser/build/tests.js",
155
+ "jshint": "jshint .",
156
+ "publish-to-cdn": "node publish.js",
157
+ "publish-to-npm": "node publish-npm-check.js && npm publish",
158
+ "test": "mocha -t 60000 -r thunk-mocha -r should test/node/*.test.js",
159
+ "test-cov": "istanbul cover node_modules/.bin/_mocha -- -t 60000 -r thunk-mocha -r should test/node/*.test.js"
160
+ },
161
+ "version": "5.3.2"
162
+ }
@@ -0,0 +1,60 @@
1
+ interface IAny {
2
+ [param: string]: any
3
+ }
4
+
5
+ interface SPUWebPluginOptions {
6
+ modulekey: string;
7
+ modulename: string;
8
+ moduleversion: string;
9
+ router: any;
10
+ }
11
+
12
+ type StorageType = 'storage' | 'storage-1d' | 'storage-3m' | 'storage-1y'
13
+
14
+ enum StorageEnum {
15
+ Storage = 'storage',
16
+ Storage1d = 'storage-1d',
17
+ Storage3m = 'storage-3m',
18
+ Storage1y = 'storage-1y'
19
+ }
20
+
21
+ interface NormalizedCloudServItem {
22
+ cloudserv_storage_provider: string
23
+ cloudserv_storage_storagebucket: string
24
+ cloudserv_storage_storageendpoint: string
25
+ cloudserv_storage_storageurl: string
26
+ cloudserv_storage_accesskeyid?: string
27
+ cloudserv_storage_region?: string
28
+ }
29
+
30
+ type NormalizedCloudServ = {
31
+ [key in StorageEnum]?: NormalizedCloudServItem
32
+ }
33
+
34
+ interface IStorage {
35
+ provider: string
36
+ storagebucket: string
37
+ storageendpoint: string
38
+ storageurl: string
39
+ accesskeyid: string
40
+ region: string
41
+ }
42
+
43
+ type ICloudServ = {
44
+ [key in StorageEnum]: IStorage
45
+ }
46
+
47
+ interface IProductVersion {
48
+ code: string
49
+ name: string
50
+ productcode: string
51
+ }
52
+
53
+ interface ITenantInfo {
54
+ accountcode: string
55
+ code: string
56
+ metatype: string
57
+ name: string
58
+ cloudserv: ICloudServ
59
+ productversionlist: IProductVersion[]
60
+ }
@@ -1,84 +1,29 @@
1
- interface IAny {
2
- [param: string]: any
3
- }
4
-
5
- // // 任意函数对象
6
- // interface IFunction {
7
- // [propName: string]: function
1
+ import type { App } from 'vue'
2
+ // import type { AxiosInstance } from 'axios'
3
+
4
+ // interface SPUWebPluginOptions {
5
+ // modulekey: string;
6
+ // modulename: string;
7
+ // moduleversion: string;
8
+ // router: any;
8
9
  // }
9
10
 
10
- // // 提取对象内任意属性,并指向一个字符串,用于别名对象
11
- // type AliasPicker<S extends IAny> = {
12
- // [propName in keyof S]?: string
13
- // }
14
-
15
-
16
-
17
- interface SPUWebPluginOptions {
18
- modulekey: string;
19
- modulename: string;
20
- moduleversion: string;
21
- router: any;
22
- }
23
-
24
- type StorageType = 'storage' | 'storage-1d' | 'storage-3m' | 'storage-1y'
25
-
26
- enum StorageEnum {
27
- Storage = 'storage',
28
- Storage1d = 'storage-1d',
29
- Storage3m = 'storage-3m',
30
- Storage1y = 'storage-1y'
31
- }
32
-
33
- interface NormalizedCloudServItem {
34
- cloudserv_storage_provider: string
35
- cloudserv_storage_storagebucket: string
36
- cloudserv_storage_storageendpoint: string
37
- cloudserv_storage_storageurl: string
38
- cloudserv_storage_accesskeyid?: string
39
- cloudserv_storage_region?: string
40
- }
41
-
42
- type NormalizedCloudServ = {
43
- [key in StorageEnum]?: NormalizedCloudServItem
44
- }
45
-
46
- interface IStorage {
47
- provider: string
48
- storagebucket: string
49
- storageendpoint: string
50
- storageurl: string
51
- accesskeyid: string
52
- region: string
53
- }
54
-
55
- type ICloudServ = {
56
- [key in StorageEnum]: IStorage
57
- }
58
-
59
- interface IProductVersion {
60
- code: string
61
- name: string
62
- productcode: string
63
- }
64
-
65
- interface ITenantInfo {
66
- accountcode: string
67
- code: string
68
- metatype: string
69
- name: string
70
- cloudserv: ICloudServ
71
- productversionlist: IProductVersion[]
72
- }
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
11
+ export const lsProxy: any
12
+ export const ssProxy: any
13
+ export const getLocation: any
14
+ export const getDistance: any
15
+ export const spuAxios: any
16
+ // export const spuAxios: AxiosInstance
17
+ // export const spuAxios: IAny
18
+ export const apaasAxios: any
19
+ export const downloadService: any
20
+ export const uploadService: any
21
+
22
+
23
+ interface ISPUWebPlugin {
24
+ install (app: App, option: SPUWebPluginOptions): void
25
+ // install: any
26
+ version: string
27
+ }
28
+ declare const SPUWebPlugin: ISPUWebPlugin
29
+ export default SPUWebPlugin