Compare commits
6 Commits
v2.2.1
...
af4b4407b8
| Author | SHA1 | Date | |
|---|---|---|---|
|
af4b4407b8
|
|||
|
7d2598efbd
|
|||
|
2990b32029
|
|||
|
0566ba2f7f
|
|||
| a2dc2e15f2 | |||
|
67cc3d9d74
|
10
index.js
10
index.js
@@ -1,7 +1,9 @@
|
|||||||
const fs = require('fs');
|
const contribution = require('./schemas/contribution');
|
||||||
const path = require('path');
|
const contributor = require('./schemas/contributor');
|
||||||
|
const expense = require('./schemas/expense');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
"contribution": JSON.parse(fs.readFileSync(path.join(__dirname, 'schemas', 'contribution.json'))),
|
contribution,
|
||||||
"contributor": JSON.parse(fs.readFileSync(path.join(__dirname, 'schemas', 'contributor.json')))
|
contributor,
|
||||||
|
expense
|
||||||
};
|
};
|
||||||
|
|||||||
13
package-lock.json
generated
Normal file
13
package-lock.json
generated
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"name": "@kosmos/schemas",
|
||||||
|
"version": "3.1.0",
|
||||||
|
"lockfileVersion": 2,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "@kosmos/schemas",
|
||||||
|
"version": "3.1.0",
|
||||||
|
"license": "MIT"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
14
package.json
14
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@kosmos/schemas",
|
"name": "@kosmos/schemas",
|
||||||
"version": "2.2.1",
|
"version": "3.1.0",
|
||||||
"description": "JSON-LD schemas for Kosmos data formats",
|
"description": "JSON-LD schemas for Kosmos data formats",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -9,20 +9,14 @@
|
|||||||
"keywords": [
|
"keywords": [
|
||||||
"ipfs",
|
"ipfs",
|
||||||
"kosmos",
|
"kosmos",
|
||||||
|
"kredits",
|
||||||
"remotestorage"
|
"remotestorage"
|
||||||
],
|
],
|
||||||
"author": "Kosmos Contributors",
|
"author": "Kosmos Contributors",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/67P/kosmos-schemas.git"
|
"url": "https://gitea.kosmos.org/kosmos/schemas.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"homepage": "https://gitea.kosmos.org/kosmos/schemas"
|
||||||
"brfs-babel": "^1.0.0"
|
|
||||||
},
|
|
||||||
"browserify": {
|
|
||||||
"transform": [
|
|
||||||
"brfs-babel"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
module.exports = {
|
||||||
"$schema": "https://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft-07/schema#",
|
||||||
"id": "https://schema.kosmos.org/Contribution",
|
"id": "https://schema.kosmos.org/Contribution",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
module.exports = {
|
||||||
"$schema": "https://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft-07/schema#",
|
||||||
"id": "https://schema.kosmos.org/Contributor",
|
"id": "https://schema.kosmos.org/Contributor",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
module.exports = {
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "https://schema.kosmos.org/Expense",
|
"$id": "https://schema.kosmos.org/Expense",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
Reference in New Issue
Block a user