parent
07fef7a563
commit
d3a0e2503c
@ -1 +1,2 @@ |
|||||||
unpackage/ |
unpackage/ |
||||||
|
node_modules |
@ -1,30 +0,0 @@ |
|||||||
# jweixin-module |
|
||||||
|
|
||||||
微信JS-SDK |
|
||||||
|
|
||||||
## 安装 |
|
||||||
|
|
||||||
### NPM |
|
||||||
|
|
||||||
```shell |
|
||||||
npm install jweixin-module --save |
|
||||||
``` |
|
||||||
|
|
||||||
### UMD |
|
||||||
|
|
||||||
```http |
|
||||||
https://unpkg.com/jweixin-module/out/index.js |
|
||||||
``` |
|
||||||
|
|
||||||
## 使用 |
|
||||||
|
|
||||||
```js |
|
||||||
var jweixin = require('jweixin-module') |
|
||||||
jweixin.ready(function(){ |
|
||||||
// TODO |
|
||||||
}); |
|
||||||
``` |
|
||||||
|
|
||||||
## 完整API |
|
||||||
|
|
||||||
>[微信JS-SDK说明文档](https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141115) |
|
File diff suppressed because one or more lines are too long
@ -1,54 +0,0 @@ |
|||||||
{ |
|
||||||
"_from": "jweixin-module", |
|
||||||
"_id": "jweixin-module@1.6.0", |
|
||||||
"_inBundle": false, |
|
||||||
"_integrity": "sha512-dGk9cf+ipipHmtzYmKZs5B2toX+p4hLyllGLF6xuC8t+B05oYxd8fYoaRz0T30U2n3RUv8a4iwvjhA+OcYz52w==", |
|
||||||
"_location": "/jweixin-module", |
|
||||||
"_phantomChildren": {}, |
|
||||||
"_requested": { |
|
||||||
"type": "tag", |
|
||||||
"registry": true, |
|
||||||
"raw": "jweixin-module", |
|
||||||
"name": "jweixin-module", |
|
||||||
"escapedName": "jweixin-module", |
|
||||||
"rawSpec": "", |
|
||||||
"saveSpec": null, |
|
||||||
"fetchSpec": "latest" |
|
||||||
}, |
|
||||||
"_requiredBy": [ |
|
||||||
"#USER", |
|
||||||
"/" |
|
||||||
], |
|
||||||
"_resolved": "https://registry.npmjs.org/jweixin-module/-/jweixin-module-1.6.0.tgz", |
|
||||||
"_shasum": "4a7ea614083e3c9c3f49e2fdc2bb882cfa58dfcd", |
|
||||||
"_spec": "jweixin-module", |
|
||||||
"_where": "D:\\Documents\\high-mini", |
|
||||||
"author": { |
|
||||||
"name": "Shengqiang Guo" |
|
||||||
}, |
|
||||||
"bugs": { |
|
||||||
"url": "https://github.com/zhetengbiji/jweixin-module/issues" |
|
||||||
}, |
|
||||||
"bundleDependencies": false, |
|
||||||
"deprecated": false, |
|
||||||
"description": "微信JS-SDK", |
|
||||||
"devDependencies": {}, |
|
||||||
"homepage": "https://github.com/zhetengbiji/jweixin-module#readme", |
|
||||||
"keywords": [ |
|
||||||
"wxjssdk", |
|
||||||
"weixin", |
|
||||||
"jweixin", |
|
||||||
"wechat", |
|
||||||
"jssdk", |
|
||||||
"wx" |
|
||||||
], |
|
||||||
"license": "ISC", |
|
||||||
"main": "lib/index.js", |
|
||||||
"name": "jweixin-module", |
|
||||||
"repository": { |
|
||||||
"type": "git", |
|
||||||
"url": "git+https://github.com/zhetengbiji/jweixin-module.git" |
|
||||||
}, |
|
||||||
"scripts": {}, |
|
||||||
"version": "1.6.0" |
|
||||||
} |
|
@ -1,21 +1,21 @@ |
|||||||
MIT License |
MIT License |
||||||
|
|
||||||
Copyright (c) 2020 LancerComet |
Copyright (c) 2020 LancerComet |
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy |
Permission is hereby granted, free of charge, to any person obtaining a copy |
||||||
of this software and associated documentation files (the "Software"), to deal |
of this software and associated documentation files (the "Software"), to deal |
||||||
in the Software without restriction, including without limitation the rights |
in the Software without restriction, including without limitation the rights |
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||||
copies of the Software, and to permit persons to whom the Software is |
copies of the Software, and to permit persons to whom the Software is |
||||||
furnished to do so, subject to the following conditions: |
furnished to do so, subject to the following conditions: |
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all |
The above copyright notice and this permission notice shall be included in all |
||||||
copies or substantial portions of the Software. |
copies or substantial portions of the Software. |
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||||
SOFTWARE. |
SOFTWARE. |
||||||
|
@ -1,153 +1,153 @@ |
|||||||
# Vue-jsonp |
# Vue-jsonp |
||||||
|
|
||||||
[![VueJsonp](https://github.com/LancerComet/vue-jsonp/workflows/Test/badge.svg)](https://github.com/LancerComet/vue-jsonp/actions) |
[![VueJsonp](https://github.com/LancerComet/vue-jsonp/workflows/Test/badge.svg)](https://github.com/LancerComet/vue-jsonp/actions) |
||||||
|
|
||||||
A tiny library for handling JSONP request. |
A tiny library for handling JSONP request. |
||||||
|
|
||||||
## Quick Start |
## Quick Start |
||||||
|
|
||||||
As Vue plugin: |
As Vue plugin: |
||||||
|
|
||||||
```ts |
```ts |
||||||
import { VueJsonp } from 'vue-jsonp' |
import { VueJsonp } from 'vue-jsonp' |
||||||
|
|
||||||
// Vue Plugin. |
// Vue Plugin. |
||||||
Vue.use(VueJsonp) |
Vue.use(VueJsonp) |
||||||
|
|
||||||
// Now you can use this.$jsonp in Vue components. |
// Now you can use this.$jsonp in Vue components. |
||||||
const vm = new Vue() |
const vm = new Vue() |
||||||
vm.$jsonp('/some-jsonp-url', { |
vm.$jsonp('/some-jsonp-url', { |
||||||
myCustomUrlParam: 'veryNice' |
myCustomUrlParam: 'veryNice' |
||||||
}) |
}) |
||||||
``` |
``` |
||||||
|
|
||||||
Use function directly: |
Use function directly: |
||||||
|
|
||||||
```ts |
```ts |
||||||
import { jsonp } from 'vue-jsonp' |
import { jsonp } from 'vue-jsonp' |
||||||
|
|
||||||
jsonp('/some-jsonp-url', { |
jsonp('/some-jsonp-url', { |
||||||
myCustomUrlParam: 'veryNice' |
myCustomUrlParam: 'veryNice' |
||||||
}) |
}) |
||||||
``` |
``` |
||||||
|
|
||||||
## Send data and set query & function name |
## Send data and set query & function name |
||||||
|
|
||||||
### Send data |
### Send data |
||||||
|
|
||||||
```ts |
```ts |
||||||
// The request url will be "/some-jsonp-url?name=LancerComet&age=100&callback=jsonp_{RANDOM_STR}". |
// The request url will be "/some-jsonp-url?name=LancerComet&age=100&callback=jsonp_{RANDOM_STR}". |
||||||
jsonp('/some-jsonp-url', { |
jsonp('/some-jsonp-url', { |
||||||
name: 'LancerComet', |
name: 'LancerComet', |
||||||
age: 100 |
age: 100 |
||||||
}) |
}) |
||||||
``` |
``` |
||||||
|
|
||||||
### Custom query & function name |
### Custom query & function name |
||||||
|
|
||||||
The url uniform is `/url?{callbackQuery}={callbackName}&...`, the default is `/url?callback=jsonp_{RANDOM_STRING}&...`. |
The url uniform is `/url?{callbackQuery}={callbackName}&...`, the default is `/url?callback=jsonp_{RANDOM_STRING}&...`. |
||||||
|
|
||||||
And you can change it like this: |
And you can change it like this: |
||||||
|
|
||||||
```ts |
```ts |
||||||
// The request url will be "/some-jsonp-url?name=LancerComet&age=100&cb=jsonp_func". |
// The request url will be "/some-jsonp-url?name=LancerComet&age=100&cb=jsonp_func". |
||||||
jsonp('/some-jsonp-url', { |
jsonp('/some-jsonp-url', { |
||||||
callbackQuery: 'cb', |
callbackQuery: 'cb', |
||||||
callbackName: 'jsonp_func', |
callbackName: 'jsonp_func', |
||||||
name: 'LancerComet', |
name: 'LancerComet', |
||||||
age: 100 |
age: 100 |
||||||
}) |
}) |
||||||
``` |
``` |
||||||
|
|
||||||
## Module exports |
## Module exports |
||||||
|
|
||||||
- `VueJsonp: PluginObject<never>` |
- `VueJsonp: PluginObject<never>` |
||||||
|
|
||||||
- `jsonp<T>: (url: string, param?: IJsonpParam, timeout?: number) => Promise<T>` |
- `jsonp<T>: (url: string, param?: IJsonpParam, timeout?: number) => Promise<T>` |
||||||
|
|
||||||
## API |
## API |
||||||
|
|
||||||
### IJsonpParam |
### IJsonpParam |
||||||
|
|
||||||
IJsonpParam is the type of param for jsonp function. |
IJsonpParam is the type of param for jsonp function. |
||||||
|
|
||||||
```ts |
```ts |
||||||
/** |
/** |
||||||
* JSONP parameter declaration. |
* JSONP parameter declaration. |
||||||
*/ |
*/ |
||||||
interface IJsonpParam { |
interface IJsonpParam { |
||||||
/** |
/** |
||||||
* Callback query name. |
* Callback query name. |
||||||
* This param is used to define the query name of the callback function. |
* This param is used to define the query name of the callback function. |
||||||
* |
* |
||||||
* @example |
* @example |
||||||
* // The request url will be "/some-url?myCallback=jsonp_func&myCustomUrlParam=veryNice" |
* // The request url will be "/some-url?myCallback=jsonp_func&myCustomUrlParam=veryNice" |
||||||
* jsonp('/some-url', { |
* jsonp('/some-url', { |
||||||
* callbackQuery: 'myCallback', |
* callbackQuery: 'myCallback', |
||||||
* callbackName: 'jsonp_func', |
* callbackName: 'jsonp_func', |
||||||
* myCustomUrlParam: 'veryNice' |
* myCustomUrlParam: 'veryNice' |
||||||
* }) |
* }) |
||||||
* |
* |
||||||
* @default callback |
* @default callback |
||||||
*/ |
*/ |
||||||
callbackQuery?: string |
callbackQuery?: string |
||||||
|
|
||||||
/** |
/** |
||||||
* Callback function name. |
* Callback function name. |
||||||
* This param is used to define the jsonp function name. |
* This param is used to define the jsonp function name. |
||||||
* |
* |
||||||
* @example |
* @example |
||||||
* // The request url will be "/some-url?myCallback=jsonp_func&myCustomUrlParam=veryNice" |
* // The request url will be "/some-url?myCallback=jsonp_func&myCustomUrlParam=veryNice" |
||||||
* jsonp('/some-url', { |
* jsonp('/some-url', { |
||||||
* callbackQuery: 'myCallback', |
* callbackQuery: 'myCallback', |
||||||
* callbackName: 'jsonp_func', |
* callbackName: 'jsonp_func', |
||||||
* myCustomUrlParam: 'veryNice' |
* myCustomUrlParam: 'veryNice' |
||||||
* }) |
* }) |
||||||
* |
* |
||||||
* @default jsonp_ + randomStr() |
* @default jsonp_ + randomStr() |
||||||
*/ |
*/ |
||||||
callbackName?: string |
callbackName?: string |
||||||
|
|
||||||
/** |
/** |
||||||
* Custom data. |
* Custom data. |
||||||
*/ |
*/ |
||||||
[key: string]: any |
[key: string]: any |
||||||
} |
} |
||||||
``` |
``` |
||||||
|
|
||||||
## Example |
## Example |
||||||
|
|
||||||
```ts |
```ts |
||||||
import Vue from 'vue' |
import Vue from 'vue' |
||||||
import { VueJsonp } from 'vue-jsonp' |
import { VueJsonp } from 'vue-jsonp' |
||||||
|
|
||||||
Vue.use(VueJsonp) |
Vue.use(VueJsonp) |
||||||
|
|
||||||
const vm = new Vue() |
const vm = new Vue() |
||||||
const { code, data, message } = await vm.$jsonp<{ |
const { code, data, message } = await vm.$jsonp<{ |
||||||
code: number, |
code: number, |
||||||
message: string, |
message: string, |
||||||
data: { |
data: { |
||||||
id: number, |
id: number, |
||||||
nickname: string |
nickname: string |
||||||
} |
} |
||||||
}>('/my-awesome-url', { |
}>('/my-awesome-url', { |
||||||
name: 'MyName', age: 20 |
name: 'MyName', age: 20 |
||||||
}) |
}) |
||||||
|
|
||||||
assert(code === 0) |
assert(code === 0) |
||||||
assert(message === 'ok') |
assert(message === 'ok') |
||||||
assert(data.id === 1) |
assert(data.id === 1) |
||||||
assert(data.nickname === 'John Smith') |
assert(data.nickname === 'John Smith') |
||||||
``` |
``` |
||||||
|
|
||||||
```ts |
```ts |
||||||
import { jsonp } from 'vue-jsonp' |
import { jsonp } from 'vue-jsonp' |
||||||
|
|
||||||
const result = await jsonp<string>('/my-awesome-url') |
const result = await jsonp<string>('/my-awesome-url') |
||||||
assert(result === 'such a jsonp') |
assert(result === 'such a jsonp') |
||||||
``` |
``` |
||||||
|
|
||||||
## License |
## License |
||||||
|
|
||||||
MIT |
MIT |
||||||
|
@ -1,73 +1,73 @@ |
|||||||
/** |
/** |
||||||
* Vue Jsonp. |
* Vue Jsonp. |
||||||
* # Carry Your World # |
* # Carry Your World # |
||||||
* |
* |
||||||
* @author: LancerComet |
* @author: LancerComet |
||||||
* @license: MIT |
* @license: MIT |
||||||
*/ |
*/ |
||||||
import { PluginObject } from 'vue/types/plugin'; |
import { PluginObject } from 'vue/types/plugin'; |
||||||
declare module 'vue/types/vue' { |
declare module 'vue/types/vue' { |
||||||
interface Vue { |
interface Vue { |
||||||
$jsonp: typeof jsonp; |
$jsonp: typeof jsonp; |
||||||
} |
} |
||||||
} |
} |
||||||
/** |
/** |
||||||
* Vue JSONP. |
* Vue JSONP. |
||||||
*/ |
*/ |
||||||
declare const VueJsonp: PluginObject<never>; |
declare const VueJsonp: PluginObject<never>; |
||||||
/** |
/** |
||||||
* JSONP function. |
* JSONP function. |
||||||
* |
* |
||||||
* @param { string } url Target URL address. |
* @param { string } url Target URL address. |
||||||
* @param { IJsonpParam } param Querying params object. |
* @param { IJsonpParam } param Querying params object. |
||||||
* @param { number } timeout Timeout setting (ms). |
* @param { number } timeout Timeout setting (ms). |
||||||
* |
* |
||||||
* @example |
* @example |
||||||
* jsonp('/url', { |
* jsonp('/url', { |
||||||
* callbackQuery: '' |
* callbackQuery: '' |
||||||
* callbackName: '', |
* callbackName: '', |
||||||
* name: 'LancerComet', |
* name: 'LancerComet', |
||||||
* age: 26 |
* age: 26 |
||||||
* }, 1000) |
* }, 1000) |
||||||
*/ |
*/ |
||||||
declare function jsonp<T = any>(url: string, param?: IJsonpParam, timeout?: number): Promise<T>; |
declare function jsonp<T = any>(url: string, param?: IJsonpParam, timeout?: number): Promise<T>; |
||||||
export { VueJsonp, jsonp }; |
export { VueJsonp, jsonp }; |
||||||
/** |
/** |
||||||
* JSONP parameter declaration. |
* JSONP parameter declaration. |
||||||
*/ |
*/ |
||||||
interface IJsonpParam { |
interface IJsonpParam { |
||||||
/** |
/** |
||||||
* Callback query name. |
* Callback query name. |
||||||
* This param is used to define the query name of the callback function. |
* This param is used to define the query name of the callback function. |
||||||
* |
* |
||||||
* @example |
* @example |
||||||
* // The request url will be "/some-url?myCallback=jsonp_func&myCustomUrlParam=veryNice"
|
* // The request url will be "/some-url?myCallback=jsonp_func&myCustomUrlParam=veryNice"
|
||||||
* jsonp('/some-url', { |
* jsonp('/some-url', { |
||||||
* callbackQuery: 'myCallback', |
* callbackQuery: 'myCallback', |
||||||
* callbackName: 'jsonp_func', |
* callbackName: 'jsonp_func', |
||||||
* myCustomUrlParam: 'veryNice' |
* myCustomUrlParam: 'veryNice' |
||||||
* }) |
* }) |
||||||
* |
* |
||||||
* @default callback |
* @default callback |
||||||
*/ |
*/ |
||||||
callbackQuery?: string; |
callbackQuery?: string; |
||||||
/** |
/** |
||||||
* Callback function name. |
* Callback function name. |
||||||
* This param is used to define the jsonp function name. |
* This param is used to define the jsonp function name. |
||||||
* |
* |
||||||
* @example |
* @example |
||||||
* // The request url will be "/some-url?myCallback=jsonp_func&myCustomUrlParam=veryNice"
|
* // The request url will be "/some-url?myCallback=jsonp_func&myCustomUrlParam=veryNice"
|
||||||
* jsonp('/some-url', { |
* jsonp('/some-url', { |
||||||
* callbackQuery: 'myCallback', |
* callbackQuery: 'myCallback', |
||||||
* callbackName: 'jsonp_func', |
* callbackName: 'jsonp_func', |
||||||
* myCustomUrlParam: 'veryNice' |
* myCustomUrlParam: 'veryNice' |
||||||
* }) |
* }) |
||||||
* |
* |
||||||
* @default jsonp_ + randomStr() |
* @default jsonp_ + randomStr() |
||||||
*/ |
*/ |
||||||
callbackName?: string; |
callbackName?: string; |
||||||
/** |
/** |
||||||
* Custom data. |
* Custom data. |
||||||
*/ |
*/ |
||||||
[key: string]: any; |
[key: string]: any; |
||||||
} |
} |
||||||
|
@ -1,20 +1,20 @@ |
|||||||
/** |
/** |
||||||
* Generate random string. |
* Generate random string. |
||||||
* |
* |
||||||
* @return { string } |
* @return { string } |
||||||
*/ |
*/ |
||||||
declare function randomStr(): string; |
declare function randomStr(): string; |
||||||
/** |
/** |
||||||
* Format params into querying string. |
* Format params into querying string. |
||||||
* |
* |
||||||
* @return {string[]} |
* @return {string[]} |
||||||
*/ |
*/ |
||||||
declare function formatParams(queryKey: string, value: any): string[]; |
declare function formatParams(queryKey: string, value: any): string[]; |
||||||
/** |
/** |
||||||
* Flat querys. |
* Flat querys. |
||||||
* |
* |
||||||
* @param {string[] | (string[])[]} array |
* @param {string[] | (string[])[]} array |
||||||
* @returns |
* @returns |
||||||
*/ |
*/ |
||||||
declare function flatten(array: string[] | (string[])[]): string[]; |
declare function flatten(array: string[] | (string[])[]): string[]; |
||||||
export { formatParams, flatten, randomStr }; |
export { formatParams, flatten, randomStr }; |
||||||
|
@ -1,80 +1,50 @@ |
|||||||
{ |
{ |
||||||
"_from": "vue-jsonp", |
"name": "vue-jsonp", |
||||||
"_id": "vue-jsonp@2.0.0", |
"version": "2.0.0", |
||||||
"_inBundle": false, |
"description": "A tiny library for handling JSONP request.", |
||||||
"_integrity": "sha512-Mzd9GNeuKP5hHFDWZNMWOsCuMILSkA6jo2l4A02wheFz3qqBzH7aSEFTey1BRCZCLizlaf1EqJ5YUtF392KspA==", |
"main": "./dist/index.js", |
||||||
"_location": "/vue-jsonp", |
"module": "./dist/index.esm.js", |
||||||
"_phantomChildren": {}, |
"keywords": [ |
||||||
"_requested": { |
"Vue", |
||||||
"type": "tag", |
"JSONP" |
||||||
"registry": true, |
], |
||||||
"raw": "vue-jsonp", |
"files": [ |
||||||
"name": "vue-jsonp", |
"dist/", |
||||||
"escapedName": "vue-jsonp", |
"index.d.ts", |
||||||
"rawSpec": "", |
"README.md" |
||||||
"saveSpec": null, |
], |
||||||
"fetchSpec": "latest" |
"scripts": { |
||||||
}, |
"build": "rollup -c", |
||||||
"_requiredBy": [ |
"test": "jest", |
||||||
"#USER", |
"pretest": "npm run build", |
||||||
"/" |
"preversion": "npm run test", |
||||||
], |
"prepublish": "npm run test" |
||||||
"_resolved": "https://registry.npmjs.org/vue-jsonp/-/vue-jsonp-2.0.0.tgz", |
}, |
||||||
"_shasum": "3bfac56bb72941a2511c11e1a123b876f03427f7", |
"author": { |
||||||
"_spec": "vue-jsonp", |
"name": "LancerComet", |
||||||
"_where": "C:\\Users\\Administrator\\Documents\\high-mini", |
"email": "chw644@hotmail.com" |
||||||
"author": { |
}, |
||||||
"name": "LancerComet", |
"repository": { |
||||||
"email": "chw644@hotmail.com" |
"type": "git", |
||||||
}, |
"url": "https://github.com/LancerComet/vue-jsonp.git" |
||||||
"bugs": { |
}, |
||||||
"url": "https://github.com/LancerComet/vue-jsonp/issues" |
"license": "MIT", |
||||||
}, |
"devDependencies": { |
||||||
"bundleDependencies": false, |
"@types/expect-puppeteer": "^4.4.3", |
||||||
"deprecated": false, |
"@types/jest": "^26.0.14", |
||||||
"description": "A tiny library for handling JSONP request.", |
"@types/jest-environment-puppeteer": "^4.4.0", |
||||||
"devDependencies": { |
"@types/puppeteer": "^3.0.2", |
||||||
"@types/expect-puppeteer": "^4.4.3", |
"jest": "^26.4.2", |
||||||
"@types/jest": "^26.0.14", |
"jest-puppeteer": "^4.4.0", |
||||||
"@types/jest-environment-puppeteer": "^4.4.0", |
"puppeteer": "^5.3.1", |
||||||
"@types/puppeteer": "^3.0.2", |
"rollup": "^2.28.2", |
||||||
"jest": "^26.4.2", |
"rollup-plugin-cleanup": "^3.2.1", |
||||||
"jest-puppeteer": "^4.4.0", |
"rollup-plugin-delete": "^2.0.0", |
||||||
"puppeteer": "^5.3.1", |
"rollup-plugin-terser": "^7.0.2", |
||||||
"rollup": "^2.28.2", |
"rollup-plugin-typescript2": "^0.27.3", |
||||||
"rollup-plugin-cleanup": "^3.2.1", |
"ts-jest": "^26.4.1", |
||||||
"rollup-plugin-delete": "^2.0.0", |
"tslint": "^6.1.3", |
||||||
"rollup-plugin-terser": "^7.0.2", |
"typescript": "^4.0.3", |
||||||
"rollup-plugin-typescript2": "^0.27.3", |
"vue": "^2.6.12" |
||||||
"ts-jest": "^26.4.1", |
} |
||||||
"tslint": "^6.1.3", |
} |
||||||
"typescript": "^4.0.3", |
|
||||||
"vue": "^2.6.12" |
|
||||||
}, |
|
||||||
"files": [ |
|
||||||
"dist/", |
|
||||||
"index.d.ts", |
|
||||||
"README.md" |
|
||||||
], |
|
||||||
"homepage": "https://github.com/LancerComet/vue-jsonp#readme", |
|
||||||
"keywords": [ |
|
||||||
"Vue", |
|
||||||
"JSONP" |
|
||||||
], |
|
||||||
"license": "MIT", |
|
||||||
"main": "./dist/index.js", |
|
||||||
"module": "./dist/index.esm.js", |
|
||||||
"name": "vue-jsonp", |
|
||||||
"repository": { |
|
||||||
"type": "git", |
|
||||||
"url": "git+https://github.com/LancerComet/vue-jsonp.git" |
|
||||||
}, |
|
||||||
"scripts": { |
|
||||||
"build": "rollup -c", |
|
||||||
"prepublish": "npm run test", |
|
||||||
"pretest": "npm run build", |
|
||||||
"preversion": "npm run test", |
|
||||||
"test": "jest" |
|
||||||
}, |
|
||||||
"version": "2.0.0" |
|
||||||
} |
|
||||||
|
@ -1,23 +1,235 @@ |
|||||||
{ |
{ |
||||||
"name": "视频播放器组件", |
"name": "视频播放器组件", |
||||||
"version": "1.0.0", |
"version": "1.0.0", |
||||||
"lockfileVersion": 1, |
"lockfileVersion": 2, |
||||||
"requires": true, |
"requires": true, |
||||||
"dependencies": { |
"packages": { |
||||||
"base-64": { |
"": { |
||||||
"version": "1.0.0", |
"name": "视频播放器组件", |
||||||
"resolved": "https://registry.npmjs.org/base-64/-/base-64-1.0.0.tgz", |
"version": "1.0.0", |
||||||
"integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==" |
"dependencies": { |
||||||
|
"base-64": "^1.0.0", |
||||||
|
"vue-jsonp": "^2.0.0", |
||||||
|
"vue-lottie": "^0.2.1" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/@babel/parser": { |
||||||
|
"version": "7.20.0", |
||||||
|
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.0.tgz", |
||||||
|
"integrity": "sha512-G9VgAhEaICnz8iiJeGJQyVl6J2nTjbW0xeisva0PK6XcKsga7BIaqm4ZF8Rg1Wbaqmy6znspNqhPaPkyukujzg==", |
||||||
|
"peer": true, |
||||||
|
"bin": { |
||||||
|
"parser": "bin/babel-parser.js" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": ">=6.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/@vue/compiler-sfc": { |
||||||
|
"version": "2.7.13", |
||||||
|
"resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-2.7.13.tgz", |
||||||
|
"integrity": "sha512-zzu2rLRZlgIU+OT3Atbr7Y6PG+LW4wVQpPfNRrGDH3dM9PsrcVfa+1pKb8bW467bGM3aDOvAnsYLWVpYIv3GRg==", |
||||||
|
"peer": true, |
||||||
|
"dependencies": { |
||||||
|
"@babel/parser": "^7.18.4", |
||||||
|
"postcss": "^8.4.14", |
||||||
|
"source-map": "^0.6.1" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/base-64": { |
||||||
|
"version": "1.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/base-64/-/base-64-1.0.0.tgz", |
||||||
|
"integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==" |
||||||
|
}, |
||||||
|
"node_modules/csstype": { |
||||||
|
"version": "3.1.1", |
||||||
|
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz", |
||||||
|
"integrity": "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==", |
||||||
|
"peer": true |
||||||
|
}, |
||||||
|
"node_modules/lottie-web": { |
||||||
|
"version": "5.9.6", |
||||||
|
"resolved": "https://registry.npmjs.org/lottie-web/-/lottie-web-5.9.6.tgz", |
||||||
|
"integrity": "sha512-JFs7KsHwflugH5qIXBpB4905yC1Sub2MZWtl/elvO/QC6qj1ApqbUZJyjzJseJUtVpgiDaXQLjBlIJGS7UUUXA==" |
||||||
|
}, |
||||||
|
"node_modules/nanoid": { |
||||||
|
"version": "3.3.4", |
||||||
|
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", |
||||||
|
"integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", |
||||||
|
"peer": true, |
||||||
|
"bin": { |
||||||
|
"nanoid": "bin/nanoid.cjs" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/picocolors": { |
||||||
|
"version": "1.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", |
||||||
|
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", |
||||||
|
"peer": true |
||||||
|
}, |
||||||
|
"node_modules/postcss": { |
||||||
|
"version": "8.4.18", |
||||||
|
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.18.tgz", |
||||||
|
"integrity": "sha512-Wi8mWhncLJm11GATDaQKobXSNEYGUHeQLiQqDFG1qQ5UTDPTEvKw0Xt5NsTpktGTwLps3ByrWsBrG0rB8YQ9oA==", |
||||||
|
"funding": [ |
||||||
|
{ |
||||||
|
"type": "opencollective", |
||||||
|
"url": "https://opencollective.com/postcss/" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"type": "tidelift", |
||||||
|
"url": "https://tidelift.com/funding/github/npm/postcss" |
||||||
|
} |
||||||
|
], |
||||||
|
"peer": true, |
||||||
|
"dependencies": { |
||||||
|
"nanoid": "^3.3.4", |
||||||
|
"picocolors": "^1.0.0", |
||||||
|
"source-map-js": "^1.0.2" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": "^10 || ^12 || >=14" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/source-map": { |
||||||
|
"version": "0.6.1", |
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", |
||||||
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", |
||||||
|
"peer": true, |
||||||
|
"engines": { |
||||||
|
"node": ">=0.10.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/source-map-js": { |
||||||
|
"version": "1.0.2", |
||||||
|
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", |
||||||
|
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", |
||||||
|
"peer": true, |
||||||
|
"engines": { |
||||||
|
"node": ">=0.10.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/vue": { |
||||||
|
"version": "2.7.13", |
||||||
|
"resolved": "https://registry.npmjs.org/vue/-/vue-2.7.13.tgz", |
||||||
|
"integrity": "sha512-QnM6ULTNnPmn71eUO+4hdjfBIA3H0GLsBnchnI/kS678tjI45GOUZhXd0oP/gX9isikXz1PAzSnkPspp9EUNfQ==", |
||||||
|
"peer": true, |
||||||
|
"dependencies": { |
||||||
|
"@vue/compiler-sfc": "2.7.13", |
||||||
|
"csstype": "^3.1.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/vue-jsonp": { |
||||||
|
"version": "2.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/vue-jsonp/-/vue-jsonp-2.0.0.tgz", |
||||||
|
"integrity": "sha512-Mzd9GNeuKP5hHFDWZNMWOsCuMILSkA6jo2l4A02wheFz3qqBzH7aSEFTey1BRCZCLizlaf1EqJ5YUtF392KspA==" |
||||||
|
}, |
||||||
|
"node_modules/vue-lottie": { |
||||||
|
"version": "0.2.1", |
||||||
|
"resolved": "https://registry.npmjs.org/vue-lottie/-/vue-lottie-0.2.1.tgz", |
||||||
|
"integrity": "sha512-zInUX69Ij8MhVR3XArpu4PqqBoufwKxS5UMutWCPm59VUaB5H6GtnaIzf9M+l6aYU+Kr8gF/W9dzWLgRuU6V+Q==", |
||||||
|
"dependencies": { |
||||||
|
"lottie-web": "^5.1.9" |
||||||
|
}, |
||||||
|
"peerDependencies": { |
||||||
|
"vue": "^2.5.16" |
||||||
|
} |
||||||
|
} |
||||||
}, |
}, |
||||||
"jweixin-module": { |
"dependencies": { |
||||||
"version": "1.6.0", |
"@babel/parser": { |
||||||
"resolved": "https://registry.npmjs.org/jweixin-module/-/jweixin-module-1.6.0.tgz", |
"version": "7.20.0", |
||||||
"integrity": "sha512-dGk9cf+ipipHmtzYmKZs5B2toX+p4hLyllGLF6xuC8t+B05oYxd8fYoaRz0T30U2n3RUv8a4iwvjhA+OcYz52w==" |
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.0.tgz", |
||||||
}, |
"integrity": "sha512-G9VgAhEaICnz8iiJeGJQyVl6J2nTjbW0xeisva0PK6XcKsga7BIaqm4ZF8Rg1Wbaqmy6znspNqhPaPkyukujzg==", |
||||||
"vue-jsonp": { |
"peer": true |
||||||
"version": "2.0.0", |
}, |
||||||
"resolved": "https://registry.npmjs.org/vue-jsonp/-/vue-jsonp-2.0.0.tgz", |
"@vue/compiler-sfc": { |
||||||
"integrity": "sha512-Mzd9GNeuKP5hHFDWZNMWOsCuMILSkA6jo2l4A02wheFz3qqBzH7aSEFTey1BRCZCLizlaf1EqJ5YUtF392KspA==" |
"version": "2.7.13", |
||||||
|
"resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-2.7.13.tgz", |
||||||
|
"integrity": "sha512-zzu2rLRZlgIU+OT3Atbr7Y6PG+LW4wVQpPfNRrGDH3dM9PsrcVfa+1pKb8bW467bGM3aDOvAnsYLWVpYIv3GRg==", |
||||||
|
"peer": true, |
||||||
|
"requires": { |
||||||
|
"@babel/parser": "^7.18.4", |
||||||
|
"postcss": "^8.4.14", |
||||||
|
"source-map": "^0.6.1" |
||||||
|
} |
||||||
|
}, |
||||||
|
"base-64": { |
||||||
|
"version": "1.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/base-64/-/base-64-1.0.0.tgz", |
||||||
|
"integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==" |
||||||
|
}, |
||||||
|
"csstype": { |
||||||
|
"version": "3.1.1", |
||||||
|
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz", |
||||||
|
"integrity": "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==", |
||||||
|
"peer": true |
||||||
|
}, |
||||||
|
"lottie-web": { |
||||||
|
"version": "5.9.6", |
||||||
|
"resolved": "https://registry.npmjs.org/lottie-web/-/lottie-web-5.9.6.tgz", |
||||||
|
"integrity": "sha512-JFs7KsHwflugH5qIXBpB4905yC1Sub2MZWtl/elvO/QC6qj1ApqbUZJyjzJseJUtVpgiDaXQLjBlIJGS7UUUXA==" |
||||||
|
}, |
||||||
|
"nanoid": { |
||||||
|
"version": "3.3.4", |
||||||
|
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", |
||||||
|
"integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", |
||||||
|
"peer": true |
||||||
|
}, |
||||||
|
"picocolors": { |
||||||
|
"version": "1.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", |
||||||
|
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", |
||||||
|
"peer": true |
||||||
|
}, |
||||||
|
"postcss": { |
||||||
|
"version": "8.4.18", |
||||||
|
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.18.tgz", |
||||||
|
"integrity": "sha512-Wi8mWhncLJm11GATDaQKobXSNEYGUHeQLiQqDFG1qQ5UTDPTEvKw0Xt5NsTpktGTwLps3ByrWsBrG0rB8YQ9oA==", |
||||||
|
"peer": true, |
||||||
|
"requires": { |
||||||
|
"nanoid": "^3.3.4", |
||||||
|
"picocolors": "^1.0.0", |
||||||
|
"source-map-js": "^1.0.2" |
||||||
|
} |
||||||
|
}, |
||||||
|
"source-map": { |
||||||
|
"version": "0.6.1", |
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", |
||||||
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", |
||||||
|
"peer": true |
||||||
|
}, |
||||||
|
"source-map-js": { |
||||||
|
"version": "1.0.2", |
||||||
|
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", |
||||||
|
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", |
||||||
|
"peer": true |
||||||
|
}, |
||||||
|
"vue": { |
||||||
|
"version": "2.7.13", |
||||||
|
"resolved": "https://registry.npmjs.org/vue/-/vue-2.7.13.tgz", |
||||||
|
"integrity": "sha512-QnM6ULTNnPmn71eUO+4hdjfBIA3H0GLsBnchnI/kS678tjI45GOUZhXd0oP/gX9isikXz1PAzSnkPspp9EUNfQ==", |
||||||
|
"peer": true, |
||||||
|
"requires": { |
||||||
|
"@vue/compiler-sfc": "2.7.13", |
||||||
|
"csstype": "^3.1.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"vue-jsonp": { |
||||||
|
"version": "2.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/vue-jsonp/-/vue-jsonp-2.0.0.tgz", |
||||||
|
"integrity": "sha512-Mzd9GNeuKP5hHFDWZNMWOsCuMILSkA6jo2l4A02wheFz3qqBzH7aSEFTey1BRCZCLizlaf1EqJ5YUtF392KspA==" |
||||||
|
}, |
||||||
|
"vue-lottie": { |
||||||
|
"version": "0.2.1", |
||||||
|
"resolved": "https://registry.npmjs.org/vue-lottie/-/vue-lottie-0.2.1.tgz", |
||||||
|
"integrity": "sha512-zInUX69Ij8MhVR3XArpu4PqqBoufwKxS5UMutWCPm59VUaB5H6GtnaIzf9M+l6aYU+Kr8gF/W9dzWLgRuU6V+Q==", |
||||||
|
"requires": { |
||||||
|
"lottie-web": "^5.1.9" |
||||||
|
} |
||||||
|
} |
||||||
} |
} |
||||||
} |
|
||||||
} |
} |
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 4.8 KiB |
Loading…
Reference in new issue