@coasys/ad4m 0.10.1-release-candidate-3-test-2 → 0.10.1-release-candidate-4-debug-strings

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.
@@ -1,73 +0,0 @@
1
- export function capitalize(str) {
2
- return str.charAt(0).toUpperCase() + str.slice(1);
3
- }
4
- // e.g. "name" -> "setName"
5
- export function propertyNameToSetterName(property) {
6
- return `set${capitalize(property)}`;
7
- }
8
- // e.g. "setName" -> "name"
9
- export function setterNameToPropertyName(setter) {
10
- return setter.replace("set", "").replace(/^[A-Z]/, (m) => m.toLowerCase());
11
- }
12
- export function singularToPlural(singular) {
13
- if (singular.endsWith("y")) {
14
- return singular.slice(0, -1) + "ies";
15
- }
16
- else {
17
- return singular + "s";
18
- }
19
- }
20
- export function pluralToSingular(plural) {
21
- if (plural.endsWith("ies")) {
22
- return plural.slice(0, -3) + "y";
23
- }
24
- else if (plural.endsWith("s")) {
25
- return plural.slice(0, -1);
26
- }
27
- else {
28
- return plural;
29
- }
30
- }
31
- // e.g. "comments" -> "addComment"
32
- export function collectionToAdderName(collection) {
33
- return `add${capitalize(pluralToSingular(collection))}`;
34
- }
35
- // e.g. "addEntry" -> "entries"
36
- export function collectionAdderToName(adderName) {
37
- let singular = adderName.substring(3);
38
- let plural = singularToPlural(singular);
39
- return plural.charAt(0).toLowerCase() + plural.slice(1);
40
- }
41
- // e.g. "comments" -> "removeComment"
42
- export function collectionToRemoverName(collection) {
43
- return `remove${capitalize(pluralToSingular(collection))}`;
44
- }
45
- // e.g. "removeEntry" -> "entries"
46
- export function collectionRemoverToName(removerName) {
47
- let singular = removerName.substring(6);
48
- let plural = singularToPlural(singular);
49
- return plural.charAt(0).toLowerCase() + plural.slice(1);
50
- }
51
- export function collectionSetterToName(adderName) {
52
- let singular = adderName.substring(13);
53
- let plural = singularToPlural(singular);
54
- return plural.charAt(0).toLowerCase() + plural.slice(1);
55
- }
56
- // e.g. "comments" -> "addComment"
57
- export function collectionToSetterName(collection) {
58
- return `setCollection${capitalize(pluralToSingular(collection))}`;
59
- }
60
- export function stringifyObjectLiteral(obj) {
61
- if (Array.isArray(obj)) {
62
- //@ts-ignore
63
- return `[${obj.map(stringifyObjectLiteral).join(", ")}]`;
64
- }
65
- const keys = Object.keys(obj);
66
- const stringifiedPairs = [];
67
- for (const key of keys) {
68
- const valueString = JSON.stringify(obj[key]);
69
- const keyValuePairString = `${key}: ${valueString}`;
70
- stringifiedPairs.push(keyValuePairString);
71
- }
72
- return `{${stringifiedPairs.join(', ')}}`;
73
- }
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