@pod-os/core 0.1.0
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/Store.d.ts +10 -0
- package/lib/Store.spec.d.ts +1 -0
- package/lib/authentication/index.d.ts +11 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +35312 -0
- package/lib/thing/Thing.anyValue.spec.d.ts +1 -0
- package/lib/thing/Thing.d.ts +17 -0
- package/lib/thing/Thing.description.spec.d.ts +1 -0
- package/lib/thing/Thing.label.spec.d.ts +1 -0
- package/lib/thing/Thing.literals.spec.d.ts +1 -0
- package/lib/thing/Thing.relations.spec.d.ts +1 -0
- package/lib/thing/index.d.ts +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IndexedFormula } from "rdflib";
|
|
2
|
+
export declare class Thing {
|
|
3
|
+
readonly uri: string;
|
|
4
|
+
readonly store: IndexedFormula;
|
|
5
|
+
constructor(uri: string, store: IndexedFormula);
|
|
6
|
+
label(): string;
|
|
7
|
+
literals(): {
|
|
8
|
+
predicate: string;
|
|
9
|
+
values: string[];
|
|
10
|
+
}[];
|
|
11
|
+
relations(): {
|
|
12
|
+
predicate: string;
|
|
13
|
+
uris: string[];
|
|
14
|
+
}[];
|
|
15
|
+
anyValue(...predicateUris: string[]): undefined;
|
|
16
|
+
description(): undefined;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Thing";
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pod-os/core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"lib/"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "jest",
|
|
11
|
+
"lint": "eslint ./src",
|
|
12
|
+
"bundle": "esbuild src/index.ts --outfile=lib/index.js --bundle --target=esnext --global-name=PodOS",
|
|
13
|
+
"build": "rimraf lib && npm run bundle && npm run ts-types",
|
|
14
|
+
"start": "npm run bundle -- --serve=4444",
|
|
15
|
+
"ts-types": "tsc --emitDeclarationOnly --outDir lib"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"Solid"
|
|
19
|
+
],
|
|
20
|
+
"author": "Angelo Veltens",
|
|
21
|
+
"license": "MIT",
|
|
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",
|
|
32
|
+
"rimraf": "^3.0.2",
|
|
33
|
+
"typescript": "^4.4.4"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@inrupt/solid-client-authn-browser": "^1.11.2",
|
|
37
|
+
"buffer": "^6.0.3",
|
|
38
|
+
"rdflib": "^2.2.9"
|
|
39
|
+
}
|
|
40
|
+
}
|