@json-schema-tools/referencer 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/build/index.js +2 -2
  2. package/package.json +7 -4
package/build/index.js CHANGED
@@ -18,7 +18,8 @@ exports.NoTitleError = exports.stringifyCircular = void 0;
18
18
  var traverse_1 = __importDefault(require("@json-schema-tools/traverse"));
19
19
  var deleteAllProps = function (o) {
20
20
  Object.keys(o)
21
- .forEach(function (k) { delete o[k]; });
21
+ .forEach(function (k) { if (k !== 'title')
22
+ delete o[k]; });
22
23
  };
23
24
  var stringifyCircular = function (obj) {
24
25
  var cache = [];
@@ -101,7 +102,6 @@ function referencer(s, options) {
101
102
  return { $ref: "#/definitions/".concat(s.title) };
102
103
  }
103
104
  definitions[subSchema.title] = __assign({}, subSchema);
104
- deleteAllProps(subSchema);
105
105
  subSchema.$ref = "#/definitions/".concat(subSchema.title);
106
106
  return subSchema;
107
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-schema-tools/referencer",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "build/index.js",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -26,16 +26,19 @@
26
26
  "!build/**/*.test.*"
27
27
  ],
28
28
  "devDependencies": {
29
+ "@json-schema-tools/dereferencer": "^1.6.2",
29
30
  "@json-schema-tools/meta-schema": "^1.7.0",
31
+ "@json-schema-tools/titleizer": "^1.0.8",
32
+ "@json-schema-tools/transpiler": "^1.10.3",
30
33
  "@types/jest": "^29.2.0",
31
- "@types/node": "^18.11.7",
34
+ "@types/node": "^20.12.7",
32
35
  "@typescript-eslint/eslint-plugin": "^5.41.0",
33
36
  "@typescript-eslint/parser": "^5.41.0",
34
37
  "eslint": "^8.26.0",
35
38
  "jest": "^29.2.2",
36
39
  "ts-jest": "^29.0.3",
37
- "typedoc": "^0.23.18",
38
- "typescript": "^4.8.4"
40
+ "typedoc": "^0.25.13",
41
+ "typescript": "^5.4.4"
39
42
  },
40
43
  "dependencies": {
41
44
  "@json-schema-tools/traverse": "^1.10.1"