@coasys/ad4m 0.10.0-rc6.fix2 → 0.10.0-rc6.fix3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.cjs
CHANGED
|
@@ -4985,15 +4985,24 @@ class PerspectiveProxy {
|
|
|
4985
4985
|
// Collect all set functions of the object in a list
|
|
4986
4986
|
let setFunctions = Object.getOwnPropertyNames(obj).filter(key => (typeof obj[key] === "function") && key.startsWith("set") && !key.startsWith("setCollection"));
|
|
4987
4987
|
// Add all set functions of the object's prototype to that list
|
|
4988
|
-
setFunctions = setFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key =>
|
|
4988
|
+
setFunctions = setFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
|
|
4989
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
|
|
4990
|
+
return descriptor && typeof descriptor.value === "function" && key.startsWith("set") && !key.startsWith("setCollection");
|
|
4991
|
+
}));
|
|
4989
4992
|
// Collect all add functions of the object in a list
|
|
4990
4993
|
let addFunctions = Object.getOwnPropertyNames(obj).filter(key => (Object.prototype.hasOwnProperty.call(obj, key) && typeof obj[key] === "function") && key.startsWith("add"));
|
|
4991
4994
|
// Add all add functions of the object's prototype to that list
|
|
4992
|
-
addFunctions = addFunctions.concat(Object.
|
|
4995
|
+
addFunctions = addFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
|
|
4996
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
|
|
4997
|
+
return descriptor && typeof descriptor.value === "function" && key.startsWith("add");
|
|
4998
|
+
}));
|
|
4993
4999
|
// Collect all remove functions of the object in a list
|
|
4994
5000
|
let removeFunctions = Object.getOwnPropertyNames(obj).filter(key => (Object.prototype.hasOwnProperty.call(obj, key) && typeof obj[key] === "function") && key.startsWith("remove"));
|
|
4995
5001
|
// Add all remove functions of the object's prototype to that list
|
|
4996
|
-
removeFunctions = removeFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key =>
|
|
5002
|
+
removeFunctions = removeFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
|
|
5003
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
|
|
5004
|
+
return descriptor && typeof descriptor.value === "function" && key.startsWith("remove");
|
|
5005
|
+
}));
|
|
4997
5006
|
// Collect all add functions of the object in a list
|
|
4998
5007
|
let setCollectionFunctions = Object.getOwnPropertyNames(obj).filter(key => (Object.prototype.hasOwnProperty.call(obj, key) && typeof obj[key] === "function") && key.startsWith("setCollection"));
|
|
4999
5008
|
// Add all add functions of the object's prototype to that list
|
package/lib/index.js
CHANGED
|
@@ -4981,15 +4981,24 @@ class PerspectiveProxy {
|
|
|
4981
4981
|
// Collect all set functions of the object in a list
|
|
4982
4982
|
let setFunctions = Object.getOwnPropertyNames(obj).filter(key => (typeof obj[key] === "function") && key.startsWith("set") && !key.startsWith("setCollection"));
|
|
4983
4983
|
// Add all set functions of the object's prototype to that list
|
|
4984
|
-
setFunctions = setFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key =>
|
|
4984
|
+
setFunctions = setFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
|
|
4985
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
|
|
4986
|
+
return descriptor && typeof descriptor.value === "function" && key.startsWith("set") && !key.startsWith("setCollection");
|
|
4987
|
+
}));
|
|
4985
4988
|
// Collect all add functions of the object in a list
|
|
4986
4989
|
let addFunctions = Object.getOwnPropertyNames(obj).filter(key => (Object.prototype.hasOwnProperty.call(obj, key) && typeof obj[key] === "function") && key.startsWith("add"));
|
|
4987
4990
|
// Add all add functions of the object's prototype to that list
|
|
4988
|
-
addFunctions = addFunctions.concat(Object.
|
|
4991
|
+
addFunctions = addFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
|
|
4992
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
|
|
4993
|
+
return descriptor && typeof descriptor.value === "function" && key.startsWith("add");
|
|
4994
|
+
}));
|
|
4989
4995
|
// Collect all remove functions of the object in a list
|
|
4990
4996
|
let removeFunctions = Object.getOwnPropertyNames(obj).filter(key => (Object.prototype.hasOwnProperty.call(obj, key) && typeof obj[key] === "function") && key.startsWith("remove"));
|
|
4991
4997
|
// Add all remove functions of the object's prototype to that list
|
|
4992
|
-
removeFunctions = removeFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key =>
|
|
4998
|
+
removeFunctions = removeFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
|
|
4999
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
|
|
5000
|
+
return descriptor && typeof descriptor.value === "function" && key.startsWith("remove");
|
|
5001
|
+
}));
|
|
4993
5002
|
// Collect all add functions of the object in a list
|
|
4994
5003
|
let setCollectionFunctions = Object.getOwnPropertyNames(obj).filter(key => (Object.prototype.hasOwnProperty.call(obj, key) && typeof obj[key] === "function") && key.startsWith("setCollection"));
|
|
4995
5004
|
// Add all add functions of the object's prototype to that list
|
|
@@ -392,15 +392,24 @@ export class PerspectiveProxy {
|
|
|
392
392
|
// Collect all set functions of the object in a list
|
|
393
393
|
let setFunctions = Object.getOwnPropertyNames(obj).filter(key => (typeof obj[key] === "function") && key.startsWith("set") && !key.startsWith("setCollection"));
|
|
394
394
|
// Add all set functions of the object's prototype to that list
|
|
395
|
-
setFunctions = setFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key =>
|
|
395
|
+
setFunctions = setFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
|
|
396
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
|
|
397
|
+
return descriptor && typeof descriptor.value === "function" && key.startsWith("set") && !key.startsWith("setCollection");
|
|
398
|
+
}));
|
|
396
399
|
// Collect all add functions of the object in a list
|
|
397
400
|
let addFunctions = Object.getOwnPropertyNames(obj).filter(key => (Object.prototype.hasOwnProperty.call(obj, key) && typeof obj[key] === "function") && key.startsWith("add"));
|
|
398
401
|
// Add all add functions of the object's prototype to that list
|
|
399
|
-
addFunctions = addFunctions.concat(Object.
|
|
402
|
+
addFunctions = addFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
|
|
403
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
|
|
404
|
+
return descriptor && typeof descriptor.value === "function" && key.startsWith("add");
|
|
405
|
+
}));
|
|
400
406
|
// Collect all remove functions of the object in a list
|
|
401
407
|
let removeFunctions = Object.getOwnPropertyNames(obj).filter(key => (Object.prototype.hasOwnProperty.call(obj, key) && typeof obj[key] === "function") && key.startsWith("remove"));
|
|
402
408
|
// Add all remove functions of the object's prototype to that list
|
|
403
|
-
removeFunctions = removeFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key =>
|
|
409
|
+
removeFunctions = removeFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
|
|
410
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
|
|
411
|
+
return descriptor && typeof descriptor.value === "function" && key.startsWith("remove");
|
|
412
|
+
}));
|
|
404
413
|
// Collect all add functions of the object in a list
|
|
405
414
|
let setCollectionFunctions = Object.getOwnPropertyNames(obj).filter(key => (Object.prototype.hasOwnProperty.call(obj, key) && typeof obj[key] === "function") && key.startsWith("setCollection"));
|
|
406
415
|
// Add all add functions of the object's prototype to that list
|
package/package.json
CHANGED
|
@@ -458,17 +458,26 @@ export class PerspectiveProxy {
|
|
|
458
458
|
// Collect all set functions of the object in a list
|
|
459
459
|
let setFunctions = Object.getOwnPropertyNames(obj).filter(key => (typeof obj[key] === "function") && key.startsWith("set") && !key.startsWith("setCollection"))
|
|
460
460
|
// Add all set functions of the object's prototype to that list
|
|
461
|
-
setFunctions = setFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key =>
|
|
461
|
+
setFunctions = setFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
|
|
462
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
|
|
463
|
+
return descriptor && typeof descriptor.value === "function" && key.startsWith("set") && !key.startsWith("setCollection");
|
|
464
|
+
}));
|
|
462
465
|
|
|
463
466
|
// Collect all add functions of the object in a list
|
|
464
467
|
let addFunctions = Object.getOwnPropertyNames(obj).filter(key => (Object.prototype.hasOwnProperty.call(obj, key) && typeof obj[key] === "function") && key.startsWith("add"))
|
|
465
468
|
// Add all add functions of the object's prototype to that list
|
|
466
|
-
addFunctions = addFunctions.concat(Object.
|
|
469
|
+
addFunctions = addFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
|
|
470
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
|
|
471
|
+
return descriptor && typeof descriptor.value === "function" && key.startsWith("add");
|
|
472
|
+
}));
|
|
467
473
|
|
|
468
474
|
// Collect all remove functions of the object in a list
|
|
469
475
|
let removeFunctions = Object.getOwnPropertyNames(obj).filter(key => (Object.prototype.hasOwnProperty.call(obj, key) && typeof obj[key] === "function") && key.startsWith("remove"))
|
|
470
476
|
// Add all remove functions of the object's prototype to that list
|
|
471
|
-
removeFunctions = removeFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key =>
|
|
477
|
+
removeFunctions = removeFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
|
|
478
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
|
|
479
|
+
return descriptor && typeof descriptor.value === "function" && key.startsWith("remove");
|
|
480
|
+
}));
|
|
472
481
|
|
|
473
482
|
// Collect all add functions of the object in a list
|
|
474
483
|
let setCollectionFunctions = Object.getOwnPropertyNames(obj).filter(key => (Object.prototype.hasOwnProperty.call(obj, key) && typeof obj[key] === "function") && key.startsWith("setCollection"))
|