@tryghost/admin-api-schema 2.14.0 → 2.14.1

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/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./lib/admin-api-schema');
@@ -60,8 +60,8 @@ const list = ({version}) => {
60
60
  * @typedef {Object} ValidateOptions
61
61
  * @property {Object} options.data - data to validate
62
62
  * @property {'v2'|'v3'|'canary'} options.version - API version to data belongs to, e.g.: 'v2', 'canary'
63
- * @property {string} options.schema - name of the schema to validate against. Available schema names are returned by list() function
64
- * @property {string} options.definitions - name of the definition where schema belongs
63
+ * @property {string} [options.schema] - name of the schema to validate against. Available schema names are returned by list() function
64
+ * @property {string} [options.definition] - name of the definition where schema belongs
65
65
  */
66
66
 
67
67
  /**
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@tryghost/admin-api-schema",
3
- "version": "2.14.0",
3
+ "version": "2.14.1",
4
4
  "repository": "https://github.com/TryGhost/SDK/tree/master/packages/admin-api-schema",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
7
- "main": "lib/index.js",
7
+ "main": "index.js",
8
8
  "scripts": {
9
9
  "dev": "echo \"Implement me!\"",
10
10
  "test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'",
@@ -12,20 +12,21 @@
12
12
  "posttest": "yarn lint"
13
13
  },
14
14
  "files": [
15
- "lib/*"
15
+ "lib/*",
16
+ "index.js"
16
17
  ],
17
18
  "publishConfig": {
18
19
  "access": "public"
19
20
  },
20
21
  "devDependencies": {
21
- "c8": "7.11.0",
22
- "mocha": "7.2.0",
22
+ "c8": "7.11.2",
23
+ "mocha": "10.0.0",
23
24
  "should": "13.2.3",
24
- "sinon": "9.2.4"
25
+ "sinon": "13.0.2"
25
26
  },
26
27
  "dependencies": {
27
28
  "@tryghost/errors": "^1.0.0",
28
29
  "lodash": "^4.17.11"
29
30
  },
30
- "gitHead": "dbf4ab41a6964422987a68c4327336692a54527f"
31
+ "gitHead": "0a30384f3d568a43bfe0cee5fcf7e21c17a17842"
31
32
  }