@dfeidao/atom-desktop
Advanced tools
Comparing version 4.5.201902251508 to 4.6.201904011745
@@ -30,4 +30,4 @@ import { IHandle } from '@dfeidao/core/on'; | ||
}; | ||
fire(action: string, ...args: Array<unknown>): Promise<unknown>; | ||
emit(event: string, ...args: Array<unknown>): Promise<unknown>; | ||
fire(action: string, ...args: unknown[]): Promise<unknown>; | ||
emit(event: string, ...args: unknown[]): Promise<unknown>; | ||
} | ||
@@ -53,4 +53,4 @@ export interface IFeidaoAiDesktopApp extends IFeidaoAi { | ||
parse_event(node: HTMLElement | DocumentFragment): IHandle[]; | ||
fire(action: string, ...args: Array<unknown>): Promise<unknown>; | ||
emit(event: string, ...args: Array<unknown>): Promise<unknown>; | ||
fire(action: string, ...args: unknown[]): Promise<unknown>; | ||
emit(event: string, ...args: unknown[]): Promise<unknown>; | ||
} | ||
@@ -65,4 +65,4 @@ export interface IFeidaoAiBrowserPage { | ||
}; | ||
fire(action: string, ...args: Array<unknown>): Promise<unknown>; | ||
emit(event: string, ...args: Array<unknown>): Promise<unknown>; | ||
fire(action: string, ...args: unknown[]): Promise<unknown>; | ||
emit(event: string, ...args: unknown[]): Promise<unknown>; | ||
} | ||
@@ -73,3 +73,3 @@ export interface IEvents { | ||
export interface IActions { | ||
[atom: string]: (...args: Array<unknown>) => Promise<unknown> | unknown; | ||
[atom: string]: (...args: unknown[]) => Promise<unknown> | unknown; | ||
} | ||
@@ -76,0 +76,0 @@ export interface IFeidaoAiDesktopComponent extends IFeidaoAi { |
{ | ||
"name": "@dfeidao/atom-desktop", | ||
"version": "4.5.201902251508", | ||
"version": "4.6.201904011745", | ||
"description": "原子操作", | ||
@@ -27,3 +27,3 @@ "nyc": { | ||
"compile": "npm run compile:cjs & npm run compile:umd", | ||
"build": "npm run clean && npm run lint && npm run lint && npm run copy-files && npm run compile" | ||
"build": "npm run clean && npm run lint && npm run copy-files && npm run compile" | ||
}, | ||
@@ -49,16 +49,16 @@ "repository": { | ||
"devDependencies": { | ||
"@dfeidao/animation": "4.5.201902251035", | ||
"@dfeidao/core": "4.5.201902251027", | ||
"@dfeidao/send-msg": "4.5.201902251300", | ||
"@dfeidao/animation": "4.6.201904011545", | ||
"@dfeidao/core": "4.6.201904011515", | ||
"@dfeidao/send-msg": "4.6.201904011634", | ||
"@types/uuid": "3.4.4", | ||
"@types/watch": "1.0.0", | ||
"@types/dot": "1.1.3", | ||
"ava": "1.2.1", | ||
"ava": "1.4.1", | ||
"cp-cli": "2.0.0", | ||
"del-cli": "1.1.0", | ||
"electron": "4.0.5", | ||
"tslint": "5.12.1", | ||
"electron": "4.1.3", | ||
"tslint": "5.14.0", | ||
"typedoc": "0.14.2", | ||
"typedoc-plugin-markdown": "1.1.26", | ||
"typescript": "3.3.3", | ||
"typedoc-plugin-markdown": "1.1.27", | ||
"typescript": "3.4.1", | ||
"uuid": "3.3.2", | ||
@@ -65,0 +65,0 @@ "watch": "1.0.2" |
@@ -18,6 +18,4 @@ "use strict"; | ||
try { | ||
const res = await request_1.post(url, JSON.stringify(param)); | ||
const data = res.responseText; | ||
const data_1 = JSON.parse(data); | ||
return data_1 && data_1.code === 1; | ||
const data = await request_1.post(url, JSON.stringify(param)); | ||
return data && data.code === 1; | ||
} | ||
@@ -24,0 +22,0 @@ catch (error) { |
@@ -21,3 +21,3 @@ "use strict"; | ||
const file_string = e.target.result; | ||
const ret = await request_1.post(`${file_server}/fsweb/reupload?productid=${productid}`, JSON.stringify({ | ||
const files = await request_1.post(`${file_server}/fsweb/reupload?productid=${productid}`, JSON.stringify({ | ||
delfile_name: file_id, | ||
@@ -27,3 +27,2 @@ file_name, | ||
})); | ||
const files = JSON.parse(ret.responseText); | ||
resolve(files[0]); | ||
@@ -30,0 +29,0 @@ } |
@@ -20,7 +20,6 @@ "use strict"; | ||
const file_string = e.target.result; | ||
const ret = await request_1.post(`${file_server}/fsweb/upload?productid=${productid}`, JSON.stringify({ | ||
const files = await request_1.post(`${file_server}/fsweb/upload?productid=${productid}`, JSON.stringify({ | ||
file_name, | ||
file_string | ||
})); | ||
const files = JSON.parse(ret.responseText); | ||
resolve(files[0]); | ||
@@ -27,0 +26,0 @@ } |
@@ -58,7 +58,6 @@ "use strict"; | ||
try { | ||
const ret = await request_1.post(`${file_server}/fsweb/upload?productid=${productid}`, JSON.stringify({ | ||
const res = await request_1.post(`${file_server}/fsweb/upload?productid=${productid}`, JSON.stringify({ | ||
file_name: 'merged-image.png', | ||
file_string: canvas.toDataURL() | ||
})); | ||
const res = JSON.parse(ret.responseText); | ||
return res[0]; | ||
@@ -65,0 +64,0 @@ } |
@@ -27,6 +27,4 @@ (function (factory) { | ||
try { | ||
const res = await request_1.post(url, JSON.stringify(param)); | ||
const data = res.responseText; | ||
const data_1 = JSON.parse(data); | ||
return data_1 && data_1.code === 1; | ||
const data = await request_1.post(url, JSON.stringify(param)); | ||
return data && data.code === 1; | ||
} | ||
@@ -33,0 +31,0 @@ catch (error) { |
@@ -30,3 +30,3 @@ (function (factory) { | ||
const file_string = e.target.result; | ||
const ret = await request_1.post(`${file_server}/fsweb/reupload?productid=${productid}`, JSON.stringify({ | ||
const files = await request_1.post(`${file_server}/fsweb/reupload?productid=${productid}`, JSON.stringify({ | ||
delfile_name: file_id, | ||
@@ -36,3 +36,2 @@ file_name, | ||
})); | ||
const files = JSON.parse(ret.responseText); | ||
resolve(files[0]); | ||
@@ -39,0 +38,0 @@ } |
@@ -29,7 +29,6 @@ (function (factory) { | ||
const file_string = e.target.result; | ||
const ret = await request_1.post(`${file_server}/fsweb/upload?productid=${productid}`, JSON.stringify({ | ||
const files = await request_1.post(`${file_server}/fsweb/upload?productid=${productid}`, JSON.stringify({ | ||
file_name, | ||
file_string | ||
})); | ||
const files = JSON.parse(ret.responseText); | ||
resolve(files[0]); | ||
@@ -36,0 +35,0 @@ } |
@@ -67,7 +67,6 @@ (function (factory) { | ||
try { | ||
const ret = await request_1.post(`${file_server}/fsweb/upload?productid=${productid}`, JSON.stringify({ | ||
const res = await request_1.post(`${file_server}/fsweb/upload?productid=${productid}`, JSON.stringify({ | ||
file_name: 'merged-image.png', | ||
file_string: canvas.toDataURL() | ||
})); | ||
const res = JSON.parse(ret.responseText); | ||
return res[0]; | ||
@@ -74,0 +73,0 @@ } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
204523
5260
3