@divvydiary/divvydiary-json-schemas 1.2.55 → 1.2.57

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/.husky/pre-commit CHANGED
@@ -2,4 +2,4 @@
2
2
  . "$(dirname "$0")/_/husky.sh"
3
3
 
4
4
  npm test
5
- npx pretty-quick --staged
5
+ npx lint-staged
package/.prettierrc CHANGED
@@ -1,3 +1,4 @@
1
1
  {
2
- "tabWidth": 2
2
+ "tabWidth": 2,
3
+ "trailingComma": "es5"
3
4
  }
package/index.js CHANGED
@@ -5,6 +5,7 @@ const depot = require("./src/schemas/depot.json");
5
5
  const dividend = require("./src/schemas/dividend.json");
6
6
  const earning = require("./src/schemas/earning.json");
7
7
  const news = require("./src/schemas/news.json");
8
+ const performance = require("./src/schemas/performance.json");
8
9
  const portfolio = require("./src/schemas/portfolio.json");
9
10
  const split = require("./src/schemas/split.json");
10
11
  const symbol = require("./src/schemas/symbol.json");
@@ -20,6 +21,7 @@ module.exports = {
20
21
  dividend,
21
22
  earning,
22
23
  news,
24
+ performance,
23
25
  portfolio,
24
26
  split,
25
27
  symbol,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divvydiary/divvydiary-json-schemas",
3
- "version": "1.2.55",
3
+ "version": "1.2.57",
4
4
  "description": "JSON Schemas for DivvyDiary.com",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -34,10 +34,13 @@
34
34
  "ajv-keywords": "^5.1.0",
35
35
  "glob": "^9.1.0",
36
36
  "husky": "^8.0.1",
37
- "prettier": "^2.3.2",
38
- "pretty-quick": "^3.1.1"
37
+ "lint-staged": "^14.0.1",
38
+ "prettier": "^3.0.3"
39
39
  },
40
40
  "dependencies": {
41
41
  "ajv-formats": "^2.1.1"
42
+ },
43
+ "lint-staged": {
44
+ "*.{js,css,md}": "prettier --write"
42
45
  }
43
46
  }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$id": "https://divvydiary.com/schemas/performance.json",
3
+ "type": "object",
4
+ "title": "Performance",
5
+ "properties": {
6
+ "currency": {
7
+ "$ref": "https://divvydiary.com/schemas/defs.json#/properties/currency"
8
+ },
9
+ "buyins": {
10
+ "type": "array",
11
+ "items": {
12
+ "type": "number"
13
+ }
14
+ },
15
+ "dates": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string",
19
+ "format": "date"
20
+ }
21
+ },
22
+ "values": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "number"
26
+ }
27
+ },
28
+ "realizeds": {
29
+ "type": "array",
30
+ "items": {
31
+ "type": "number"
32
+ }
33
+ },
34
+ "dividends": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "number"
38
+ }
39
+ },
40
+ "starts": {
41
+ "type": "array",
42
+ "items": {
43
+ "type": "number"
44
+ }
45
+ }
46
+ }
47
+ }