2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-06-27 07:13:12 +00:00

Esiur 1.2.4

This commit is contained in:
2019-07-16 03:20:10 +03:00
parent de5f2cbdd2
commit 3ac2eccf0f
7 changed files with 19 additions and 7 deletions

View File

@ -183,10 +183,18 @@ export default class DistributedResource extends IResource
var pt = this.instance.template.getPropertyTemplateByIndex(index);
this._p.properties[index] = value;
this.instance.emitModification(pt, value);
// this to invoke other property setters
this._p.neglect = true;
this[pt.name] = null;
this._p.neglect = false;
}
_set(index, value)
{
if (this._p.neglect)
return;
if (index >= this._p.properties.length)
return null;

View File

@ -116,7 +116,7 @@ export class WH extends IEventHandler
{
var store = this.new(handler, url[0] + "://" + hostname);
store.open(settings).then(x=>{
if (pathname.length > 0 && pathname[1] != "")
if (pathname.length > 0 && pathname != "")
store.get(pathname).then(r=>{
rt.trigger(r);
}).error(e => rt.triggerError(e));

View File

@ -1,2 +1,7 @@
import wh from './Resource/Warehouse.js';
export default wh;
if (window)
window.wh = wh;
export default wh;

21
src/package-lock.json generated Normal file
View File

@ -0,0 +1,21 @@
{
"name": "esiur",
"version": "1.2.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"async-limiter": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz",
"integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg=="
},
"ws": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-6.2.0.tgz",
"integrity": "sha512-deZYUNlt2O4buFCa3t5bKLf8A7FPP/TVjwOeVNpw818Ma5nk4MLXls2eoEGS39o8119QIYxTrTDoPQ5B/gTD6w==",
"requires": {
"async-limiter": "~1.0.0"
}
}
}
}

22
src/package.json Normal file
View File

@ -0,0 +1,22 @@
{
"name": "esiur",
"version": "1.2.4",
"description": "Distributed Object Framework",
"main": "esiur.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/esiur/esiur-js.git"
},
"author": "Ahmed Zamil",
"license": "MIT",
"bugs": {
"url": "https://github.com/esiur/esiur-js/issues"
},
"homepage": "https://github.com/esiur/esiur-js#readme",
"dependencies": {
"ws": "^6.2.0"
}
}