bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-01-03 15:57:37 +03:00
parent 2e66cb3083
commit c6333461c7
4 changed files with 33 additions and 30 deletions

View File

@ -179,6 +179,7 @@ object.Constructor('UniqueKeyMap', Map, {
// XXX should this be a map???
// XXX make two variants: ordered and unordered...
// ...the ordered variant should have the same API as an array...
var ObjectWithAutoKeys =
module.ObjectWithAutoKeys =
object.Constructor('ObjectWithAutoKeys', {
@ -193,6 +194,7 @@ object.Constructor('ObjectWithAutoKeys', {
//
// .push(value, ..)
// -> [key, ..]
//
push: function(...values){
var that = this
var res = values

View File

@ -239,8 +239,9 @@ object.Constructor('Event', Eventfull, {
// add handler...
this.bind(context, args[0])
// call the action...
//: object.parentCall(Event.prototype.__call__, this, context, ...args)
: Eventfull.prototype.__call__.call(this, context, ...args)
: object.parentCall(Event.prototype.__call__, this, context, ...args)
// XXX workaround for above line -- remove when fully tested...
//: Eventfull.prototype.__call__.call(this, context, ...args)
return context },
})

50
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "ig-types",
"version": "5.0.3",
"version": "6.0.7",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -60,9 +60,9 @@
}
},
"c8": {
"version": "7.3.5",
"resolved": "https://registry.npmjs.org/c8/-/c8-7.3.5.tgz",
"integrity": "sha512-VNiZoxnInBJLW8uUuyLkiqMKWh1OAsYS+DjWsMhvcrfGPrVx3vwqD9627/7ZhFSF86MCBINDi+PD6Midw0KHRg==",
"version": "7.4.0",
"resolved": "https://registry.npmjs.org/c8/-/c8-7.4.0.tgz",
"integrity": "sha512-K8I7MEe2i4L91YBX3HtV10kKpU5uqGeyjtsdGS2FxfT0pk15d9jthujjR1ORRLrCJ4tXuDK9PSH2vChzRDoAZw==",
"dev": true,
"requires": {
"@bcoe/v8-coverage": "^0.2.3",
@ -75,7 +75,7 @@
"istanbul-reports": "^3.0.2",
"rimraf": "^3.0.0",
"test-exclude": "^6.0.0",
"v8-to-istanbul": "^7.0.0",
"v8-to-istanbul": "^7.1.0",
"yargs": "^16.0.0",
"yargs-parser": "^20.0.0"
}
@ -265,9 +265,9 @@
}
},
"ig-object": {
"version": "5.4.12",
"resolved": "https://registry.npmjs.org/ig-object/-/ig-object-5.4.12.tgz",
"integrity": "sha512-9kZM80Js9/eTwXN9VXwLDC1wDJ7gIAdYU9GIzb5KJmNcLAMaW+zhgFrwFFMrcSfggUuadgnqSrS41E4XLe8JZw=="
"version": "5.4.16",
"resolved": "https://registry.npmjs.org/ig-object/-/ig-object-5.4.16.tgz",
"integrity": "sha512-qxAWSFdwE0PeBh5Ws+pyX3SxJrwqratEIDrSg5odcHdUVFTzATMJImH2L8bMaDhxaQJj5ogoZc+lx56UIpXJ1g=="
},
"ig-test": {
"version": "1.4.8",
@ -390,12 +390,12 @@
}
},
"p-limit": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.0.2.tgz",
"integrity": "sha512-iwqZSOoWIW+Ew4kAGUlN16J4M7OB3ysMLSZtnhmqx7njIHFPlxWBX8xo3lVTyFVq6mI/lL9qt2IsN1sHwaxJkg==",
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
"integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
"dev": true,
"requires": {
"p-try": "^2.0.0"
"yocto-queue": "^0.1.0"
}
},
"p-locate": {
@ -407,12 +407,6 @@
"p-limit": "^3.0.2"
}
},
"p-try": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
"integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
"dev": true
},
"path-exists": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
@ -535,9 +529,9 @@
}
},
"v8-to-istanbul": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.0.0.tgz",
"integrity": "sha512-fLL2rFuQpMtm9r8hrAV2apXX/WqHJ6+IC4/eQVdMDGBUgH/YMV4Gv3duk3kjmyg6uiQWBAA9nJwue4iJUOkHeA==",
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.0.tgz",
"integrity": "sha512-uXUVqNUCLa0AH1vuVxzi+MI4RfxEOKt9pBgKwHbgH7st8Kv2P1m+jvWNnektzBh5QShF3ODgKmUFCf38LnVz1g==",
"dev": true,
"requires": {
"@types/istanbul-lib-coverage": "^2.0.1",
@ -578,9 +572,9 @@
"dev": true
},
"yargs": {
"version": "16.1.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.1.0.tgz",
"integrity": "sha512-upWFJOmDdHN0syLuESuvXDmrRcWd1QafJolHskzaw79uZa7/x53gxQKiR07W59GWY1tFhhU/Th9DrtSfpS782g==",
"version": "16.2.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
"dev": true,
"requires": {
"cliui": "^7.0.2",
@ -588,7 +582,7 @@
"get-caller-file": "^2.0.5",
"require-directory": "^2.1.1",
"string-width": "^4.2.0",
"y18n": "^5.0.2",
"y18n": "^5.0.5",
"yargs-parser": "^20.2.2"
}
},
@ -597,6 +591,12 @@
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz",
"integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==",
"dev": true
},
"yocto-queue": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
"dev": true
}
}
}

View File

@ -1,6 +1,6 @@
{
"name": "ig-types",
"version": "6.0.7",
"version": "6.0.8",
"description": "Generic JavaScript types and type extensions...",
"main": "main.js",
"scripts": {
@ -23,11 +23,11 @@
},
"homepage": "https://github.com/flynx/types.js#readme",
"dependencies": {
"ig-object": "^5.4.12",
"ig-object": "^5.4.16",
"object-run": "^1.0.1"
},
"devDependencies": {
"c8": "^7.3.5",
"c8": "^7.4.0",
"color": "^3.1.3",
"ig-test": "^1.4.8"
}