diff --git a/MonacoCore/build/release/MonacoCore.zip b/MonacoCore/build/release/MonacoCore.zip index f656577..c221d96 100644 Binary files a/MonacoCore/build/release/MonacoCore.zip and b/MonacoCore/build/release/MonacoCore.zip differ diff --git a/libantosdk/build.json b/libantosdk/build.json index 86d032a..c188db5 100644 --- a/libantosdk/build.json +++ b/libantosdk/build.json @@ -43,7 +43,7 @@ "name": "vfs-cp", "data": { "src": [ - "core", + "core", "package.json", "README.md" ], @@ -53,7 +53,7 @@ ] }, "release": { - "depend": ["clean","build","uglify", "copy"], + "depend": ["build","uglify", "copy"], "require": ["zip"], "jobs": [ { diff --git a/libantosdk/build/release/libantosdk.zip b/libantosdk/build/release/libantosdk.zip index 9d781f2..08e65fc 100644 Binary files a/libantosdk/build/release/libantosdk.zip and b/libantosdk/build/release/libantosdk.zip differ diff --git a/libantosdk/core/ts/jquery.d.ts b/libantosdk/core/ts/jquery.d.ts index e803b9c..4335473 100644 --- a/libantosdk/core/ts/jquery.d.ts +++ b/libantosdk/core/ts/jquery.d.ts @@ -1,3 +1,90 @@ +export as namespace Sizzle; + +declare const Sizzle: SizzleStatic; +export = Sizzle; + +interface SizzleStatic { + selectors: Sizzle.Selectors; + >(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:max-line-length // tslint:disable:no-irregular-whitespace diff --git a/libantosdk/core/worker.js b/libantosdk/core/worker.js index b284f21..3322d7f 100644 --- a/libantosdk/core/worker.js +++ b/libantosdk/core/worker.js @@ -465,9 +465,21 @@ API.jobhandle["vfs-mkdir"] = VFSJob; API.jobhandle["vfs-cp"] = VFSJob; onmessage = (e) => { - if(API.jobhandle[e.data.cmd]) - { - return (new API.jobhandle[e.data.cmd](e.data)).execute(); + try{ + if(API.jobhandle[e.data.cmd]) + { + return (new API.jobhandle[e.data.cmd](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); } - (new UnknownJob(e.data)).execute(); } \ No newline at end of file diff --git a/libantosdk/package.json b/libantosdk/package.json index ea4cccb..2ba93d0 100644 --- a/libantosdk/package.json +++ b/libantosdk/package.json @@ -6,7 +6,7 @@ "author": "Xuan Sang LE", "email": "mrsang@iohub.dev" }, - "version":"0.0.2-a", + "version":"0.0.3-a", "category":"Other", "iconclass":"fa fa-cog", "mimes":["none"], diff --git a/packages.json b/packages.json index cec9003..aa31574 100644 --- a/packages.json +++ b/packages.json @@ -175,7 +175,7 @@ "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libantosdk/README.md", "category": "Other", "author": "Xuan Sang LE", - "version": "0.0.2-a", + "version": "0.0.3-a", "dependencies": [], "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libantosdk/build/release/libantosdk.zip" },