@coasys/ad4m 0.10.0-rc6.fix2 → 0.10.0-rc7

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,19 +4985,31 @@ 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 => (typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("set") && !key.startsWith("setCollection")));
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.keys(Object.getPrototypeOf(obj)).filter(key => (Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(obj), key) && typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("add")));
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 => (Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(obj), key) && typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("remove")));
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
5000
- setCollectionFunctions = setCollectionFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => (Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(obj), key) && typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("setCollection")));
5009
+ setCollectionFunctions = setCollectionFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
5010
+ const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
5011
+ return descriptor && typeof descriptor.value === "function" && key.startsWith("setCollection");
5012
+ }));
5001
5013
  // Construct query to find all subject classes that have the given properties and collections
5002
5014
  let query = `subject_class(Class, C)`;
5003
5015
  for (let property of properties) {
package/lib/index.js CHANGED
@@ -4981,19 +4981,31 @@ 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 => (typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("set") && !key.startsWith("setCollection")));
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.keys(Object.getPrototypeOf(obj)).filter(key => (Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(obj), key) && typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("add")));
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 => (Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(obj), key) && typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("remove")));
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
4996
- setCollectionFunctions = setCollectionFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => (Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(obj), key) && typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("setCollection")));
5005
+ setCollectionFunctions = setCollectionFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
5006
+ const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
5007
+ return descriptor && typeof descriptor.value === "function" && key.startsWith("setCollection");
5008
+ }));
4997
5009
  // Construct query to find all subject classes that have the given properties and collections
4998
5010
  let query = `subject_class(Class, C)`;
4999
5011
  for (let property of properties) {
@@ -392,19 +392,31 @@ 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 => (typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("set") && !key.startsWith("setCollection")));
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.keys(Object.getPrototypeOf(obj)).filter(key => (Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(obj), key) && typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("add")));
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 => (Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(obj), key) && typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("remove")));
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
407
- setCollectionFunctions = setCollectionFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => (Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(obj), key) && typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("setCollection")));
416
+ setCollectionFunctions = setCollectionFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
417
+ const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
418
+ return descriptor && typeof descriptor.value === "function" && key.startsWith("setCollection");
419
+ }));
408
420
  // Construct query to find all subject classes that have the given properties and collections
409
421
  let query = `subject_class(Class, C)`;
410
422
  for (let property of properties) {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "module": "lib/index.js",
6
6
  "types": "lib/src/index.d.ts",
7
7
  "type": "module",
8
-
8
+ "private": false,
9
9
  "scripts": {
10
10
  "build": "patch-package && tsc && pnpm run buildSchema && pnpm run bundle",
11
11
  "buildSchema": "node --es-module-specifier-resolution=node lib/src/buildSchema.js",
@@ -60,7 +60,7 @@
60
60
  "@types/yargs": "*"
61
61
  },
62
62
  "patchedDependencies": {},
63
- "version": "0.10.0-rc6.fix2",
63
+ "version": "0.10.0-rc7",
64
64
  "pnpm": {
65
65
  "patchedDependencies": {
66
66
  "graphql@15.7.2": "patches/graphql@15.7.2.patch"
@@ -458,23 +458,34 @@ 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 => (typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("set") && !key.startsWith("setCollection")))
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.keys(Object.getPrototypeOf(obj)).filter(key => (Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(obj), key) && typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("add")))
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 => (Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(obj), key) && typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("remove")))
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"))
475
484
  // Add all add functions of the object's prototype to that list
476
- setCollectionFunctions = setCollectionFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => (Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(obj), key) && typeof Object.getPrototypeOf(obj)[key] === "function") && key.startsWith("setCollection")))
477
-
485
+ setCollectionFunctions = setCollectionFunctions.concat(Object.getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(key => {
486
+ const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(obj), key);
487
+ return descriptor && typeof descriptor.value === "function" && key.startsWith("setCollection");
488
+ }));
478
489
  // Construct query to find all subject classes that have the given properties and collections
479
490
  let query = `subject_class(Class, C)`
480
491
 
