@swagger-api/apidom-core 0.93.0 → 0.95.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.
@@ -1,5 +1,6 @@
1
1
  import { ApiDOMStructuredError } from '@swagger-api/apidom-error';
2
2
  class CloneError extends ApiDOMStructuredError {
3
+ value;
3
4
  constructor(message, structuredOptions) {
4
5
  super(message, structuredOptions);
5
6
  if (typeof structuredOptions !== 'undefined') {
@@ -1,5 +1,6 @@
1
1
  import { ApiDOMStructuredError } from '@swagger-api/apidom-error';
2
2
  class ElementIdentityError extends ApiDOMStructuredError {
3
+ value;
3
4
  constructor(message, structuredOptions) {
4
5
  super(message, structuredOptions);
5
6
  if (typeof structuredOptions !== 'undefined') {
@@ -69,6 +69,8 @@ const transcludeChildOfArrayElement = (search, replace, edges) => {
69
69
  */
70
70
 
71
71
  class Transcluder {
72
+ element;
73
+ edges;
72
74
  constructor({
73
75
  element
74
76
  }) {
@@ -2,6 +2,8 @@ import { visit } from "../../traversal/visitor.mjs";
2
2
  import serializeValue from "./value/index.mjs";
3
3
  class YamlVisitor {
4
4
  static indentChar = ' ';
5
+ result;
6
+ indent;
5
7
  constructor({
6
8
  directive = false,
7
9
  indent = 0
@@ -4,6 +4,9 @@ import { hasElementSourceMap } from "../predicates/index.mjs";
4
4
  import { visit } from "./visitor.mjs";
5
5
  import toValue from "../transformers/serializers/value/index.mjs";
6
6
  class Visitor {
7
+ result;
8
+ offset;
9
+ includeRightBound;
7
10
  constructor({
8
11
  offset = 0,
9
12
  includeRightBound = false
@@ -1,5 +1,7 @@
1
1
  import { visit } from "./visitor.mjs";
2
2
  class Visitor {
3
+ parentEdges;
4
+ parent;
3
5
  constructor() {
4
6
  this.parentEdges = new WeakMap();
5
7
  }
@@ -3,6 +3,7 @@ import { isFunction, noop } from 'ramda-adjunct';
3
3
  import { visit, PredicateVisitor } from "./visitor.mjs";
4
4
  import { isElement } from "../predicates/index.mjs";
5
5
  export class CallbackVisitor extends PredicateVisitor {
6
+ callback;
6
7
  constructor({
7
8
  callback = noop,
8
9
  ...rest
@@ -43,6 +43,10 @@ export const keyMapDefault = {
43
43
  SourceMap: ['content']
44
44
  };
45
45
  export class PredicateVisitor {
46
+ result;
47
+ predicate;
48
+ returnOnTrue;
49
+ returnOnFalse;
46
50
  constructor({
47
51
  predicate = stubFalse,
48
52
  returnOnTrue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swagger-api/apidom-core",
3
- "version": "0.93.0",
3
+ "version": "0.95.0",
4
4
  "description": "Tools for manipulating ApiDOM structures.",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -42,8 +42,8 @@
42
42
  "license": "Apache-2.0",
43
43
  "dependencies": {
44
44
  "@babel/runtime-corejs3": "^7.20.7",
45
- "@swagger-api/apidom-ast": "^0.93.0",
46
- "@swagger-api/apidom-error": "^0.93.0",
45
+ "@swagger-api/apidom-ast": "^0.95.0",
46
+ "@swagger-api/apidom-error": "^0.95.0",
47
47
  "@types/ramda": "~0.29.6",
48
48
  "minim": "~0.23.8",
49
49
  "ramda": "~0.29.1",
@@ -62,5 +62,5 @@
62
62
  "README.md",
63
63
  "CHANGELOG.md"
64
64
  ],
65
- "gitHead": "65ea9068f5d8b144293c2f91eb5fe5ebacfd947c"
65
+ "gitHead": "c56f672154649ce4b6236e4f5e12e05e34867fd7"
66
66
  }