@pod-os/core 0.1.0 → 0.1.1-c322656

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.
@@ -12,6 +12,10 @@ export declare class Thing {
12
12
  predicate: string;
13
13
  uris: string[];
14
14
  }[];
15
+ reverseRelations(): {
16
+ predicate: string;
17
+ uris: string[];
18
+ }[];
15
19
  anyValue(...predicateUris: string[]): undefined;
16
20
  description(): undefined;
17
21
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Statement } from "rdflib";
2
+ interface Accumulator {
3
+ [key: string]: string[];
4
+ }
5
+ /**
6
+ * accumulate all subject values referencing a resource grouped by predicate
7
+ * @param accumulator - Target javascript object to accumulate the values to
8
+ * @param current - A statement with data to add to the accumulator
9
+ */
10
+ export declare const accumulateSubjects: (accumulator: Accumulator, current: Statement) => {
11
+ [x: string]: string[];
12
+ };
13
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Statement } from "rdflib";
2
+ interface Accumulator {
3
+ [key: string]: string[];
4
+ }
5
+ /**
6
+ * accumulate all object values of a resource grouped by predicate
7
+ * @param accumulator - Target object to accumulate the values to
8
+ * @param current - A statement with data to add to the object
9
+ */
10
+ export declare const accumulateValues: (accumulator: Accumulator, current: Statement) => {
11
+ [x: string]: string[];
12
+ };
13
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pod-os/core",
3
- "version": "0.1.0",
4
- "description": "",
3
+ "version": "0.1.1-c322656",
5
4
  "main": "lib/index.js",
6
5
  "files": [
7
6
  "lib/"
8
7
  ],
9
8
  "scripts": {
10
9
  "test": "jest",
10
+ "test:watch": "jest --watch",
11
11
  "lint": "eslint ./src",
12
12
  "bundle": "esbuild src/index.ts --outfile=lib/index.js --bundle --target=esnext --global-name=PodOS",
13
13
  "build": "rimraf lib && npm run bundle && npm run ts-types",
@@ -20,21 +20,34 @@
20
20
  "author": "Angelo Veltens",
21
21
  "license": "MIT",
22
22
  "devDependencies": {
23
- "@babel/preset-env": "^7.15.8",
24
- "@babel/preset-typescript": "^7.15.0",
25
- "@types/jest": "^27.0.2",
26
- "@typescript-eslint/eslint-plugin": "^5.0.0",
27
- "@typescript-eslint/parser": "^5.0.0",
28
- "esbuild": "^0.13.5",
29
- "eslint": "^8.0.0",
30
- "jest": "^27.2.5",
31
- "prettier": "^2.4.1",
23
+ "@babel/preset-env": "^7.18.10",
24
+ "@babel/preset-typescript": "^7.18.6",
25
+ "@types/jest": "^29.0.0",
26
+ "@typescript-eslint/eslint-plugin": "^5.36.1",
27
+ "@typescript-eslint/parser": "^5.36.1",
28
+ "esbuild": "^0.15.6",
29
+ "eslint": "^8.23.0",
30
+ "jest": "^29.0.1",
31
+ "prettier": "^2.7.1",
32
32
  "rimraf": "^3.0.2",
33
- "typescript": "^4.4.4"
33
+ "typescript": "^4.8.2"
34
34
  },
35
35
  "dependencies": {
36
- "@inrupt/solid-client-authn-browser": "^1.11.2",
36
+ "@inrupt/solid-client-authn-browser": "^1.12.2",
37
37
  "buffer": "^6.0.3",
38
- "rdflib": "^2.2.9"
39
- }
38
+ "rdflib": "^2.2.20"
39
+ },
40
+ "types": "./lib/index.d.ts",
41
+ "directories": {
42
+ "lib": "lib"
43
+ },
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "git+https://github.com/pod-os/pod-os.git"
47
+ },
48
+ "bugs": {
49
+ "url": "https://github.com/pod-os/pod-os/issues"
50
+ },
51
+ "homepage": "https://github.com/pod-os/pod-os#readme",
52
+ "description": ""
40
53
  }