update packages

This commit is contained in:
mrsang 2021-04-20 18:12:54 +02:00
parent a0f3f25338
commit bc33f7ff10
7 changed files with 107 additions and 8 deletions

View File

@ -53,7 +53,7 @@
] ]
}, },
"release": { "release": {
"depend": ["clean","build","uglify", "copy"], "depend": ["build","uglify", "copy"],
"require": ["zip"], "require": ["zip"],
"jobs": [ "jobs": [
{ {

View File

@ -1,3 +1,90 @@
export as namespace Sizzle;
declare const Sizzle: SizzleStatic;
export = Sizzle;
interface SizzleStatic {
selectors: Sizzle.Selectors;
<TArrayLike extends ArrayLike<Element>>(selector: string, context: Element | Document | DocumentFragment, results: TArrayLike): TArrayLike;
(selector: string, context?: Element | Document | DocumentFragment): Element[];
// tslint:disable-next-line:ban-types
compile(selector: string): Function;
matchSelector(element: Element, selector: string): boolean;
matches(selector: string, elements: Element[]): Element[];
}
declare namespace Sizzle {
interface Selectors {
cacheLength: number;
match: Selectors.Matches;
find: Selectors.FindFunctions;
preFilter: Selectors.PreFilterFunctions;
filter: Selectors.FilterFunctions;
attrHandle: Selectors.AttrHandleFunctions;
pseudos: Selectors.PseudoFunctions;
setFilters: Selectors.SetFilterFunctions;
createPseudo(fn: Selectors.CreatePseudoFunction): Selectors.PseudoFunction;
}
namespace Selectors {
interface Matches {
[name: string]: RegExp;
}
interface FindFunction {
(match: RegExpMatchArray, context: Element | Document, isXML: boolean): Element[] | void;
}
interface FindFunctions {
[name: string]: FindFunction;
}
interface PreFilterFunction {
(match: RegExpMatchArray): string[];
}
interface PreFilterFunctions {
[name: string]: PreFilterFunction;
}
interface FilterFunction {
(element: string, ...matches: string[]): boolean;
}
interface FilterFunctions {
[name: string]: FilterFunction;
}
interface AttrHandleFunction {
(elem: any, casePreservedName: string, isXML: boolean): string;
}
interface AttrHandleFunctions {
[name: string]: AttrHandleFunction;
}
interface PseudoFunction {
(elem: Element): boolean;
}
interface PseudoFunctions {
[name: string]: PseudoFunction;
}
interface SetFilterFunction {
(elements: Element[], argument: number, not: boolean): Element[];
}
interface SetFilterFunctions {
[name: string]: SetFilterFunction;
}
interface CreatePseudoFunction {
(...args: any[]): PseudoFunction;
}
}
}
// tslint:disable:jsdoc-format // tslint:disable:jsdoc-format
// tslint:disable:max-line-length // tslint:disable:max-line-length
// tslint:disable:no-irregular-whitespace // tslint:disable:no-irregular-whitespace

View File

@ -465,9 +465,21 @@ API.jobhandle["vfs-mkdir"] = VFSJob;
API.jobhandle["vfs-cp"] = VFSJob; API.jobhandle["vfs-cp"] = VFSJob;
onmessage = (e) => { onmessage = (e) => {
try{
if(API.jobhandle[e.data.cmd]) if(API.jobhandle[e.data.cmd])
{ {
return (new API.jobhandle[e.data.cmd](e.data)).execute(); return (new API.jobhandle[e.data.cmd](e.data)).execute();
} }
(new UnknownJob(e.data)).execute(); (new UnknownJob(e.data)).execute();
}
catch(error)
{
const result = {
id: e.data.id,
type: "result",
error: error.toString(),
result: false
};
postMessage(result);
}
} }

View File

@ -6,7 +6,7 @@
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"email": "mrsang@iohub.dev" "email": "mrsang@iohub.dev"
}, },
"version":"0.0.2-a", "version":"0.0.3-a",
"category":"Other", "category":"Other",
"iconclass":"fa fa-cog", "iconclass":"fa fa-cog",
"mimes":["none"], "mimes":["none"],

View File

@ -175,7 +175,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libantosdk/README.md", "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libantosdk/README.md",
"category": "Other", "category": "Other",
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"version": "0.0.2-a", "version": "0.0.3-a",
"dependencies": [], "dependencies": [],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libantosdk/build/release/libantosdk.zip" "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libantosdk/build/release/libantosdk.zip"
}, },