package/yarn-error.log DELETED
@@ -1,90 +0,0 @@
1
- Arguments:
2
- /Users/nicolasluck/.nvm/versions/node/v18.16.1/bin/node /Users/nicolasluck/.nvm/versions/node/v18.16.1/bin/yarn install
3
-
4
- PATH:
5
- /Users/nicolasluck/Library/pnpm:/Users/nicolasluck/.nvm/versions/node/v18.16.1/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Users/nicolasluck/.cargo/bin
6
-
7
- Yarn version:
8
- 1.22.19
9
-
10
- Node version:
11
- 18.16.1
12
-
13
- Platform:
14
- darwin arm64
15
-
16
- Trace:
17
- Error: ENOENT: no such file or directory, copyfile '/Users/nicolasluck/Library/Caches/Yarn/v6/npm-has-flag-3.0.0-b5d454dc2199ae225699f3467e5a07f3b955bafd-integrity/node_modules/has-flag/index.js' -> '/Users/nicolasluck/Coasys/code/ad4m/node_modules/@changesets/cli/node_modules/has-flag/index.js'
18
-
19
- npm manifest:
20
- {
21
- "name": "@coasys/ad4m",
22
- "description": "*The Agent-Centric Distributed Application Meta-ontology* or just: *Agent-Centric DApp Meta-ontology* * A new meta-ontology for interoperable, decentralized application design * A spanning-layer to enable seamless integration between Holochain DNAs, blockchains, linked-data structures/ontologies and centralized back-ends * The basis for turning distinct, monolithic and siloed apps into a global, open and interoperable sense-making network",
23
- "main": "lib/index.cjs",
24
- "module": "lib/index.js",
25
- "types": "lib/src/index.d.ts",
26
- "type": "module",
27
- "private": true,
28
- "scripts": {
29
- "build": "patch-package && tsc && pnpm run buildSchema && pnpm run bundle",
30
- "buildSchema": "node --es-module-specifier-resolution=node lib/src/buildSchema.js",
31
- "bundle": "rollup -c rollup.config.js",
32
- "test": "jest --forceExit"
33
- },
34
- "repository": {
35
- "type": "git",
36
- "url": "git+https://github.com/perspect3vism/ad4m.git"
37
- },
38
- "author": {
39
- "name": "Nicolas Luck",
40
- "email": "nicolas@lucksus.eu"
41
- },
42
- "contributors": [
43
- {
44
- "name": "Joshua Parkin",
45
- "email": "joshuadparkin@gmail.com"
46
- }
47
- ],
48
- "license": "CAL-1.0",
49
- "bugs": {
50
- "url": "https://github.com/perspect3vism/ad4m/issues"
51
- },
52
- "homepage": "https://ad4m.dev",
53
- "dependencies": {
54
- "@apollo/client": "3.7.10",
55
- "@holochain/client": "0.16.0",
56
- "@types/jest": "^26.0.14",
57
- "class-validator": "^0.13.1",
58
- "express": "4.18.2",
59
- "graphql": "15.7.2",
60
- "reflect-metadata": "^0.1.13",
61
- "type-graphql": "1.1.1"
62
- },
63
- "devDependencies": {
64
- "@apollo/server": "^4.9.4",
65
- "@rollup/plugin-alias": "^3.1.5",
66
- "@rollup/plugin-commonjs": "^20.0.0",
67
- "@rollup/plugin-node-resolve": "^13.0.4",
68
- "concat-md": "^0.5.0",
69
- "cross-fetch": "^3.1.4",
70
- "graphql-ws": "5.12.0",
71
- "honkit": "^4.0.0",
72
- "jest": "^26.6.0",
73
- "patch-package": "^8.0.0",
74
- "rollup": "^2.56.3",
75
- "ts-jest": "^26.5.6",
76
- "typescript": "^4.6.2",
77
- "ws": "8.13.0",
78
- "@types/node": "*",
79
- "@types/yargs": "*"
80
- },
81
- "patchedDependencies": {},
82
- "version": "0.9.1-prerelease"
83
-
84
- }
85
-
86
- yarn manifest:
87
- No manifest
88
-
89
- Lockfile:
90
- No lockfile