@swagger-api/apidom-core
Advanced tools
Comparing version 0.92.0 to 0.93.0
@@ -6,2 +6,6 @@ # Change Log | ||
# [0.93.0](https://github.com/swagger-api/apidom/compare/v0.92.0...v0.93.0) (2024-01-23) | ||
**Note:** Version bump only for package @swagger-api/apidom-core | ||
# [0.92.0](https://github.com/swagger-api/apidom/compare/v0.91.0...v0.92.0) (2024-01-12) | ||
@@ -8,0 +12,0 @@ |
{ | ||
"name": "@swagger-api/apidom-core", | ||
"version": "0.92.0", | ||
"version": "0.93.0", | ||
"description": "Tools for manipulating ApiDOM structures.", | ||
@@ -45,4 +45,4 @@ "publishConfig": { | ||
"@babel/runtime-corejs3": "^7.20.7", | ||
"@swagger-api/apidom-ast": "^0.92.0", | ||
"@swagger-api/apidom-error": "^0.92.0", | ||
"@swagger-api/apidom-ast": "^0.93.0", | ||
"@swagger-api/apidom-error": "^0.93.0", | ||
"@types/ramda": "~0.29.6", | ||
@@ -66,3 +66,3 @@ "minim": "~0.23.8", | ||
], | ||
"gitHead": "c7a45ee8d68ac82ac2ab93ebb639a95ced1d6e86" | ||
"gitHead": "65ea9068f5d8b144293c2f91eb5fe5ebacfd947c" | ||
} |
/// <reference path="./minim.d.ts" /> | ||
import { Element, StringElement, Meta, Attributes, ArrayElement, ArraySlice, NumberElement, NullElement, BooleanElement, ObjectElement, MemberElement, LinkElement, RefElement, Namespace as Namespace$1, NamespacePlugin, KeyValuePair, ObjectSlice } from 'minim'; | ||
export { ArrayElement, ArraySlice, Attributes, BooleanElement, Element, KeyValuePair, LinkElement, MemberElement, Meta, NamespacePluginOptions, NullElement, NumberElement, ObjectElement, ObjectSlice, RefElement, StringElement, refract } from 'minim'; | ||
import { ApiDOMStructuredError, ApiDOMErrorOptions } from '@swagger-api/apidom-error'; | ||
import stampit from 'stampit'; | ||
import { ApiDOMStructuredError, ApiDOMErrorOptions } from '@swagger-api/apidom-error'; | ||
import ShortUniqueId from 'short-unique-id'; | ||
@@ -59,3 +59,3 @@ export { BREAK, mergeAllVisitors } from '@swagger-api/apidom-ast'; | ||
get positionEnd(): Element | undefined; | ||
set position(position: PositionRange | null); | ||
set position(position: PositionRange | undefined); | ||
} | ||
@@ -156,11 +156,2 @@ | ||
type Callback = <T extends Element>(element: T) => void; | ||
interface TraverseOptions { | ||
callback?: Callback; | ||
predicate?: (element: any) => boolean; | ||
} | ||
declare const traverse: <T extends Element>(options: Callback | TraverseOptions, element: T) => void; | ||
declare const parents: <T extends Element>(element: T) => WeakMap<Element, Element>; | ||
declare const getNodeType: <T extends Element>(element: T) => string | undefined; | ||
@@ -201,5 +192,11 @@ declare const cloneNode: <T>(node: T) => T; | ||
interface Transcluder { | ||
transclude(search: Element, replace: Element): Element | undefined; | ||
type Callback = <T extends Element>(element: T) => void; | ||
interface TraverseOptions { | ||
callback?: Callback; | ||
predicate?: (element: any) => boolean; | ||
} | ||
declare const traverse: <T extends Element>(options: Callback | TraverseOptions, element: T) => void; | ||
declare const parents: <T extends Element>(element: T) => WeakMap<Element, Element | undefined>; | ||
/** | ||
@@ -209,3 +206,10 @@ * This is a mutating stamp. If you don't want your Element to be mutated, | ||
*/ | ||
declare const Transcluder: stampit.Stamp<Transcluder>; | ||
declare class Transcluder { | ||
protected element: Element; | ||
protected edges: WeakMap<Element, Element | undefined>; | ||
constructor({ element }: { | ||
element: Element; | ||
}); | ||
transclude(search: Element, replace: Element): Element | undefined; | ||
} | ||
@@ -212,0 +216,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
860790
17945
+ Added@swagger-api/apidom-ast@0.93.0(transitive)
+ Added@swagger-api/apidom-error@0.93.0(transitive)
- Removed@swagger-api/apidom-ast@0.92.0(transitive)
- Removed@swagger-api/apidom-error@0.92.0(transitive)