Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

api-smart-diff

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-smart-diff - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

dist/cjs/apiCompare.js.map

4

browser/api-smart-diff.min.js

@@ -1,2 +0,2 @@

/*! api-smart-diff@0.4.1 */
var ApiSmartDiff=function(r){var n={};function a(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}return a.m=r,a.c=n,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(r,n,function(e){return t[e]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(I,e,t){"use strict";t.r(e),t.d(e,"messageTraitsRules",function(){return Q}),t.d(e,"messageRules",function(){return W}),t.d(e,"asyncApi2Rules",function(){return X}),t.d(e,"openapi3Rules",function(){return Z}),t.d(e,"jsonSchemaRules",function(){return P}),t.d(e,"serviceNodeRules",function(){return re}),t.d(e,"DIFF_META_KEY",function(){return q}),t.d(e,"DiffAction",function(){return d}),t.d(e,"ClassifierType",function(){return r}),t.d(e,"breaking",function(){return n}),t.d(e,"nonBreaking",function(){return a}),t.d(e,"unclassified",function(){return i}),t.d(e,"annotation",function(){return s}),t.d(e,"allNonBreaking",function(){return o}),t.d(e,"allBreaking",function(){return c}),t.d(e,"onlyAddBreaking",function(){return B}),t.d(e,"addNonBreaking",function(){return f}),t.d(e,"allUnclassified",function(){return u}),t.d(e,"allAnnotation",function(){return l}),t.d(e,"breakingIf",function(){return p}),t.d(e,"breakingIfAfterTrue",function(){return h}),t.d(e,"added",function(){return j}),t.d(e,"removed",function(){return k}),t.d(e,"replaced",function(){return V}),t.d(e,"renamed",function(){return F}),t.d(e,"unchanged",function(){return m}),t.d(e,"isEmptyObject",function(){return g}),t.d(e,"typeOf",function(){return b}),t.d(e,"parsePath",function(){return K}),t.d(e,"buildPath",function(){return v}),t.d(e,"getPathRules",function(){return N}),t.d(e,"getPathMatchFunc",function(){return z}),t.d(e,"findExternalRefs",function(){return L}),t.d(e,"matchRule",function(){return M}),t.d(e,"objArray",function(){return O}),t.d(e,"resolveRef",function(){return R}),t.d(e,"getValueByPath",function(){return U}),t.d(e,"setValueByPath",function(){return J}),t.d(e,"mergeValues",function(){return x}),t.d(e,"ApiCompare",function(){return E}),t.d(e,"JsonCompare",function(){return ne}),t.d(e,"apiDiff",function(){return se}),t.d(e,"apiMerge",function(){return oe}),t.d(e,"apiDiffTree",function(){return ce});var d,r;function y(e,t){var r={};for(a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r}const q="$diff",{breaking:n,nonBreaking:a,unclassified:i,annotation:s}=((t=d=d||{}).add="add",t.remove="remove",t.replace="replace",t.rename="rename",t.test="test",(e=r=r||{}).breaking="breaking",e.nonBreaking="non-breaking",e.annotation="annotation",e.unclassified="unclassified",r),o=[a,a,a],c=[n,n,n],B=[n,a,a],f=[a,n,n],u=[i,i,i],l=[s,s,s],p=e=>e?n:a,h=({after:e})=>p(e),j=(e,t)=>({path:e,after:t,action:d.add}),k=(e,t)=>({path:e,before:t,action:d.remove}),V=(e,t,r)=>({path:e,before:t,after:r,action:d.replace}),F=(e,t,r)=>({path:e,before:t,after:r,action:d.rename}),m=(e,t)=>({path:e,before:t,action:d.test}),g=e=>{for(const t in e)return!1;return!0},b=e=>Array.isArray(e)?"array":null==e?"null":typeof e,K=e=>{var[,...e]=e.split("/").map(e=>e.replace(new RegExp("~1","g"),"/"));return e},v=e=>"/"+e.map(e=>String(e).replace(new RegExp("/","g"),"~1")).join("/"),N=(e,t,r)=>{let n=e,a=r;for(var i of[...t]){if(a=void 0!==i&&void 0!==a?a[i]:void 0,n.hasOwnProperty("/"+i)&&"number"!=typeof i||(i="*"),!n.hasOwnProperty("/"+i))return;{const s=n["/"+i];if(Array.isArray(s))return s;n="function"==typeof s?s(a):s}}return n},z=(e,t,r)=>{e=N(e,t,r);return e&&!Array.isArray(e)?e["#"]:void 0},L=e=>{if("object"!=typeof e)return[];let t=new Set;if("array"===b(e))for(const n of e)"object"==typeof n&&(t=new Set([...t,...L(n)]));else for(const a of Object.keys(e)){var r;"$ref"===a?([r]=e[a].split("#"),r&&t.add(r)):"object"==typeof e[a]&&(t=new Set([...t,...L(e[a])]))}return[...t]},M=(e,t)=>(e["#"]=t,e),O=(r,e)=>M(e,({before:e,after:t})=>t.value[r]===e.value[r]),R=(e,t,r)=>{const n=e["$ref"],a=y(e,["$ref"]);if(n){var[i,s]=n.split("#");if(i&&!r.has(i))return e;r=U(i?r.get(i):t,K(s));return g(a)?r:x(r,a)}return e},U=(e,t)=>{let r=e;for(const n of t)if(void 0===(r="array"===b(r)?r[+n]:r[n]))break;return r},J=(e,t,r,n=0)=>{var a;n>=t.length||("object"!=typeof e[a=t[n]]&&(e[a]={}),n===t.length-1?e[a]=r:J(e[a],t,r,n+1))},x=(e,t)=>{if(Array.isArray(e))return Array.isArray(t)?e.push(...t):e;if("object"!=typeof e||"object"!=typeof t)return t;for(const r of Reflect.ownKeys(t))e[r]=x(e[r],t[r]);return e},A=[n,a,({before:e,after:t})=>p(t<e)],w=[n,a,({before:e,after:t})=>p(e<t)],Y=[h,a,h],S=[h,a,h],G=[n,a,({before:e,after:t})=>p(!!(e%t))],H=({after:e,up:t})=>{return void 0!==(null==(t=null==(t=null==(t=t(2).after)?void 0:t.properties)?void 0:t[e])?void 0:t.default)?a:n},P=(e=u)=>({"/":e,"/title":l,"/multipleOf":G,"/maximum":A,"/exclusiveMaximum":Y,"/minimum":w,"/exclusiveMinimum":Y,"/maxLength":A,"/minLength":w,"/pattern":[n,a,n],"/maxItems":A,"/minItems":w,"/uniqueItems":S,"/maxProperties":A,"/minProperties":w,"/required":{"/":B,"/*":[H,a,H]},"/enum":{"/":[n,a,n],"/*":[a,n,n]},"/type":[n,a,n],"/not":{"/":[n,a,n],"/*":()=>P(c)},"/allOf":{"/":[n,a,n],"/*":()=>P(c)},"/oneOf":{"/":[n,a,n],"/*":()=>P(f)},"/anyOf":{"/":[n,a,n],"/*":()=>P(f)},"/items":()=>P(f),"/properties":{"/":[n,a,n],"/*":()=>P(f)},"/additionalProperties":()=>P([n,n,h]),"/description":l,"/format":[n,a,n],"/default":[a,n,n],"/nullable":S,"/discriminator":{"/":u,"/propertyName":u,"/mapping":u},"/readOnly":S,"/writeOnly":S,"/example":l,"/examples":l,"/externalDocs":l,"/deprecated":S,"/xml":{"/":u,"/name":u,"/namespace":u,"/prefix":u,"/attribute":u,"/wrapped":u}});var t={"/":f,"/location":f,"/description":l},e={"/summary":l,"/tags":l,"/externalDocs":l,"/bindings":u},_=Object.assign({"/":f,"/*":f,"/operationId":f,"/description":l},e);const Q=Object.assign({"/":f,"/*":f,"/headers":u,"/correlationId":t,"/schemaFormat":c,"/contentType":f,"/name":o,"/title":o,"/examples":l},e),W=Object.assign({"/":c,"/headers":u,"/correlationId":t,"/schemaFormat":c,"/contentType":f,"/name":o,"/title":o,"/description":o,"/examples":l,"/traits":Q,"/payload":P(c)},e);t=Object.assign({"/":f,"/operationId":f,"/description":l,"/traits":_,"/message":W},e),_={"/":f,"/version":f,"/termsOfService":f,"/license":{"/":f,"/name":c,"/url":B},"/title":l,"/description":l,"/contact":{"/":l,"/name":l,"/url":l,"/email":l}},e={"/":f,"/*":{"/":f,"/url":f,"/description":l,"/protocol":c,"/protocolVersion":c,"/variables":{"/":f,"/*":{"/":f,"/enum":{"/":f,"/*":f},"/default":c,"/description":l,"/examples":l}},"/security":{"/":c,"/*":c},"/bindings":u}},t={"/":f,"/description":o,"/bindings":u,"/subscribe":t,"/publish":t,"/parameters":{"/":c,"/*":{"/":f,"/description":o,"/schema":P(c),"/location":c}}};const X={"/asyncapi":f,"/id":l,"/defaultContentType":c,"/info":_,"/servers":e,"/channels":{"/":f,"/*":t},"/components":o,"/tags":l,"/externalDocs":l};var _={"/":[a,n,n],"/*":{"/":[a,n,n],"/url":[a,n,n],"/description":l,"/variables":{"/":[a,n,n],"/*":{"/":[a,n,n],"/enum":{"/":[a,n,n],"/*":[a,n,n]},"/default":[n,n,n],"/description":l}}}},e={"/":[a,n,n],"/*":{"/":[a,n,n],"/name":[a,n,e=>{return"path"===(null==(e=e.up().before)?void 0:e.in)?a:n}],"/in":[a,n,n],"/description":l,"/required":[n,a,h],"/deprecated":[n,a,h]}},t={"/":[a,n,n],"/*":{"/":[a,n,n],"/description":l,"/required":[n,a,h],"/deprecated":[n,a,h]}},T={"/":[a,a,a],"/*":{"/contentType":[a,n,n],"/headers":t,"/style":[a,n,n],"/explode":[a,n,n],"/allowReserved":[a,n,n]}},T={"/":[a,n,n],"/*":{"/":[a,n,n],"/schema":P(c),"/example":l,"/examples":l,"/encoding":T}},C={"/":[a,n,n],"/description":l,"/content":T,"/required":[n,a,e=>e.after?n:a]},T={"/":[a,n,n],"/*":{"/":[a,n,n],"/description":l,"/headers":t,"/content":T}},D={"/":[n,a,i],"/*":[n,a,i]},$={"/":[a,n,n],"/tags":l,"/summary":l,"/description":l,"/externalDocs":l,"/operationId":[a,n,n],"/parameters":e,"/requestBody":C,"/responses":T,"/deprecated":[n,a,h],"/security":D,"/servers":_};const Z={"/openapi":[a,n,n],"/info":{"/":[a,n,n],"/title":l,"/description":l,"/termsOfService":l,"/contact":l,"/licence":{"/":[a,n,n],"/name":[n,n,n],"/url":[n,a,a]},"/version":l},"/servers":_,"/paths":($={"/":[a,n,n],"/*":{"/":[a,n,a],"/summary":l,"/description":l,"/*":$,"/servers":_,"/parameters":e}},M($,({before:e,after:t})=>{return String(e.key).replace(new RegExp("{.*?}","g"),"*")===String(t.key).replace(new RegExp("{.*?}","g"),"*")})),"/components":{"/":[a,a,a],"/schemas":{"/":[a,n,n],"/*":P(f)},"/responses":{"/":[a,n,n],"/*":T},"/parameters":{"/":[a,n,n],"/*":e},"/examples":l,"/requestBodies":{"/":[a,n,n],"/*":C},"/headers":t,"/securitySchemes":{"/":[n,a,n],"/*":{"/":[n,a,n],"/type":[n,a,n],"/description":l,"/name":[n,a,n],"/in":[n,a,n],"/scheme":[n,a,n],"/bearerFormat":l,"/flows":[n,a,n],"/openIdConnectUrl":l}}},"/security":D,"/tags":l,"/externalDocs":l};_=e=>M(e,({before:{value:e},after:{value:t}})=>{var r;return t.type===e.type&&("model"===t.type?t.name===e.name:(null==(r=e.data.path)?void 0:r.replace(new RegExp("{.*?}","g"),"*"))===(null==(r=t.data.path)?void 0:r.replace(new RegExp("{.*?}","g"),"*"))&&e.data.method===t.data.method)}),$={"/name":[a,n,n],"/style":u,"/description":l,"/explode":u,"/required":[n,a,h],"/deprecated":[n,a,h]},T={"/":[a,n,n],"/*":$},e={"/":f,"/*":{"/":[a,n,n],"/mediaType":[a,n,n],"/schema":P(c),"/examples":O("key",{"/":l,"/*":l}),"/encodings":[a,n,n]}},C={"/path":O("name",T),"/query":O("name",{"/":[a,n,n],"/*":Object.assign(Object.assign({},$),{"/allowEmptyValue":[n,a,h],"/allowReserved":[n,a,h]})}),"/headers":O("name",T),"/cookie":O("name",T),"/body":{"/":[a,n,n],"/contents":O("mediaType",e),"/required":[n,a,h],"/description":l}},t={"/":u,"/*":{"/name":[a,n,n],"/style":u,"/description":l,"/explode":u,"/required":[n,a,h],"/deprecated":[n,a,h]}},D={"/":f,"/*":{"/":f,"/code":u,"/contents":O("mediaType",e),"/headers":O("name",t),"/description":l}},$={"/":[a,n,n],"/url":[a,n,n],"/name":l,"/description":l,"/variables":[a,n,n]},T={"/":[n,a,i],"/*":[n,a,i]};const ee={"/":[a,n,n],"/data":()=>P(f),"/*":l},te={"/":[a,n,n],"/data":{"/id":l,"/iid":l,"/tags":l,"/summary":l,"/description":l,"/method":[a,n,n],"/path":[a,n,n],"/request":C,"/responses":O("code",D),"/servers":{"/":u,"/*":$},"/callbacks":_({"/callbackName":l,"/method":[a,n,n],"/path":[a,n,n],"/request":C,"/responses":O("code",D),"/deprecated":u,"/internal":u,"/extensions":u}),"/security":T,"/deprecated":[n,a,h],"/internal":u,"/extensions":u},"/*":l};e={"/id":l,"/iid":l,"/tags":l,"/summary":l,"/description":l,"/name":l,"/version":l,"/servers":{"/":[a,n,n],"/*":$},"/security":T,"/securitySchemes":O("name",{"/":f,"/*":{"/":[n,a,n],"/type":[n,a,n],"/description":l,"/name":[n,a,n],"/in":[n,a,n],"/scheme":[n,a,n],"/bearerFormat":l,"/flows":[n,a,n],"/openIdConnectUrl":l}}),"/termsOfService":l,"/contact":l,"/license":[n,n,n],"/logo":l};const re={"/*":l,"/data":e,"/children":_({"/":[a,n,n],"/*":({type:e})=>"model"===e?ee:te}),"/components":{"/":[a,a,a],"/schemas":{"/":[a,n,n],"/*":P(f)}}};class ne{constructor(e,t,r={}){this.before=e,this.after=t,this._merged={},this._formatMergeMeta=e=>Object.assign({action:e.action},e.action===d.replace||e.action===d.rename?{replaced:e.before}:{}),this.trimStrings=r.trimStrings,this.caseSensitive=r.caseSensitive,this.strictArrays=r.strictArrays,this.matchRules=r.matchRules||{},this.diffKey=r.metaKey||q,this.arrayMeta=r.arrayMeta,this.formatMergedMeta=r.formatMergedMeta||this._formatMergeMeta.bind(this)}get merged(){return this._merged.value}setMeta(e,t,r){void 0===e[this.diffKey]&&(e[this.diffKey]={}),e[this.diffKey][t]=r}checkMatch(e,t,r,n,a){const i=this.getMatchFunc(e);return!!i&&i({path:e,before:{key:n,value:t[n],parent:t,source:this.before},after:{key:a,value:r[a],parent:r,source:this.after}})}getMatchFunc(e){e=v(e);return this.matchRules[e]}compare(){return this.compareAny(this.before,this.after).diffs}buildDiffTree(){return this.compareAny(this.before,this.after).diffTree}merge(){return this.compareAny(this.before,this.after),this._merged.value}normalizeString(e){return e=this.trimStrings?e.trim():e,e=this.caseSensitive?e:e.toLowerCase()}mergeResults(e,t,r=!1){const n={diffs:[],diffTree:{}};for(var a of Object.keys(e)){var i,s,{diffs:o,diff:c,diffTree:f,parentMeta:u}=e[a];c&&c.action!==d.test?(s=c["path"],i=y(c,["path"]),s=s[s.length-1],this.setMeta(n.diffTree,s,i),n.diffs.push(c),r&&!this.arrayMeta?(void 0===n.parentMeta&&(n.parentMeta={}),n.parentMeta[s]=this.formatMergedMeta(c)):c.action===d.rename?this.setMeta(t,c.after,this.formatMergedMeta(c)):this.setMeta(t,s,this.formatMergedMeta(c)),a):(o.length&&(n.diffTree[a]=f,n.diffs.push(...o)),u&&this.setMeta(t,r?+a:a,{array:u}))}return n}mergeValue({action:e,before:t,after:r}){return e===d.test||e===d.remove?t:r}compareResult(e){return e.action===d.test?{diffs:[],diff:e}:{diffs:[e],diff:e}}compareAny(e,t,r=[],n=this._merged,a="value"){if(b(e)!==b(t))return n[a]=t,this.compareResult(V(r,e,t));switch(b(e)){case"object":return n[a]={},this.compareObjects(e,t,r,n[a]);case"array":return n[a]=[],this.compareArrays(e,t,r,n[a]);default:var i=("string"==typeof e?this.normalizeString(e)===this.normalizeString(t):e===t)?m(r,e):V(r,e,t);return n[a]=this.mergeValue(i),this.compareResult(i)}}compareObjects(t,r,n,e){const a={};if(g(t)&&g(r))return this.compareResult(m(n,t));var i=Object.keys(t);const s=new Set(Object.keys(r));for(const u of i){var o,c=[...s].find(e=>e===u||this.checkMatch(n,t,r,u,e));c&&c!==u&&(a[c]=this.compareResult(F(n,u,c))),void 0===c?(o=k([...n,u],t[u]),e[u]=this.mergeValue(o),a[u]=this.compareResult(o)):(a[u]=this.compareAny(t[u],r[c],[...n,u],e,c),s.delete(c))}for(const d of s){var f=j([...n,d],r[d]);e[d]=this.mergeValue(f),a[d]=this.compareResult(f)}return this.mergeResults(a,e)}compareArrays(t,r,n,e){if(0===t.length&&0===r.length)return this.compareResult(m(n,t));var a=this.getMatchFunc(n);if(!this.strictArrays&&!a)return this.compareEnums(t,r,n,e);const i={},s=new Set(r.keys());for(const u of t.keys()){var o,c=[...n,u],f=a?[...s].find(e=>this.checkMatch(n,t,r,u,e)):u;void 0===f||f>=r.length?(o=k(c,t[u]),e[u]=this.mergeValue(o),i[u]=this.compareResult(o)):(s.delete(f),i[u]=this.compareAny(t[u],r[f],c,e,u))}let u=t.length;for(const l of s){var d=j([...n,u],r[l]);e[u]=this.mergeValue(d),i[u++]=this.compareResult(d)}return this.mergeResults(i,e,!0)}compareEnums(t,r,n,a){const i={},e=[],s=[],o=new Set,c=new Set;for(const y of t.keys()){let e=[];for(const b of r.keys())if(!o.has(b)){var f={},u=this.compareAny(t[y],r[b],[...n,y],f);if(!u.diffs.length){o.add(b),c.add(y),e={value:f.value,res:u};break}e[b]={value:f.value,res:u,diffs:typeof t[y]==typeof r[b]?u.diffs.length:-1}}s.push(e)}for(const y of t.keys()){const v=s[y];if(Array.isArray(v)){const M=[...Array(r.length).keys()].filter(e=>{return 0<=((null==(e=v[e])?void 0:e.diffs)||0)});var d,l=M.sort((e,t)=>{return((null==(e=v[e])?void 0:e.diffs)||0)-((null==(e=v[t])?void 0:e.diffs)||0)});for(const O of r.keys()){let e=l[O];if(!o.has(e)){for(const R of t.keys()){var p=s[R];if(Array.isArray(p)&&!c.has(R)&&p[e]<v[e]){e=-1;break}}if(0<=e){var{value:h,res:m}=v[e];a[y]=h,i[y]=m,c.add(y),o.add(e);break}}}c.has(y)||(d=k([...n,y],t[y]),a[y]=this.mergeValue(d),i[y]=this.compareResult(d))}else e[y]=[],a[y]=v.value,i[y]=v.res}let y=t.length;for(var g of r.keys())o.has(g)||(g=j([...n,y],r[g]),a[y]=this.mergeValue(g),i[y++]=this.compareResult(g));return this.mergeResults(i,a,!0)}}class ae{constructor(e,t){this._engine=e,this._path=t}get before(){return this._engine.resolvePath("before",this._path)}get after(){var e=this._engine.getRenamedPath(this._path);return this._engine.resolvePath("after",e)}get up(){return(e=1)=>new ae(this._engine,this._path.slice(0,-e))}get root(){return new ae(this._engine,[])}}const ie=Symbol("renamed");class E extends ne{constructor(e,t,r={}){super(e,t,r),this.before=e,this.after=t,this.beforeRefs=new Set,this.afterRefs=new Set,this.beforeCache=new Map,this.afterCache=new Map,this.compareCache=new Map,this.renamedPath={},this._formatMergeMeta=e=>Object.assign({type:e.type,action:e.action},e.action===d.replace||e.action===d.rename?{replaced:e.before}:{}),this.resolvePath=(e,t)=>{var r="before"===e?this.beforeCache:this.afterCache;let n=this[e];for(const i of t){var a=Array.isArray(n)?n[+i]:n[i];if(void 0===(n=void 0===a&&n.$ref?(n=R(n,this[e],r),Array.isArray(n)?n[+i]:n[i]):a))break}return n.$ref?R(n,this[e],r):n},this.rules="string"==typeof r.rules?this.getBaseRules(r.rules):r.rules||{},this.formatMergedMeta=r.formatMergedMeta||this._formatMergeMeta.bind(this);var n=r.externalRefs||{};for(const a of Object.keys(n))this.beforeCache.set(a,n[a]),this.afterCache.set(a,n[a])}getMatchFunc(e){return z(this.rules,e,this.before)||super.getMatchFunc(e)}static apiDiff(e,t,r={}){return new E(e,t,r).compare()}static apiDiffTree(e,t,r={}){return new E(e,t,r).buildDiffTree()}static apiMerge(e,t,r={}){return new E(e,t,r).merge()}dereference(e,t,r){const n="#"+v(r),[a,i]="before"===e?[this.beforeRefs,this.beforeCache]:[this.afterRefs,this.afterCache];r=()=>{t.$ref&&a.delete(t.$ref),a.delete(n)};return a.has(t.$ref)?[t,r]:(a.add(n),t.$ref&&a.add(t.$ref),[R(t,this[e],i),r])}getBaseRules(e){switch(e){case"OpenApi3":return Z;case"AsyncApi2":return X;case"JsonSchema":return P()}}classifyDiff(e){const t=e;if("test"===e.action)return t;var r="rename"===e.action?[...e.path,"*",""]:[...e.path,""],r=N(this.rules,r,this.merged);const n=(Array.isArray(r)?r:u)["rename"===e.action?2:["add","remove","replace"].indexOf(e.action)];try{return t.type="function"==typeof n?n(new ae(this,e.path)):n,t}catch(e){return t.type=i,t}}getRenamedPath(t){const r=[...t];let n=this.renamedPath;for(let e=0;e<t.length;e++){var a=t[e];if(void 0===n[a])break;(n=n[a])[ie]&&(r[e]=n[ie])}return r}compareResult(e){return e.action===d.rename&&J(this.renamedPath,[...e.path,e.before,ie],e.after),super.compareResult(this.classifyDiff(e))}compareObjects(e,t,r,n){var a,i=e["$ref"],s=y(e,["$ref"]),o=e["$ref"],c=y(e,["$ref"]),f=i?i===o?i:i+":"+o:"#"+v(r);const u=this.compareCache.get(f);if(u&&(g(s)&&g(c)||!i&&!o))return x(n,u.merged),a=u.result.diffs.map(e=>Object.assign(Object.assign({},e),{path:[...r,...e.path]})),Object.assign(Object.assign({},u.result),{diffs:a});const[d,l]=this.dereference("before",e,r),[p,h]=this.dereference("after",t,r),m=super.compareObjects(d,p,r,n);return i&&o&&g(s)&&g(c)&&(a=m.diffs.map(e=>Object.assign(Object.assign({},e),{path:e.path.slice(r.length)})),this.compareCache.set(f,{result:Object.assign(Object.assign({},m),{diffs:a}),merged:n})),h(),l(),m}}const se=E.apiDiff,oe=E.apiMerge,ce=E.apiDiffTree}]);
/*! api-smart-diff@0.4.2 */
var ApiSmartDiff=function(r){var n={};function a(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}return a.m=r,a.c=n,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(r,n,function(e){return t[e]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(I,e,t){"use strict";t.r(e),t.d(e,"messageTraitsRules",function(){return W}),t.d(e,"messageRules",function(){return X}),t.d(e,"asyncApi2Rules",function(){return Z}),t.d(e,"openapi3Rules",function(){return ee}),t.d(e,"jsonSchemaRules",function(){return P}),t.d(e,"serviceNodeRules",function(){return ne}),t.d(e,"DIFF_META_KEY",function(){return q}),t.d(e,"DiffAction",function(){return d}),t.d(e,"ClassifierType",function(){return r}),t.d(e,"breaking",function(){return n}),t.d(e,"nonBreaking",function(){return a}),t.d(e,"unclassified",function(){return i}),t.d(e,"annotation",function(){return s}),t.d(e,"allNonBreaking",function(){return o}),t.d(e,"allBreaking",function(){return c}),t.d(e,"onlyAddBreaking",function(){return f}),t.d(e,"addNonBreaking",function(){return u}),t.d(e,"allUnclassified",function(){return l}),t.d(e,"allAnnotation",function(){return p}),t.d(e,"PathPointer",function(){return B}),t.d(e,"breakingIf",function(){return h}),t.d(e,"breakingIfAfterTrue",function(){return m}),t.d(e,"added",function(){return j}),t.d(e,"removed",function(){return x}),t.d(e,"replaced",function(){return V}),t.d(e,"renamed",function(){return F}),t.d(e,"unchanged",function(){return g}),t.d(e,"isEmptyObject",function(){return b}),t.d(e,"typeOf",function(){return v}),t.d(e,"parsePath",function(){return K}),t.d(e,"buildPath",function(){return N}),t.d(e,"getPathRules",function(){return z}),t.d(e,"getPathMatchFunc",function(){return L}),t.d(e,"findExternalRefs",function(){return U}),t.d(e,"matchRule",function(){return M}),t.d(e,"objArray",function(){return O}),t.d(e,"resolveRef",function(){return R}),t.d(e,"getValueByPath",function(){return J}),t.d(e,"setValueByPath",function(){return Y}),t.d(e,"mergeValues",function(){return k}),t.d(e,"ApiCompare",function(){return $}),t.d(e,"JsonCompare",function(){return ae}),t.d(e,"apiDiff",function(){return oe}),t.d(e,"apiMerge",function(){return ce}),t.d(e,"apiDiffTree",function(){return fe});var d,r;function y(e,t){var r={};for(a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r}const q="$diff",{breaking:n,nonBreaking:a,unclassified:i,annotation:s}=((t=d=d||{}).add="add",t.remove="remove",t.replace="replace",t.rename="rename",t.test="test",(e=r=r||{}).breaking="breaking",e.nonBreaking="non-breaking",e.annotation="annotation",e.unclassified="unclassified",r),o=[a,a,a],c=[n,n,n],f=[n,a,a],u=[a,n,n],l=[i,i,i],p=[s,s,s];class B{constructor(e,t){this.key=e,this.parent=t,this.items=[],void 0===e?this.escapedKey="":(this.escapedKey="string"==typeof e?e.replace(new RegExp("~1","g"),"/"):String(e),this.items=t?[...t.items,e]:[e])}get ref(){return this.parent?this.parent.ref+"/"+this.escapedKey:this.escapedKey}[Symbol.iterator](){let e=0;return{next:()=>({done:!(e<this.items.length),value:this.items[e++]})}}childPath(e){return new B(e,this)}}const h=e=>e?n:a,m=({after:e})=>h(e),j=(e,t)=>({path:e.items,after:t,action:d.add}),x=(e,t)=>({path:e.items,before:t,action:d.remove}),V=(e,t,r)=>({path:e.items,before:t,after:r,action:d.replace}),F=(e,t,r)=>({path:e.items,before:t,after:r,action:d.rename}),g=(e,t)=>({path:e.items,before:t,action:d.test}),b=e=>{for(const t in e)return!1;return!0},v=e=>Array.isArray(e)?"array":null==e?"null":typeof e,K=e=>{var[,...e]=e.split("/").map(e=>e.replace(new RegExp("~1","g"),"/"));return e},N=e=>"/"+e.map(e=>String(e).replace(new RegExp("/","g"),"~1")).join("/"),z=(e,t,r)=>{let n=e,a=r;for(var i of[...t]){if(a=void 0!==i&&void 0!==a?a[i]:void 0,n.hasOwnProperty("/"+i)&&"number"!=typeof i||(i="*"),!n.hasOwnProperty("/"+i))return;{const s=n["/"+i];if(Array.isArray(s))return s;n="function"==typeof s?s(a):s}}return n},L=(e,t,r)=>{e=z(e,t.items,r);return e&&!Array.isArray(e)?e["#"]:void 0},U=e=>{if("object"!=typeof e)return[];let t=new Set;if("array"===v(e))for(const n of e)"object"==typeof n&&(t=new Set([...t,...U(n)]));else for(const a of Object.keys(e)){var r;"$ref"===a?([r]=e[a].split("#"),r&&t.add(r)):"object"==typeof e[a]&&(t=new Set([...t,...U(e[a])]))}return[...t]},M=(e,t)=>(e["#"]=t,e),O=(r,e)=>M(e,({before:e,after:t})=>t.value[r]===e.value[r]),R=(e,t,r)=>{const n=e["$ref"],a=y(e,["$ref"]);if(n){var[i,s]=n.split("#");if(i&&!r.has(i))return e;r=J(i?r.get(i):t,K(s));return b(a)?r:k(r,a)}return e},J=(e,t)=>{let r=e;for(const n of t)if(void 0===(r="array"===v(r)?r[+n]:r[n]))break;return r},Y=(e,t,r,n=0)=>{var a;n>=t.length||("object"!=typeof e[a=t[n]]&&(e[a]={}),n===t.length-1?e[a]=r:Y(e[a],t,r,n+1))},k=(e,t)=>{if(Array.isArray(e))return Array.isArray(t)?e.push(...t):e;if("object"!=typeof e||"object"!=typeof t)return t;for(const r of Reflect.ownKeys(t))e[r]=k(e[r],t[r]);return e},A=[n,a,({before:e,after:t})=>h(t<e)],w=[n,a,({before:e,after:t})=>h(e<t)],G=[m,a,m],S=[m,a,m],H=[n,a,({before:e,after:t})=>h(!!(e%t))],Q=({after:e,up:t})=>{return void 0!==(null==(t=null==(t=null==(t=t(2).after)?void 0:t.properties)?void 0:t[e])?void 0:t.default)?a:n},P=(e=l)=>({"/":e,"/title":p,"/multipleOf":H,"/maximum":A,"/exclusiveMaximum":G,"/minimum":w,"/exclusiveMinimum":G,"/maxLength":A,"/minLength":w,"/pattern":[n,a,n],"/maxItems":A,"/minItems":w,"/uniqueItems":S,"/maxProperties":A,"/minProperties":w,"/required":{"/":f,"/*":[Q,a,Q]},"/enum":{"/":[n,a,n],"/*":[a,n,n]},"/type":[n,a,n],"/not":{"/":[n,a,n],"/*":()=>P(c)},"/allOf":{"/":[n,a,n],"/*":()=>P(c)},"/oneOf":{"/":[n,a,n],"/*":()=>P(u)},"/anyOf":{"/":[n,a,n],"/*":()=>P(u)},"/items":()=>P(u),"/properties":{"/":[n,a,n],"/*":()=>P(u)},"/additionalProperties":()=>P([n,n,m]),"/description":p,"/format":[n,a,n],"/default":[a,n,n],"/nullable":S,"/discriminator":{"/":l,"/propertyName":l,"/mapping":l},"/readOnly":S,"/writeOnly":S,"/example":p,"/examples":p,"/externalDocs":p,"/deprecated":S,"/xml":{"/":l,"/name":l,"/namespace":l,"/prefix":l,"/attribute":l,"/wrapped":l}});var t={"/":u,"/location":u,"/description":p},e={"/summary":p,"/tags":p,"/externalDocs":p,"/bindings":l},_=Object.assign({"/":u,"/*":u,"/operationId":u,"/description":p},e);const W=Object.assign({"/":u,"/*":u,"/headers":l,"/correlationId":t,"/schemaFormat":c,"/contentType":u,"/name":o,"/title":o,"/examples":p},e),X=Object.assign({"/":c,"/headers":l,"/correlationId":t,"/schemaFormat":c,"/contentType":u,"/name":o,"/title":o,"/description":o,"/examples":p,"/traits":W,"/payload":P(c)},e);t=Object.assign({"/":u,"/operationId":u,"/description":p,"/traits":_,"/message":X},e),_={"/":u,"/version":u,"/termsOfService":u,"/license":{"/":u,"/name":c,"/url":f},"/title":p,"/description":p,"/contact":{"/":p,"/name":p,"/url":p,"/email":p}},e={"/":u,"/*":{"/":u,"/url":u,"/description":p,"/protocol":c,"/protocolVersion":c,"/variables":{"/":u,"/*":{"/":u,"/enum":{"/":u,"/*":u},"/default":c,"/description":p,"/examples":p}},"/security":{"/":c,"/*":c},"/bindings":l}},t={"/":u,"/description":o,"/bindings":l,"/subscribe":t,"/publish":t,"/parameters":{"/":c,"/*":{"/":u,"/description":o,"/schema":P(c),"/location":c}}};const Z={"/asyncapi":u,"/id":p,"/defaultContentType":c,"/info":_,"/servers":e,"/channels":{"/":u,"/*":t},"/components":o,"/tags":p,"/externalDocs":p};var _={"/":[a,n,n],"/*":{"/":[a,n,n],"/url":[a,n,n],"/description":p,"/variables":{"/":[a,n,n],"/*":{"/":[a,n,n],"/enum":{"/":[a,n,n],"/*":[a,n,n]},"/default":[n,n,n],"/description":p}}}},e={"/":[a,n,n],"/*":{"/":[a,n,n],"/name":[a,n,e=>{return"path"===(null==(e=e.up().before)?void 0:e.in)?a:n}],"/in":[a,n,n],"/description":p,"/required":[n,a,m],"/deprecated":[n,a,m]}},t={"/":[a,n,n],"/*":{"/":[a,n,n],"/description":p,"/required":[n,a,m],"/deprecated":[n,a,m]}},T={"/":[a,a,a],"/*":{"/contentType":[a,n,n],"/headers":t,"/style":[a,n,n],"/explode":[a,n,n],"/allowReserved":[a,n,n]}},T={"/":[a,n,n],"/*":{"/":[a,n,n],"/schema":P(c),"/example":p,"/examples":p,"/encoding":T}},C={"/":[a,n,n],"/description":p,"/content":T,"/required":[n,a,e=>e.after?n:a]},T={"/":[a,n,n],"/*":{"/":[a,n,n],"/description":p,"/headers":t,"/content":T}},D={"/":[n,a,i],"/*":[n,a,i]},E={"/":[a,n,n],"/tags":p,"/summary":p,"/description":p,"/externalDocs":p,"/operationId":[a,n,n],"/parameters":e,"/requestBody":C,"/responses":T,"/deprecated":[n,a,m],"/security":D,"/servers":_};const ee={"/openapi":[a,n,n],"/info":{"/":[a,n,n],"/title":p,"/description":p,"/termsOfService":p,"/contact":p,"/licence":{"/":[a,n,n],"/name":[n,n,n],"/url":[n,a,a]},"/version":p},"/servers":_,"/paths":(E={"/":[a,n,n],"/*":{"/":[a,n,a],"/summary":p,"/description":p,"/*":E,"/servers":_,"/parameters":e}},M(E,({before:e,after:t})=>{return String(e.key).replace(new RegExp("{.*?}","g"),"*")===String(t.key).replace(new RegExp("{.*?}","g"),"*")})),"/components":{"/":[a,a,a],"/schemas":{"/":[a,n,n],"/*":P(u)},"/responses":{"/":[a,n,n],"/*":T},"/parameters":{"/":[a,n,n],"/*":e},"/examples":p,"/requestBodies":{"/":[a,n,n],"/*":C},"/headers":t,"/securitySchemes":{"/":[n,a,n],"/*":{"/":[n,a,n],"/type":[n,a,n],"/description":p,"/name":[n,a,n],"/in":[n,a,n],"/scheme":[n,a,n],"/bearerFormat":p,"/flows":[n,a,n],"/openIdConnectUrl":p}}},"/security":D,"/tags":p,"/externalDocs":p};_=e=>M(e,({before:{value:e},after:{value:t}})=>{var r;return t.type===e.type&&("model"===t.type?t.name===e.name:(null==(r=e.data.path)?void 0:r.replace(new RegExp("{.*?}","g"),"*"))===(null==(r=t.data.path)?void 0:r.replace(new RegExp("{.*?}","g"),"*"))&&e.data.method===t.data.method)}),E={"/name":[a,n,n],"/style":l,"/description":p,"/explode":l,"/required":[n,a,m],"/deprecated":[n,a,m]},T={"/":[a,n,n],"/*":E},e={"/":u,"/*":{"/":[a,n,n],"/mediaType":[a,n,n],"/schema":P(c),"/examples":O("key",{"/":p,"/*":p}),"/encodings":[a,n,n]}},C={"/path":O("name",T),"/query":O("name",{"/":[a,n,n],"/*":Object.assign(Object.assign({},E),{"/allowEmptyValue":[n,a,m],"/allowReserved":[n,a,m]})}),"/headers":O("name",T),"/cookie":O("name",T),"/body":{"/":[a,n,n],"/contents":O("mediaType",e),"/required":[n,a,m],"/description":p}},t={"/":l,"/*":{"/name":[a,n,n],"/style":l,"/description":p,"/explode":l,"/required":[n,a,m],"/deprecated":[n,a,m]}},D={"/":u,"/*":{"/":u,"/code":l,"/contents":O("mediaType",e),"/headers":O("name",t),"/description":p}},E={"/":[a,n,n],"/url":[a,n,n],"/name":p,"/description":p,"/variables":[a,n,n]},T={"/":[n,a,i],"/*":[n,a,i]};const te={"/":[a,n,n],"/data":()=>P(u),"/*":p},re={"/":[a,n,n],"/data":{"/id":p,"/iid":p,"/tags":p,"/summary":p,"/description":p,"/method":[a,n,n],"/path":[a,n,n],"/request":C,"/responses":O("code",D),"/servers":{"/":l,"/*":E},"/callbacks":_({"/callbackName":p,"/method":[a,n,n],"/path":[a,n,n],"/request":C,"/responses":O("code",D),"/deprecated":l,"/internal":l,"/extensions":l}),"/security":T,"/deprecated":[n,a,m],"/internal":l,"/extensions":l},"/*":p};e={"/id":p,"/iid":p,"/tags":p,"/summary":p,"/description":p,"/name":p,"/version":p,"/servers":{"/":[a,n,n],"/*":E},"/security":T,"/securitySchemes":O("name",{"/":u,"/*":{"/":[n,a,n],"/type":[n,a,n],"/description":p,"/name":[n,a,n],"/in":[n,a,n],"/scheme":[n,a,n],"/bearerFormat":p,"/flows":[n,a,n],"/openIdConnectUrl":p}}),"/termsOfService":p,"/contact":p,"/license":[n,n,n],"/logo":p};const ne={"/*":p,"/data":e,"/children":_({"/":[a,n,n],"/*":({type:e})=>"model"===e?te:re}),"/components":{"/":[a,a,a],"/schemas":{"/":[a,n,n],"/*":P(u)}}};class ae{constructor(e,t,r={}){this.before=e,this.after=t,this._merged={},this._formatMergeMeta=e=>Object.assign({action:e.action},e.action===d.replace||e.action===d.rename?{replaced:e.before}:{}),this.trimStrings=r.trimStrings,this.caseSensitive=r.caseSensitive,this.strictArrays=r.strictArrays,this.matchRules=r.matchRules||{},this.diffKey=r.metaKey||q,this.arrayMeta=r.arrayMeta,this.formatMergedMeta=r.formatMergedMeta||this._formatMergeMeta.bind(this)}get merged(){return this._merged.value}setMeta(e,t,r){void 0===e[this.diffKey]&&(e[this.diffKey]={}),e[this.diffKey][t]=r}checkMatch(e,t,r,n,a){const i=this.getMatchFunc(e);return!!i&&i({path:e.items,before:{key:n,value:t[n],parent:t,source:this.before},after:{key:a,value:r[a],parent:r,source:this.after}})}getMatchFunc(e){e=e.ref;return this.matchRules[e]}compare(){return this.compareAny(this.before,this.after).diffs}buildDiffTree(){return this.compareAny(this.before,this.after).diffTree}merge(){return this.compareAny(this.before,this.after),this._merged.value}normalizeString(e){return e=this.trimStrings?e.trim():e,e=this.caseSensitive?e:e.toLowerCase()}mergeResults(e,t,r=!1){const n={diffs:[],diffTree:{}};for(var a of Object.keys(e)){var i,s,{diffs:o,diff:c,diffTree:f,parentMeta:u}=e[a];c&&c.action!==d.test?(s=c["path"],i=y(c,["path"]),s=s[s.length-1],this.setMeta(n.diffTree,s,i),n.diffs.push(c),r&&!this.arrayMeta?(void 0===n.parentMeta&&(n.parentMeta={}),n.parentMeta[s]=this.formatMergedMeta(c)):c.action===d.rename?this.setMeta(t,c.after,this.formatMergedMeta(c)):this.setMeta(t,s,this.formatMergedMeta(c)),a):(o.length&&(n.diffTree[a]=f,n.diffs.push(...o)),u&&this.setMeta(t,r?+a:a,{array:u}))}return n}mergeValue({action:e,before:t,after:r}){return e===d.test||e===d.remove?t:r}compareResult(e){return e.action===d.test?{diffs:[],diff:e}:{diffs:[e],diff:e}}compareAny(e,t,r=new B,n=this._merged,a="value"){if(v(e)!==v(t))return n[a]=t,this.compareResult(V(r,e,t));switch(v(e)){case"object":return n[a]={},this.compareObjects(e,t,r,n[a]);case"array":return n[a]=[],this.compareArrays(e,t,r,n[a]);default:var i=("string"==typeof e?this.normalizeString(e)===this.normalizeString(t):e===t)?g(r,e):V(r,e,t);return n[a]=this.mergeValue(i),this.compareResult(i)}}compareObjects(t,r,n,e){const a={};if(b(t)&&b(r))return this.compareResult(g(n,t));var i=Object.keys(t);const s=new Set(Object.keys(r));for(const u of i){var o,c=[...s].find(e=>e===u||this.checkMatch(n,t,r,u,e));c&&c!==u&&(a[c]=this.compareResult(F(n,u,c))),void 0===c?(o=x(n.childPath(u),t[u]),e[u]=this.mergeValue(o),a[u]=this.compareResult(o)):(a[u]=this.compareAny(t[u],r[c],n.childPath(u),e,c),s.delete(c))}for(const d of s){var f=j(n.childPath(d),r[d]);e[d]=this.mergeValue(f),a[d]=this.compareResult(f)}return this.mergeResults(a,e)}compareArrays(t,r,n,e){if(0===t.length&&0===r.length)return this.compareResult(g(n,t));var a=this.getMatchFunc(n);if(!this.strictArrays&&!a)return this.compareEnums(t,r,n,e);const i={},s=new Set(r.keys());for(const u of t.keys()){var o,c=n.childPath(u),f=a?[...s].find(e=>this.checkMatch(n,t,r,u,e)):u;void 0===f||f>=r.length?(o=x(c,t[u]),e[u]=this.mergeValue(o),i[u]=this.compareResult(o)):(s.delete(f),i[u]=this.compareAny(t[u],r[f],c,e,u))}let u=t.length;for(const l of s){var d=j(n.childPath(u),r[l]);e[u]=this.mergeValue(d),i[u++]=this.compareResult(d)}return this.mergeResults(i,e,!0)}compareEnums(t,r,n,a){const i={},e=[],s=[],o=new Set,c=new Set;for(const y of t.keys()){let e=[];for(const b of r.keys())if(!o.has(b)){var f={},u=this.compareAny(t[y],r[b],n.childPath(y),f);if(!u.diffs.length){o.add(b),c.add(y),e={value:f.value,res:u};break}e[b]={value:f.value,res:u,diffs:typeof t[y]==typeof r[b]?u.diffs.length:-1}}s.push(e)}for(const y of t.keys()){const v=s[y];if(Array.isArray(v)){const M=[...Array(r.length).keys()].filter(e=>{return 0<=((null==(e=v[e])?void 0:e.diffs)||0)});var d,l=M.sort((e,t)=>{return((null==(e=v[e])?void 0:e.diffs)||0)-((null==(e=v[t])?void 0:e.diffs)||0)});for(const O of r.keys()){let e=l[O];if(!o.has(e)){for(const R of t.keys()){var p=s[R];if(Array.isArray(p)&&!c.has(R)&&p[e]<v[e]){e=-1;break}}if(0<=e){var{value:h,res:m}=v[e];a[y]=h,i[y]=m,c.add(y),o.add(e);break}}}c.has(y)||(d=x(n.childPath(y),t[y]),a[y]=this.mergeValue(d),i[y]=this.compareResult(d))}else e[y]=[],a[y]=v.value,i[y]=v.res}let y=t.length;for(var g of r.keys())o.has(g)||(g=j(n.childPath(y),r[g]),a[y]=this.mergeValue(g),i[y++]=this.compareResult(g));return this.mergeResults(i,a,!0)}}class ie{constructor(e,t){this._engine=e,this._path=t}get before(){return this._engine.resolvePath("before",this._path)}get after(){var e=this._engine.getRenamedPath(this._path);return this._engine.resolvePath("after",e)}get up(){return(e=1)=>new ie(this._engine,this._path.slice(0,-e))}get root(){return new ie(this._engine,[])}}const se=Symbol("renamed");class $ extends ae{constructor(e,t,r={}){super(e,t,r),this.before=e,this.after=t,this.beforeRefs=new Set,this.afterRefs=new Set,this.beforeCache=new Map,this.afterCache=new Map,this.compareCache=new Map,this.renamedPath={},this._formatMergeMeta=e=>Object.assign({type:e.type,action:e.action},e.action===d.replace||e.action===d.rename?{replaced:e.before}:{}),this.resolvePath=(e,t)=>{var r="before"===e?this.beforeCache:this.afterCache;let n=this[e];for(const i of t){var a=Array.isArray(n)?n[+i]:n[i];if(void 0===(n=void 0===a&&n.$ref?(n=R(n,this[e],r),Array.isArray(n)?n[+i]:n[i]):a))break}return n.$ref?R(n,this[e],r):n},this.rules="string"==typeof r.rules?this.getBaseRules(r.rules):r.rules||{},this.formatMergedMeta=r.formatMergedMeta||this._formatMergeMeta.bind(this);var n=r.externalRefs||{};for(const a of Object.keys(n))this.beforeCache.set(a,n[a]),this.afterCache.set(a,n[a])}getMatchFunc(e){return L(this.rules,e,this.before)||super.getMatchFunc(e)}static apiDiff(e,t,r={}){return new $(e,t,r).compare()}static apiDiffTree(e,t,r={}){return new $(e,t,r).buildDiffTree()}static apiMerge(e,t,r={}){return new $(e,t,r).merge()}dereference(e,t,r){const n="#"+r.ref,[a,i]="before"===e?[this.beforeRefs,this.beforeCache]:[this.afterRefs,this.afterCache];r=()=>{t.$ref&&a.delete(t.$ref),a.delete(n)};return a.has(t.$ref)?[t,r]:(a.add(n),t.$ref&&a.add(t.$ref),[R(t,this[e],i),r])}getBaseRules(e){switch(e){case"OpenApi3":return ee;case"AsyncApi2":return Z;case"JsonSchema":return P()}}classifyDiff(e){const t=e;if("test"===e.action)return t;var r="rename"===e.action?[...e.path,"*",""]:[...e.path,""],r=z(this.rules,r,this.merged);const n=(Array.isArray(r)?r:l)["rename"===e.action?2:["add","remove","replace"].indexOf(e.action)];try{return t.type="function"==typeof n?n(new ie(this,e.path)):n,t}catch(e){return t.type=i,t}}getRenamedPath(t){const r=[...t];let n=this.renamedPath;for(let e=0;e<t.length;e++){var a=t[e];if(void 0===n[a])break;(n=n[a])[se]&&(r[e]=n[se])}return r}compareResult(e){return e.action===d.rename&&Y(this.renamedPath,[...e.path,e.before,se],e.after),super.compareResult(this.classifyDiff(e))}compareObjects(e,t,r,n){var a,i=e["$ref"],s=y(e,["$ref"]),o=e["$ref"],c=y(e,["$ref"]),f=i?i===o?i:i+":"+o:"#"+r.ref;const u=this.compareCache.get(f);if(u&&(b(s)&&b(c)||!i&&!o))return k(n,u.merged),a=u.result.diffs.map(e=>Object.assign(Object.assign({},e),{path:[...r,...e.path]})),Object.assign(Object.assign({},u.result),{diffs:a});const[d,l]=this.dereference("before",e,r),[p,h]=this.dereference("after",t,r),m=super.compareObjects(d,p,r,n);return i&&o&&b(s)&&b(c)&&(a=m.diffs.map(e=>Object.assign(Object.assign({},e),{path:e.path.slice(r.items.length)})),this.compareCache.set(f,{result:Object.assign(Object.assign({},m),{diffs:a}),merged:n})),h(),l(),m}}const oe=$.apiDiff,ce=$.apiMerge,fe=$.apiDiffTree}]);
import { Diff, ObjPath, Rules, ApiDiffOptions, JsonDiff, ApiMergedMeta, MatchFunc, CompareResult } from "./types";
import { PathPointer } from "./utils";
import { JsonCompare } from "./jsonCompare";

@@ -17,3 +18,3 @@ export declare class ApiCompare extends JsonCompare<Diff> {

constructor(before: any, after: any, options?: ApiDiffOptions);
protected getMatchFunc(path: ObjPath): MatchFunc | undefined;
protected getMatchFunc(path: PathPointer): MatchFunc | undefined;
static apiDiff(before: any, after: any, options?: ApiDiffOptions): Diff[];

@@ -23,3 +24,3 @@ static apiDiffTree(before: any, after: any, options?: ApiDiffOptions): any;

protected _formatMergeMeta: (diff: Diff) => ApiMergedMeta;
dereference(source: "before" | "after", value: any, objPath: ObjPath): [any, () => void];
dereference(source: "before" | "after", value: any, objPath: PathPointer): [any, () => void];
private getBaseRules;

@@ -30,3 +31,3 @@ classifyDiff(diff: JsonDiff): Diff;

compareResult(diff: JsonDiff): CompareResult<Diff>;
compareObjects(before: any, after: any, objPath: ObjPath, merged: any): CompareResult<Diff>;
compareObjects(before: any, after: any, objPath: PathPointer, merged: any): CompareResult<Diff>;
}

@@ -64,3 +64,3 @@ "use strict";

dereference(source, value, objPath) {
const ref = "#" + (0, utils_1.buildPath)(objPath);
const ref = "#" + objPath.ref;
const [refs, cache] = source === "before"

@@ -136,3 +136,3 @@ ? [this.beforeRefs, this.beforeCache]

const { $ref: afterRef } = before, $after = tslib_1.__rest(before, ["$ref"]);
const compareRefsId = beforeRef ? beforeRef === afterRef ? beforeRef : `${beforeRef}:${afterRef}` : "#" + (0, utils_1.buildPath)(objPath);
const compareRefsId = beforeRef ? beforeRef === afterRef ? beforeRef : `${beforeRef}:${afterRef}` : "#" + objPath.ref;
const compareCache = this.compareCache.get(compareRefsId);

@@ -149,3 +149,3 @@ if (compareCache && ((0, utils_1.isEmptyObject)($before) && (0, utils_1.isEmptyObject)($after) || !beforeRef && !afterRef)) {

if (beforeRef && afterRef && (0, utils_1.isEmptyObject)($before) && (0, utils_1.isEmptyObject)($after)) {
const diffs = result.diffs.map((diff) => (Object.assign(Object.assign({}, diff), { path: diff.path.slice(objPath.length) })));
const diffs = result.diffs.map((diff) => (Object.assign(Object.assign({}, diff), { path: diff.path.slice(objPath.items.length) })));
this.compareCache.set(compareRefsId, { result: Object.assign(Object.assign({}, result), { diffs }), merged });

@@ -159,2 +159,2 @@ }

exports.ApiCompare = ApiCompare;
//# sourceMapping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YUFBYSxFQUFFLEVBQUUsTUFBTSxrQ0FBTyxNQUFNLEtBQUUsS0FBSyxHQUFFLEVBQUUsTUFBTSxFQUFFLENBQUMsQ0FBQTtTQUMvRTtRQUVELGVBQWUsRUFBRSxDQUFBO1FBQ2pCLGdCQUFnQixFQUFFLENBQUE7UUFFbEIsT0FBTyxNQUFNLENBQUE7SUFDZixDQUFDO0NBQ0Y7QUEvS0QsZ0NBK0tDIn0=
//# sourceMappingURL=apiCompare.js.map

@@ -24,2 +24,2 @@ "use strict";

exports.ChangeContext = ChangeContext;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlQ29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jaGFuZ2VDb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUdBLE1BQWEsYUFBYTtJQXFCeEIsWUFBWSxNQUFrQixFQUFFLElBQWE7UUFDM0MsSUFBSSxDQUFDLE9BQU8sR0FBRyxNQUFNLENBQUE7UUFDckIsSUFBSSxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUE7SUFDbkIsQ0FBQztJQXBCRCxJQUFXLE1BQU07UUFDZixPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsV0FBVyxDQUFDLFFBQVEsRUFBRSxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUE7SUFDdkQsQ0FBQztJQUVELElBQVcsS0FBSztRQUNkLE1BQU0sV0FBVyxHQUFHLElBQUksQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQTtRQUMzRCxPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsV0FBVyxDQUFDLE9BQU8sRUFBRSxXQUFXLENBQUMsQ0FBQTtJQUN2RCxDQUFDO0lBRUQsSUFBVyxFQUFFO1FBQ1gsT0FBTyxDQUFDLENBQUMsR0FBRyxDQUFDLEVBQUUsRUFBRSxDQUFDLElBQUksYUFBYSxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsSUFBSSxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQTtJQUMzRSxDQUFDO0lBRUQsSUFBVyxJQUFJO1FBQ2IsT0FBTyxJQUFJLGFBQWEsQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLEVBQUUsQ0FBQyxDQUFBO0lBQzVDLENBQUM7Q0FNRjtBQXpCRCxzQ0F5QkMifQ==
//# sourceMappingURL=changeContext.js.map

@@ -28,2 +28,2 @@ "use strict";

exports.allAnnotation = [exports.annotation, exports.annotation, exports.annotation];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFYSxRQUFBLGFBQWEsR0FBRyxPQUFPLENBQUE7QUFFcEMsSUFBWSxVQU1YO0FBTkQsV0FBWSxVQUFVO0lBQ3BCLHlCQUFXLENBQUE7SUFDWCwrQkFBaUIsQ0FBQTtJQUNqQixpQ0FBbUIsQ0FBQTtJQUNuQiwrQkFBaUIsQ0FBQTtJQUNqQiwyQkFBYSxDQUFBO0FBQ2YsQ0FBQyxFQU5XLFVBQVUsR0FBVixrQkFBVSxLQUFWLGtCQUFVLFFBTXJCO0FBRUQsSUFBWSxjQUtYO0FBTEQsV0FBWSxjQUFjO0lBQ3hCLHVDQUFxQixDQUFBO0lBQ3JCLDhDQUE0QixDQUFBO0lBQzVCLDJDQUF5QixDQUFBO0lBQ3pCLCtDQUE2QixDQUFBO0FBQy9CLENBQUMsRUFMVyxjQUFjLEdBQWQsc0JBQWMsS0FBZCxzQkFBYyxRQUt6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iw2Q0FBMkM7QUFBbEMsMEdBQUEsV0FBVyxPQUFBO0FBRVAsUUFBQSxPQUFPLEdBQUcsdUJBQVUsQ0FBQyxPQUFPLENBQUE7QUFDNUIsUUFBQSxRQUFRLEdBQUcsdUJBQVUsQ0FBQyxRQUFRLENBQUE7QUFDOUIsUUFBQSxXQUFXLEdBQUcsdUJBQVUsQ0FBQyxXQUFXLENBQUEifQ==
//# sourceMappingURL=index.js.map

@@ -1,2 +0,3 @@

import { ObjPath, JsonCompareOptions, MatchFunc, JsonDiff, CompareResult, JsonMergedMeta } from "./types";
import { JsonCompareOptions, MatchFunc, JsonDiff, CompareResult, JsonMergedMeta } from "./types";
import { PathPointer } from "./utils";
export declare class JsonCompare<D extends JsonDiff = JsonDiff, T extends CompareResult<D> = CompareResult<D>> {

@@ -20,3 +21,3 @@ before: any;

private checkMatch;
protected getMatchFunc(path: ObjPath): MatchFunc | undefined;
protected getMatchFunc(path: PathPointer): MatchFunc | undefined;
compare(): D[];

@@ -31,6 +32,6 @@ buildDiffTree(): any;

compareResult(diff: JsonDiff): T;
compareAny(before: any, after: any, path?: ObjPath, merged?: any, key?: string | number): T;
compareObjects(before: any, after: any, path: ObjPath, merged: any): T;
compareArrays(before: any[], after: any[], path: ObjPath, merged: any): T;
compareEnums(before: any[], after: any[], path: ObjPath, merged: any): T;
compareAny(before: any, after: any, path?: PathPointer, merged?: any, key?: string | number): T;
compareObjects(before: any, after: any, path: PathPointer, merged: any): T;
compareArrays(before: any[], after: any[], path: PathPointer, merged: any): T;
compareEnums(before: any[], after: any[], path: PathPointer, merged: any): T;
}

@@ -33,3 +33,3 @@ "use strict";

return matchFunc ? matchFunc({
path,
path: path.items,
before: { key: bKey, value: before[bKey], parent: before, source: this.before },

@@ -41,3 +41,3 @@ after: { key: aKey, value: after[aKey], parent: after, source: this.after }

// TODO: support masked path
const strPath = (0, utils_1.buildPath)(path);
const strPath = path.ref; // buildPath(path)
return this.matchRules[strPath];

@@ -108,3 +108,3 @@ }

}
compareAny(before, after, path = [], merged = this._merged, key = "value") {
compareAny(before, after, path = new utils_1.PathPointer(), merged = this._merged, key = "value") {
if ((0, utils_1.typeOf)(before) !== (0, utils_1.typeOf)(after)) {

@@ -145,3 +145,3 @@ merged[key] = after;

// deleted key
const diff = (0, utils_1.removed)([...path, key], before[key]);
const diff = (0, utils_1.removed)(path.childPath(key), before[key]);
merged[key] = this.mergeValue(diff);

@@ -152,3 +152,3 @@ result[key] = this.compareResult(diff);

// updated key value
result[key] = this.compareAny(before[key], after[afterKey], [...path, key], merged, afterKey);
result[key] = this.compareAny(before[key], after[afterKey], path.childPath(key), merged, afterKey);
afterKeys.delete(afterKey);

@@ -159,3 +159,3 @@ }

// added key
const diff = (0, utils_1.added)([...path, key], after[key]);
const diff = (0, utils_1.added)(path.childPath(key), after[key]);
merged[key] = this.mergeValue(diff);

@@ -177,3 +177,3 @@ result[key] = this.compareResult(diff);

for (const i of before.keys()) {
const itemPath = [...path, i];
const itemPath = path.childPath(i);
const j = matchFunc ? [...afterKeys].find((k) => this.checkMatch(path, before, after, i, k)) : i;

@@ -192,3 +192,3 @@ if (j === undefined || j >= after.length) {

for (const key of afterKeys) {
const diff = (0, utils_1.added)([...path, i], after[key]);
const diff = (0, utils_1.added)(path.childPath(i), after[key]);
merged[i] = this.mergeValue(diff);

@@ -212,3 +212,3 @@ result[i++] = this.compareResult(diff);

const _merged = {};
const res = this.compareAny(before[i], after[j], [...path, i], _merged);
const res = this.compareAny(before[i], after[j], path.childPath(i), _merged);
if (!res.diffs.length) {

@@ -261,3 +261,3 @@ afterEquals.add(j);

if (!beforeEquals.has(i)) {
const diff = (0, utils_1.removed)([...path, i], before[i]);
const diff = (0, utils_1.removed)(path.childPath(i), before[i]);
merged[i] = this.mergeValue(diff);

@@ -271,3 +271,3 @@ result[i] = this.compareResult(diff);

if (!afterEquals.has(j)) {
const diff = (0, utils_1.added)([...path, i], after[j]);
const diff = (0, utils_1.added)(path.childPath(i), after[j]);
merged[i] = this.m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UFjO0lBQzdCLE9BQU8sRUFBRSx5QkFBYTtJQUN0QixlQUFlLEVBQUUseUJBQWE7Q0FDL0IsQ0FBQSJ9
//# sourceMappingURL=asyncapi2.js.map

@@ -8,2 +8,2 @@ "use strict";

tslib_1.__exportStar(require("./servicenode"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcnVsZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0RBQTJCO0FBQzNCLHFEQUEwQjtBQUMxQix1REFBNEI7QUFDNUIsd0RBQTZCIn0=
//# sourceMappingURL=index.js.map

@@ -106,2 +106,2 @@ "use strict";

exports.jsonSchemaRules = jsonSchemaRules;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbnNjaGVtYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ydWxlcy9qc29uc2NoZW1hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLG9DQUEwRDtBQUUxRCw0Q0FJcUI7QUFFckIsTUFBTSxhQUFhLEdBQVM7SUFDMUIsb0JBQVE7SUFDUix1QkFBVztJQUNYLENBQUMsRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFFLEVBQUUsRUFBRSxDQUFDLElBQUEsa0JBQVUsRUFBQyxNQUFNLEdBQUcsS0FBSyxDQUFDO0NBQ2xELENBQUE7QUFFRCxNQUFNLGFBQWEsR0FBUztJQUMxQixvQkFBUTtJQUNSLHVCQUFXO0lBQ1gsQ0FBQyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsRUFBRSxFQUFFLENBQUMsSUFBQSxrQkFBVSxFQUFDLE1BQU0sR0FBRyxLQUFLLENBQUM7Q0FDbEQ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QUFRLEVBQUUsdUJBQVcsRUFBRSxvQkFBUSxDQUFDO1lBQzNDLG1CQUFtQixFQUFFLHlCQUFhO1NBQ25DO0tBQ0YsQ0FBQztJQUNGLGlCQUFpQixFQUFFLHlCQUFhO0lBQ2hDLFVBQVUsRUFBRSx5QkFBYTtJQUN6QixVQUFVLEVBQUUsQ0FBQyxvQkFBUSxFQUFFLG9CQUFRLEVBQUUsb0JBQVEsQ0FBQztJQUMxQyxPQUFPLEVBQUUseUJBQWE7Q0FDdkIsQ0FBQTtBQUVZLFFBQUEsZ0JBQWdCLEdBQVU7SUFDckMsSUFBSSxFQUFFLHlCQUFhO0lBQ25CLE9BQU8sRUFBRSxZQUFZO0lBQ3JCLFdBQVcsRUFBRSxhQUFhLENBQUM7UUFDekIsR0FBRyxFQUFFLENBQUMsdUJBQVcsRUFBRSxvQkFBUSxFQUFFLG9CQUFRLENBQUM7UUFDdEMsSUFBSSxFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsRUFBRSxFQUFFLENBQUMsSUFBSSxLQUFLLE9BQU8sQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxjQUFjO0tBQ25FLENBQUM7SUFDRixhQUFhLEVBQUU7UUFDYixHQUFHLEVBQUUsQ0FBQyx1QkFBVyxFQUFFLHVCQUFXLEVBQUUsdUJBQVcsQ0FBQztRQUM1QyxVQUFVLEVBQUU7WUFDVixHQUFHLEVBQUUsQ0FBQyx1QkFBVyxFQUFFLG9CQUFRLEVBQUUsb0JBQVEsQ0FBQztZQUN0QyxJQUFJLEVBQUUsSUFBQSxrQkFBZSxFQUFDLDBCQUFjLENBQUM7U0FDdEM7S0FDRjtDQUNGLENBQUEifQ==
//# sourceMappingURL=servicenode.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
//# sourceMappingURL=types.js.map
import { Rule, MatchFunc, Rules, DiffType, ObjPath, DiffTypeFunc } from "./types";
import { DiffAction } from "./constants";
export declare type PathItem = string | number;
export declare class PathPointer implements Iterable<PathItem> {
key?: string | number | undefined;
parent?: PathPointer | undefined;
escapedKey: string;
items: PathItem[];
get ref(): string;
[Symbol.iterator](): Iterator<PathItem>;
constructor(key?: string | number | undefined, parent?: PathPointer | undefined);
childPath(key: string | number): PathPointer;
}
export declare const breakingIf: (v: boolean) => DiffType;
export declare const breakingIfAfterTrue: DiffTypeFunc;
export declare const added: (path: ObjPath, after: any) => {
path: ObjPath;
export declare const added: (path: PathPointer, after: any) => {
path: PathItem[];
after: any;
action: DiffAction;
};
export declare const removed: (path: ObjPath, before: any) => {
path: ObjPath;
export declare const removed: (path: PathPointer, before: any) => {
path: PathItem[];
before: any;
action: DiffAction;
};
export declare const replaced: (path: ObjPath, before: any, after: any) => {
path: ObjPath;
export declare const replaced: (path: PathPointer, before: any, after: any) => {
path: PathItem[];
before: any;

@@ -21,4 +32,4 @@ after: any;

};
export declare const renamed: (path: ObjPath, before: any, after: any) => {
path: ObjPath;
export declare const renamed: (path: PathPointer, before: any, after: any) => {
path: PathItem[];
before: any;

@@ -28,4 +39,4 @@ after: any;

};
export declare const unchanged: (path: ObjPath, before: any) => {
path: ObjPath;
export declare const unchanged: (path: PathPointer, before: any) => {
path: PathItem[];
before: any;

@@ -39,3 +50,3 @@ action: DiffAction;

export declare const getPathRules: (rules: Rules, path: ObjPath, source: any) => Rules | Rule | undefined;
export declare const getPathMatchFunc: (rules: Rules, path: ObjPath, source: any) => MatchFunc | undefined;
export declare const getPathMatchFunc: (rules: Rules, path: PathPointer, source: any) => MatchFunc | undefined;
export declare const findExternalRefs: (source: any | any[]) => string[];

@@ -42,0 +53,0 @@ export declare const matchRule: (rules: Rules, matchFunc: MatchFunc) => Rules;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mergeValues = exports.setValueByPath = exports.getValueByPath = exports.resolveRef = exports.objArray = exports.matchRule = exports.findExternalRefs = exports.getPathMatchFunc = exports.getPathRules = exports.buildPath = exports.parsePath = exports.typeOf = exports.isEmptyObject = exports.unchanged = exports.renamed = exports.replaced = exports.removed = exports.added = exports.breakingIfAfterTrue = exports.breakingIf = void 0;
exports.mergeValues = exports.setValueByPath = exports.getValueByPath = exports.resolveRef = exports.objArray = exports.matchRule = exports.findExternalRefs = exports.getPathMatchFunc = exports.getPathRules = exports.buildPath = exports.parsePath = exports.typeOf = exports.isEmptyObject = exports.unchanged = exports.renamed = exports.replaced = exports.removed = exports.added = exports.breakingIfAfterTrue = exports.breakingIf = exports.PathPointer = void 0;
const tslib_1 = require("tslib");
const constants_1 = require("./constants");
class PathPointer {
constructor(key, parent) {
this.key = key;
this.parent = parent;
this.items = [];
if (key === undefined) {
this.escapedKey = "";
}
else {
this.escapedKey = typeof key === "string" ? key.replace(new RegExp("~1", "g"), "/") : String(key);
this.items = parent ? [...parent.items, key] : [key];
}
}
get ref() {
return this.parent ? this.parent.ref + "/" + this.escapedKey : this.escapedKey;
}
[Symbol.iterator]() {
let i = 0;
return {
next: () => ({
done: !(i < this.items.length),
value: this.items[i++]
})
};
}
childPath(key) {
return new PathPointer(key, this);
}
}
exports.PathPointer = PathPointer;
const breakingIf = (v) => (v ? constants_1.breaking : constants_1.nonBreaking);

@@ -10,11 +40,11 @@ exports.breakingIf = breakingIf;

exports.breakingIfAfterTrue = breakingIfAfterTrue;
const added = (path, after) => ({ path, after, action: constants_1.DiffAction.add });
const added = (path, after) => ({ path: path.items, after, action: constants_1.DiffAction.add });
exports.added = added;
const removed = (path, before) => ({ path, before, action: constants_1.DiffAction.remove });
const removed = (path, before) => ({ path: path.items, before, action: constants_1.DiffAction.remove });
exports.removed = removed;
const replaced = (path, before, after) => ({ path, before, after, action: constants_1.DiffAction.replace });
const replaced = (path, before, after) => ({ path: path.items, before, after, action: constants_1.DiffAction.replace });
exports.replaced = replaced;
const renamed = (path, before, after) => ({ path, before, after, action: constants_1.DiffAction.rename });
const renamed = (path, before, after) => ({ path: path.items, before, after, action: constants_1.DiffAction.rename });
exports.renamed = renamed;
const unchanged = (path, before) => ({ path, before, action: constants_1.DiffAction.test });
const unchanged = (path, before) => ({ path: path.items, before, action: constants_1.DiffAction.test });
exports.unchanged = unchanged;

@@ -68,3 +98,3 @@ const isEmptyObject = (obj) => {

const getPathMatchFunc = (rules, path, source) => {
const _rules = (0, exports.getPathRules)(rules, path, source);
const _rules = (0, exports.getPathRules)(rules, path.items, source);
return (_rules && !Array.isArray(_rules)) ? _rules["#"] : undefined;

@@ -167,2 +197,2 @@ };

exports.mergeValues = mergeValues;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUNBLDJDQUErRDtBQUV4RCxNQUFNLFVBQVUsR0FBRyxDQUFDLENBQVUsRUFBWSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLG9CQUFRLENBQUMsQ0FBQyxDQUFDLHVCQUFXLENBQUMsQ0FBQTtBQUFuRSxRQUFBLFVBQVUsY0FBeUQ7QUFDekUsTUFBTSxtQkFBbUIsR0FBaUIsQ0FBQyxFQUFFLEtBQUssRUFBRSxFQUFZLEVBQUUsQ0FBQyxJQUFBLGtCQUFVLEVBQUMsS0FBSyxDQUFDLENBQUE7QUFBOUUsUUFBQSxtQkFBbUIsdUJBQTJEO0FBRXBGLE1BQU0sS0FBSyxHQUFHLENBQUMsSUFBYSxFQUFFLEtBQVUsRUFBRSxFQUFFLENBQUMsQ0FBQyxFQUFFLElBQUksRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLH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csQ0FBQyxHQUFHLENBQUMsRUFBRSxPQUFPLEVBQUUsS0FBSyxFQUFFLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQTtLQUNoRDtBQUNILENBQUMsQ0FBQTtBQWJZLFFBQUEsY0FBYyxrQkFhMUI7QUFFTSxNQUFNLFdBQVcsR0FBRyxDQUFDLEtBQVUsRUFBRSxLQUFVLEVBQUUsRUFBRTtJQUNwRCxJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLEVBQUU7UUFDeEIsT0FBTyxLQUFLLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQTtLQUMzRDtTQUFNLElBQUksT0FBTyxLQUFLLEtBQUssUUFBUSxJQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsRUFBRTtRQUNqRSxLQUFJLE1BQU0sR0FBRyxJQUFJLE9BQU8sQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLEVBQUU7WUFDdkMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxHQUFHLElBQUEsbUJBQVcsRUFBQyxLQUFLLENBQUMsR0FBRyxDQUFDLEVBQUUsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUE7U0FDakQ7UUFDRCxPQUFPLEtBQUssQ0FBQTtLQUNiO1NBQU07UUFDTCxPQUFPLEtBQUssQ0FBQTtLQUNiO0FBQ0gsQ0FBQyxDQUFBO0FBWFksUUFBQSxXQUFXLGVBV3ZCIn0=
//# sourceMappingURL=utils.js.map
import { Diff, ObjPath, Rules, ApiDiffOptions, JsonDiff, ApiMergedMeta, MatchFunc, CompareResult } from "./types";
import { PathPointer } from "./utils";
import { JsonCompare } from "./jsonCompare";

@@ -17,3 +18,3 @@ export declare class ApiCompare extends JsonCompare<Diff> {

constructor(before: any, after: any, options?: ApiDiffOptions);
protected getMatchFunc(path: ObjPath): MatchFunc | undefined;
protected getMatchFunc(path: PathPointer): MatchFunc | undefined;
static apiDiff(before: any, after: any, options?: ApiDiffOptions): Diff[];

@@ -23,3 +24,3 @@ static apiDiffTree(before: any, after: any, options?: ApiDiffOptions): any;

protected _formatMergeMeta: (diff: Diff) => ApiMergedMeta;
dereference(source: "before" | "after", value: any, objPath: ObjPath): [any, () => void];
dereference(source: "before" | "after", value: any, objPath: PathPointer): [any, () => void];
private getBaseRules;

@@ -30,3 +31,3 @@ classifyDiff(diff: JsonDiff): Diff;

compareResult(diff: JsonDiff): CompareResult<Diff>;
compareObjects(before: any, after: any, objPath: ObjPath, merged: any): CompareResult<Diff>;
compareObjects(before: any, after: any, objPath: PathPointer, merged: any): CompareResult<Diff>;
}
import { __rest } from "tslib";
import { buildPath, getPathMatchFunc, getPathRules, isEmptyObject, mergeValues, resolveRef, setValueByPath } from "./utils";
import { getPathMatchFunc, getPathRules, isEmptyObject, mergeValues, resolveRef, setValueByPath } from "./utils";
import { asyncApi2Rules, jsonSchemaRules, openapi3Rules } from "./rules";

@@ -61,3 +61,3 @@ import { allUnclassified, DiffAction, unclassified } from "./constants";

dereference(source, value, objPath) {
const ref = "#" + buildPath(objPath);
const ref = "#" + objPath.ref;
const [refs, cache] = source === "before"

@@ -133,3 +133,3 @@ ? [this.beforeRefs, this.beforeCache]

const { $ref: afterRef } = before, $after = __rest(before, ["$ref"]);
const compareRefsId = beforeRef ? beforeRef === afterRef ? beforeRef : `${beforeRef}:${afterRef}` : "#" + buildPath(objPath);
const compareRefsId = beforeRef ? beforeRef === afterRef ? beforeRef : `${beforeRef}:${afterRef}` : "#" + objPath.ref;
const compareCache = this.compareCache.get(compareRefsId);

@@ -146,3 +146,3 @@ if (compareCache && (isEmptyObject($before) && isEmptyObject($after) || !beforeRef && !afterRef)) {

if (beforeRef && afterRef && isEmptyObject($before) && isEmptyObject($after)) {
const diffs = result.diffs.map((diff) => (Object.assign(Object.assign({}, diff), { path: diff.path.slice(objPath.length) })));
const diffs = result.diffs.map((diff) => (Object.assign(Object.assign({}, diff), { path: diff.path.slice(objPath.items.length) })));
this.compareCache.set(compareRefsId, { result: Object.assign(Object.assign({}, result), { diffs }), merged });

@@ -155,2 +155,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpQ29tcGFyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGlDb21wYXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUsU0FBUyxFQUFFLGdCQUFnQixFQUFFLFlBQVksRUFBRSxhQUFhLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxjQUFjLEVBQUUsTUFBTSxTQUFTLENBQUE7QUFDM0gsT0FBTyxFQUFFLGNBQWMsRUFBRSxlQUFlLEVBQUUsYUFBYSxFQUFFLE1BQU0sU0FBUyxDQUFBO0FBQ3hFLE9BQU8sRUFBRSxlQUFlLEVBQUUsVUFBVSxFQUFFLFlBQVksRUFBRSxNQUFNLGFBQWEsQ0FBQTtBQUN2RSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZUFBZSxDQUFBO0FBQzNDLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQTtBQUUvQyxNQUFNLFFBQVEsR0FBRyxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUE7QUFFbEMsTUFBTSxPQUFPLFVBQVcsU0FBUSxXQUFpQjtJQVUvQyxZQUFtQixNQUFXLEVBQVMsS0FBVSxFQUFFLFVBQTBCLEVBQUU7UUFDN0UsS0FBSyxDQUFDLE1BQU0sRUFBRSxLQUFLLEVBQUUsT0FBTyxDQUFDLENBQUE7UUFEWixXQUFNLEdBQU4sTUFBTSxDQUFLO1FBQVMsVUFBSyxHQUFMLEtBQUssQ0FBS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BUSxFQUFFLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQTtJQUN2RCxDQUFDO0lBRUQsSUFBVyxLQUFLO1FBQ2QsTUFBTSxXQUFXLEdBQUcsSUFBSSxDQUFDLE9BQU8sQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFBO1FBQzNELE9BQU8sSUFBSSxDQUFDLE9BQU8sQ0FBQyxXQUFXLENBQUMsT0FBTyxFQUFFLFdBQVcsQ0FBQyxDQUFBO0lBQ3ZELENBQUM7SUFFRCxJQUFXLEVBQUU7UUFDWCxPQUFPLENBQUMsQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsSUFBSSxhQUFhLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRSxJQUFJLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFBO0lBQzNFLENBQUM7SUFFRCxJQUFXLElBQUk7UUFDYixPQUFPLElBQUksYUFBYSxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsRUFBRSxDQUFDLENBQUE7SUFDNUMsQ0FBQztDQU1GIn0=
//# sourceMappingURL=changeContext.js.map

@@ -25,2 +25,2 @@ export const DIFF_META_KEY = "$diff";

export const allAnnotation = [annotation, annotation, annotation];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLENBQUMsTUFBTSxhQUFhLEdBQUcsT0FBTyxDQUFBO0FBRXBDLE1BQU0sQ0FBTixJQUFZLFVBTVg7QUFORCxXQUFZLFVBQVU7SUFDcEIseUJBQVcsQ0FBQTtJQUNYLCtCQUFpQixDQUFBO0lBQ2pCLGl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2 @@ import { ApiCompare } from "./apiCompare";

export const apiDiffTree = ApiCompare.apiDiffTree;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGNBQWMsQ0FBQTtBQUV6QyxjQUFjLGVBQWUsQ0FBQTtBQUM3QixjQUFjLFNBQVMsQ0FBQTtBQUN2QixjQUFjLGFBQWEsQ0FBQTtBQUMzQixjQUFjLFNBQVMsQ0FBQTtBQUN2QixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sY0FBYyxDQUFBO0FBQ3pDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUE7QUFFM0MsTUFBTSxDQUFDLE1BQU0sT0FBTyxHQUFHLFVBQVUsQ0FBQyxPQUFPLENBQUE7QUFDekMsTUFBTSxDQUFDLE1BQU0sUUFBUSxHQUFHLFVBQVUsQ0FBQyxRQUFRLENBQUE7QUFDM0MsTUFBTSxDQUFDLE1BQU0sV0FBVyxHQUFHLFVBQVUsQ0FBQyxXQUFXLENBQUEifQ==
//# sourceMappingURL=index.js.map

@@ -1,2 +0,3 @@

import { ObjPath, JsonCompareOptions, MatchFunc, JsonDiff, CompareResult, JsonMergedMeta } from "./types";
import { JsonCompareOptions, MatchFunc, JsonDiff, CompareResult, JsonMergedMeta } from "./types";
import { PathPointer } from "./utils";
export declare class JsonCompare<D extends JsonDiff = JsonDiff, T extends CompareResult<D> = CompareResult<D>> {

@@ -20,3 +21,3 @@ before: any;

private checkMatch;
protected getMatchFunc(path: ObjPath): MatchFunc | undefined;
protected getMatchFunc(path: PathPointer): MatchFunc | undefined;
compare(): D[];

@@ -31,6 +32,6 @@ buildDiffTree(): any;

compareResult(diff: JsonDiff): T;
compareAny(before: any, after: any, path?: ObjPath, merged?: any, key?: string | number): T;
compareObjects(before: any, after: any, path: ObjPath, merged: any): T;
compareArrays(before: any[], after: any[], path: ObjPath, merged: any): T;
compareEnums(before: any[], after: any[], path: ObjPath, merged: any): T;
compareAny(before: any, after: any, path?: PathPointer, merged?: any, key?: string | number): T;
compareObjects(before: any, after: any, path: PathPointer, merged: any): T;
compareArrays(before: any[], after: any[], path: PathPointer, merged: any): T;
compareEnums(before: any[], after: any[], path: PathPointer, merged: any): T;
}
import { __rest } from "tslib";
import { typeOf, replaced, unchanged, added, removed, renamed, buildPath, isEmptyObject } from "./utils";
import { typeOf, replaced, unchanged, added, removed, renamed, isEmptyObject, PathPointer } from "./utils";
import { DiffAction, DIFF_META_KEY } from "./constants";

@@ -30,3 +30,3 @@ export class JsonCompare {

return matchFunc ? matchFunc({
path,
path: path.items,
before: { key: bKey, value: before[bKey], parent: before, source: this.before },

@@ -38,3 +38,3 @@ after: { key: aKey, value: after[aKey], parent: after, source: this.after }

// TODO: support masked path
const strPath = buildPath(path);
const strPath = path.ref; // buildPath(path)
return this.matchRules[strPath];

@@ -105,3 +105,3 @@ }

}
compareAny(before, after, path = [], merged = this._merged, key = "value") {
compareAny(before, after, path = new PathPointer(), merged = this._merged, key = "value") {
if (typeOf(before) !== typeOf(after)) {

@@ -142,3 +142,3 @@ merged[key] = after;

// deleted key
const diff = removed([...path, key], before[key]);
const diff = removed(path.childPath(key), before[key]);
merged[key] = this.mergeValue(diff);

@@ -149,3 +149,3 @@ result[key] = this.compareResult(diff);

// updated key value
result[key] = this.compareAny(before[key], after[afterKey], [...path, key], merged, afterKey);
result[key] = this.compareAny(before[key], after[afterKey], path.childPath(key), merged, afterKey);
afterKeys.delete(afterKey);

@@ -156,3 +156,3 @@ }

// added key
const diff = added([...path, key], after[key]);
const diff = added(path.childPath(key), after[key]);
merged[key] = this.mergeValue(diff);

@@ -174,3 +174,3 @@ result[key] = this.compareResult(diff);

for (const i of before.keys()) {
const itemPath = [...path, i];
const itemPath = path.childPath(i);
const j = matchFunc ? [...afterKeys].find((k) => this.checkMatch(path, before, after, i, k)) : i;

@@ -189,3 +189,3 @@ if (j === undefined || j >= after.length) {

for (const key of afterKeys) {
const diff = added([...path, i], after[key]);
const diff = added(path.childPath(i), after[key]);
merged[i] = this.mergeValue(diff);

@@ -209,3 +209,3 @@ result[i++] = this.compareResult(diff);

const _merged = {};
const res = this.compareAny(before[i], after[j], [...path, i], _merged);
const res = this.compareAny(before[i], after[j], path.childPath(i), _merged);
if (!res.diffs.length) {

@@ -258,3 +258,3 @@ afterEquals.add(j);

if (!beforeEquals.has(i)) {
const diff = removed([...path, i], before[i]);
const diff = removed(path.childPath(i), before[i]);
merged[i] = this.mergeValue(diff);

@@ -268,3 +268,3 @@ result[i] = this.compareResult(diff);

if (!afterEquals.has(j)) {
const diff = added([...path, i], after[j]);
const diff = added(path.childPath(i), after[j]);
merged[i] = this.mergeValue(diff);

@@ -277,2 +277,2 @@ result[i++] = this.compareResult(diff);

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbkNvbXBhcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvanNvbkNvbXBhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsT0FBTyxFQUFFLE9BQU8sRUFBRSxTQUFTLEVBQUUsYUFBYSxFQUFFLE1BQU0sU0FBUyxDQUFBO0FBQ3hHLE9BQU8sRUFBRSxVQUFVLEVBQUUsYUFBYSxFQUFFLE1BQU0sYUFBYSxDQUFBO0FBSXZELE1BQU0sT0FBTyxXQUFXO0lBWXRCLFlBQW1CLE1BQVcsRUFBUyxLQUFVLEVBQUUsVUFBOEIsRUFBRTtRQUFoRSxXQUFNLEdBQU4sTUFBTSxDQUFLO1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kIsY0FBYyxFQUFFLGNBQWM7SUFDOUIsV0FBVyxFQUFFLGVBQWU7SUFDNUIsWUFBWSxFQUFFLFdBQVc7SUFDekIsVUFBVSxFQUFFLFdBQVc7SUFDdkIsYUFBYSxFQUFFO1FBQ2IsR0FBRyxFQUFFLFdBQVc7UUFDaEIsSUFBSSxFQUFFO1lBQ0osR0FBRyxFQUFFLGNBQWM7WUFDbkIsY0FBYyxFQUFFLGNBQWM7WUFDOUIsU0FBUyxFQUFFLGVBQWUsQ0FBQyxXQUFXLENBQUM7WUFDdkMsV0FBVyxFQUFFLFdBQVc7U0FDekI7S0FDRjtDQUNGLENBQUE7QUFFRCxNQUFNLENBQUMsTUFBTSxjQUFjLEdBQVU7SUFDbkMsV0FBVyxFQUFFLGNBQWM7SUFDM0IsS0FBSyxFQUFFLGFBQWE7SUFDcEIscUJBQXFCLEVBQUUsV0FBVztJQUNsQyxPQUFPLEVBQUUsU0FBUztJQUNsQixVQUFVLEVBQUUsWUFBWTtJQUN4QixXQUFXLEVBQUU7UUFDWCxHQUFHLEVBQUUsY0FBYztRQUNuQixJQUFJLEVBQUUsWUFBWTtLQUNuQjtJQUNELGFBQWEsRUFBRSxjQUFjO0lBQzdCLE9BQU8sRUFBRSxhQUFhO0lBQ3RCLGVBQWUsRUFBRSxhQUFhO0NBQy9CLENBQUEifQ==
//# sourceMappingURL=asyncapi2.js.map

@@ -5,2 +5,2 @@ export * from "./asyncapi2";

export * from "./servicenode";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcnVsZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxhQUFhLENBQUE7QUFDM0IsY0FBYyxZQUFZLENBQUE7QUFDMUIsY0FBYyxjQUFjLENBQUE7QUFDNUIsY0FBYyxlQUFlLENBQUEifQ==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RCxXQUFXLEVBQUUsYUFBYTtJQUMxQixPQUFPLEVBQUUsYUFBYTtJQUN0QixlQUFlLEVBQUUsYUFBYTtDQUMvQixDQUFBIn0=
//# sourceMappingURL=openapi3.js.map

@@ -179,2 +179,2 @@ import { allAnnotation, allBreaking, allUnclassified, unclassified, addNonBreaking, breaking, nonBreaking } from "../constants";

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZW5vZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcnVsZXMvc2VydmljZW5vZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLGFBQWEsRUFBRSxXQUFXLEVBQUUsZUFBZSxFQUMzQyxZQUFZLEVBQUUsY0FBYyxFQUFFLFFBQVEsRUFBRSxXQUFXLEVBQ3BELE1BQU0sY0FBYyxDQUFBO0FBQ3JCLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE1BQU0sVUFBVSxDQUFBO0FBQ25FLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxHQUFHLENBQUE7QUFHbkMsTUFBTSxhQUFhLEdBQUcsQ0FBQyxLQUFZLEVBQUUsRUFBRSxDQUFDLFNBQVMsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxFQUFFLE1BQU0sRUFBRSxFQUFFLEtBQUssRUFBRSxDQUFDLEVBQUUsRUFBRSxLQUFLLEVBQUUsRUFBRSxLQUFLLEVBQUUsQ0FBQyxFQUFFLEVBQUUsRUFBRSxFQUFFOztJQUN6RyxJQUFJLENBQUMsQ0FBQyxJQUFJLEtBQUssQ0FBQyxDQUFDLElBQUksRUFBRTtRQUNyQixPQUFPLEtBQUssQ0FBQTtLQUNiO0lBQ0QsSUFBSSxDQUFDLENBQUMsSUFBSSxLQUFLLE9BQU8sRUFBRTtRQUN0QixPQUFPLEN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FBQVEsRUFBRSxRQUFRLENBQUM7UUFDdEMsSUFBSSxFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsRUFBRSxFQUFFLENBQUMsSUFBSSxLQUFLLE9BQU8sQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxjQUFjO0tBQ25FLENBQUM7SUFDRixhQUFhLEVBQUU7UUFDYixHQUFHLEVBQUUsQ0FBQyxXQUFXLEVBQUUsV0FBVyxFQUFFLFdBQVcsQ0FBQztRQUM1QyxVQUFVLEVBQUU7WUFDVixHQUFHLEVBQUUsQ0FBQyxXQUFXLEVBQUUsUUFBUSxFQUFFLFFBQVEsQ0FBQztZQUN0QyxJQUFJLEVBQUUsZUFBZSxDQUFDLGNBQWMsQ0FBQztTQUN0QztLQUNGO0NBQ0YsQ0FBQSJ9
//# sourceMappingURL=servicenode.js.map
export {};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
//# sourceMappingURL=types.js.map
import { Rule, MatchFunc, Rules, DiffType, ObjPath, DiffTypeFunc } from "./types";
import { DiffAction } from "./constants";
export declare type PathItem = string | number;
export declare class PathPointer implements Iterable<PathItem> {
key?: string | number | undefined;
parent?: PathPointer | undefined;
escapedKey: string;
items: PathItem[];
get ref(): string;
[Symbol.iterator](): Iterator<PathItem>;
constructor(key?: string | number | undefined, parent?: PathPointer | undefined);
childPath(key: string | number): PathPointer;
}
export declare const breakingIf: (v: boolean) => DiffType;
export declare const breakingIfAfterTrue: DiffTypeFunc;
export declare const added: (path: ObjPath, after: any) => {
path: ObjPath;
export declare const added: (path: PathPointer, after: any) => {
path: PathItem[];
after: any;
action: DiffAction;
};
export declare const removed: (path: ObjPath, before: any) => {
path: ObjPath;
export declare const removed: (path: PathPointer, before: any) => {
path: PathItem[];
before: any;
action: DiffAction;
};
export declare const replaced: (path: ObjPath, before: any, after: any) => {
path: ObjPath;
export declare const replaced: (path: PathPointer, before: any, after: any) => {
path: PathItem[];
before: any;

@@ -21,4 +32,4 @@ after: any;

};
export declare const renamed: (path: ObjPath, before: any, after: any) => {
path: ObjPath;
export declare const renamed: (path: PathPointer, before: any, after: any) => {
path: PathItem[];
before: any;

@@ -28,4 +39,4 @@ after: any;

};
export declare const unchanged: (path: ObjPath, before: any) => {
path: ObjPath;
export declare const unchanged: (path: PathPointer, before: any) => {
path: PathItem[];
before: any;

@@ -39,3 +50,3 @@ action: DiffAction;

export declare const getPathRules: (rules: Rules, path: ObjPath, source: any) => Rules | Rule | undefined;
export declare const getPathMatchFunc: (rules: Rules, path: ObjPath, source: any) => MatchFunc | undefined;
export declare const getPathMatchFunc: (rules: Rules, path: PathPointer, source: any) => MatchFunc | undefined;
export declare const findExternalRefs: (source: any | any[]) => string[];

@@ -42,0 +53,0 @@ export declare const matchRule: (rules: Rules, matchFunc: MatchFunc) => Rules;

import { __rest } from "tslib";
import { breaking, nonBreaking, DiffAction } from "./constants";
export class PathPointer {
constructor(key, parent) {
this.key = key;
this.parent = parent;
this.items = [];
if (key === undefined) {
this.escapedKey = "";
}
else {
this.escapedKey = typeof key === "string" ? key.replace(new RegExp("~1", "g"), "/") : String(key);
this.items = parent ? [...parent.items, key] : [key];
}
}
get ref() {
return this.parent ? this.parent.ref + "/" + this.escapedKey : this.escapedKey;
}
[Symbol.iterator]() {
let i = 0;
return {
next: () => ({
done: !(i < this.items.length),
value: this.items[i++]
})
};
}
childPath(key) {
return new PathPointer(key, this);
}
}
export const breakingIf = (v) => (v ? breaking : nonBreaking);
export const breakingIfAfterTrue = ({ after }) => breakingIf(after);
export const added = (path, after) => ({ path, after, action: DiffAction.add });
export const removed = (path, before) => ({ path, before, action: DiffAction.remove });
export const replaced = (path, before, after) => ({ path, before, after, action: DiffAction.replace });
export const renamed = (path, before, after) => ({ path, before, after, action: DiffAction.rename });
export const unchanged = (path, before) => ({ path, before, action: DiffAction.test });
export const added = (path, after) => ({ path: path.items, after, action: DiffAction.add });
export const removed = (path, before) => ({ path: path.items, before, action: DiffAction.remove });
export const replaced = (path, before, after) => ({ path: path.items, before, after, action: DiffAction.replace });
export const renamed = (path, before, after) => ({ path: path.items, before, after, action: DiffAction.rename });
export const unchanged = (path, before) => ({ path: path.items, before, action: DiffAction.test });
export const isEmptyObject = (obj) => {

@@ -52,3 +81,3 @@ for (const key in obj)

export const getPathMatchFunc = (rules, path, source) => {
const _rules = getPathRules(rules, path, source);
const _rules = getPathRules(rules, path.items, source);
return (_rules && !Array.isArray(_rules)) ? _rules["#"] : undefined;

@@ -143,2 +172,2 @@ };

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sRUFBRSxRQUFRLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGFBQWEsQ0FBQTtBQUUvRCxNQUFNLENBQUMsTUFBTSxVQUFVLEdBQUcsQ0FBQyxDQUFVLEVBQVksRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLFdBQVcsQ0FBQyxDQUFBO0FBQ2hGLE1BQU0sQ0FBQyxNQUFNLG1CQUFtQixHQUFpQixDQUFDLEVBQUUsS0FBSyxFQUFFLEVBQVksRUFBRSxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsQ0FBQTtBQUUzRixNQUFNLENBQUMsTUFBTSxLQUFLLEdBQUcsQ0FBQyxJQUFhLEVBQUUsS0FBVSxFQUFFLEVBQUUsQ0FBQyxDQUFDLEVBQUUsSUFBSSxFQUFFLEtBQUssRUFBR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QUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxHQUFHLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUE7S0FDM0Q7U0FBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsSUFBSSxPQUFPLEtBQUssS0FBSyxRQUFRLEVBQUU7UUFDakUsS0FBSSxNQUFNLEdBQUcsSUFBSSxPQUFPLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxFQUFFO1lBQ3ZDLEtBQUssQ0FBQyxHQUFHLENBQUMsR0FBRyxXQUFXLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxFQUFFLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFBO1NBQ2pEO1FBQ0QsT0FBTyxLQUFLLENBQUE7S0FDYjtTQUFNO1FBQ0wsT0FBTyxLQUFLLENBQUE7S0FDYjtBQUNILENBQUMsQ0FBQSJ9
//# sourceMappingURL=utils.js.map
{
"name": "api-smart-diff",
"version": "0.4.1",
"version": "0.4.2",
"description": "Generate the diff between two API specifications (OpenAPI, AsyncAPI, JsonSchema)",

@@ -40,3 +40,3 @@ "module": "dist/esm/index.js",

"ts-jest": "^26.1.0",
"ts-loader": "^8.0.8",
"ts-loader": "^8.4.0",
"ts-node": "^10.7.0",

@@ -43,0 +43,0 @@ "tslint": "^6.1.2",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc