New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2.21 to 0.3.0

dist/cjs/apiCompare.d.ts

6

browser/api-smart-diff.min.js

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

/*! api-smart-diff@0.2.21 */
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(E,e,t){"use strict";t.r(e),t.d(e,"messageTraitsRules",function(){return N}),t.d(e,"messageRules",function(){return z}),t.d(e,"asyncApi2Rules",function(){return L}),t.d(e,"openapi3Rules",function(){return U}),t.d(e,"jsonSchemaRules",function(){return k}),t.d(e,"serviceNodeRules",function(){return Y}),t.d(e,"DIFF_META_KEY",function(){return n}),t.d(e,"DiffAction",function(){return y}),t.d(e,"ClassifierType",function(){return r}),t.d(e,"breaking",function(){return a}),t.d(e,"nonBreaking",function(){return s}),t.d(e,"unclassified",function(){return i}),t.d(e,"annotation",function(){return o}),t.d(e,"allNonBreaking",function(){return f}),t.d(e,"allBreaking",function(){return c}),t.d(e,"onlyAddBreaking",function(){return u}),t.d(e,"addNonBreaking",function(){return l}),t.d(e,"allUnclassified",function(){return d}),t.d(e,"allAnnotation",function(){return p}),t.d(e,"apiDiff",function(){return H}),t.d(e,"compare",function(){return C}),t.d(e,"apiMerge",function(){return Z}),t.d(e,"apiDiffTree",function(){return te}),t.d(e,"breakingIf",function(){return m}),t.d(e,"breakingIfAfterTrue",function(){return h}),t.d(e,"typeOf",function(){return g}),t.d(e,"parsePath",function(){return b}),t.d(e,"buildPath",function(){return D}),t.d(e,"getPathRules",function(){return v}),t.d(e,"getPathMatchFunc",function(){return F}),t.d(e,"findExternalRefs",function(){return R}),t.d(e,"matchRule",function(){return O}),t.d(e,"objArray",function(){return x});const n="$diff";var y,r;(t=y=y||{}).add="add",t.remove="remove",t.replace="replace",(e=r=r||{}).breaking="breaking",e.nonBreaking="non-breaking",e.annotation="annotation",e.unclassified="unclassified";const{breaking:a,nonBreaking:s,unclassified:i,annotation:o}=r,f=[s,s,s],c=[a,a,a],u=[a,s,s],l=[s,a,a],d=[i,i,i],p=[o,o,o],m=e=>e?a:s,h=(e,t)=>m(t),g=e=>Array.isArray(e)?"array":null==typeof e?"null":typeof e,b=e=>{var[,...e]=e.split("/").map(e=>e.replace(new RegExp("~1","g"),"/"));return e},D=e=>"/"+e.map(e=>String(e).replace(new RegExp("/","g"),"~1")).join("/"),v=(e,t,r)=>{let n=e,a=r;for(var s of[...t]){if(a=void 0!==s&&void 0!==a?a[s]:void 0,n.hasOwnProperty("/"+s)&&"number"!=typeof s||(s="*"),!n.hasOwnProperty("/"+s))return;{const i=n["/"+s];if(Array.isArray(i))return i;n="function"==typeof i?i(a):i}}return n},F=(e,t,r)=>{e=v(e,t,r);return e&&!Array.isArray(e)?e["#"]:void 0},R=e=>{if("object"!=typeof e)return[];let t=new Set;if("array"===g(e))for(const n of e)"object"==typeof n&&(t=new Set([...t,...R(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,...R(e[a])]))}return[...t]},O=(e,t)=>(e["#"]=t,e),x=(r,e)=>O(e,(e,t)=>t[r]===e[r]),j=[a,s,(e,t)=>m(t<e)],w=[a,s,(e,t)=>m(e<t)],_=[h,s,h],S=[h,s,h],$=[a,s,(e,t)=>m(!!(e%t))],k=(e=d)=>({"/":e,"/title":p,"/multipleOf":$,"/maximum":j,"/exclusiveMaximum":_,"/minimum":w,"/exclusiveMinimum":_,"/maxLength":j,"/minLength":w,"/pattern":[a,s,a],"/maxItems":j,"/minItems":w,"/uniqueItems":S,"/maxProperties":j,"/minProperties":w,"/required":{"/":u,"/*":[a,s,a]},"/enum":{"/":[a,s,a],"/*":[s,a,a]},"/type":[a,s,a],"/not":{"/":[a,s,a],"/*":()=>k(c)},"/allOf":{"/":[a,s,a],"/*":()=>k(c)},"/oneOf":{"/":[a,s,a],"/*":()=>k(l)},"/anyOf":{"/":[a,s,a],"/*":()=>k(l)},"/items":()=>k(l),"/properties":{"/":[a,s,a],"/*":()=>k(l)},"/additionalProperties":()=>k([a,a,h]),"/description":p,"/format":[a,s,a],"/default":[s,a,a],"/nullable":S,"/discriminator":{"/":d,"/propertyName":d,"/mapping":d},"/readOnly":S,"/writeOnly":S,"/example":p,"/examples":p,"/externalDocs":p,"/deprecated":S,"/xml":{"/":d,"/name":d,"/namespace":d,"/prefix":d,"/attribute":d,"/wrapped":d}});var t={"/":l,"/location":l,"/description":p},e={"/summary":p,"/tags":p,"/externalDocs":p,"/bindings":d},A=Object.assign({"/":l,"/*":l,"/operationId":l,"/description":p},e);const N=Object.assign({"/":l,"/*":l,"/headers":d,"/correlationId":t,"/schemaFormat":c,"/contentType":l,"/name":f,"/title":f,"/examples":p},e),z=Object.assign({"/":c,"/headers":d,"/correlationId":t,"/schemaFormat":c,"/contentType":l,"/name":f,"/title":f,"/description":f,"/examples":p,"/traits":N,"/payload":k(c)},e);t=Object.assign({"/":l,"/operationId":l,"/description":p,"/traits":A,"/message":z},e),A={"/":l,"/version":l,"/termsOfService":l,"/license":{"/":l,"/name":c,"/url":u},"/title":p,"/description":p,"/contact":{"/":p,"/name":p,"/url":p,"/email":p}},e={"/":l,"/*":{"/":l,"/url":l,"/description":p,"/protocol":c,"/protocolVersion":c,"/variables":{"/":l,"/*":{"/":l,"/enum":{"/":l,"/*":l},"/default":c,"/description":p,"/examples":p}},"/security":{"/":c,"/*":c},"/bindings":d}},t={"/":l,"/description":f,"/bindings":d,"/subscribe":t,"/publish":t,"/parameters":{"/":c,"/*":{"/":l,"/description":f,"/schema":k(c),"/location":c}}};const L={"/asyncapi":l,"/id":p,"/defaultContentType":c,"/info":A,"/servers":e,"/channels":{"/":l,"/*":t},"/components":f,"/tags":p,"/externalDocs":p};var A={"/":[s,a,a],"/*":{"/":[s,a,a],"/url":[s,a,a],"/description":p,"/variables":{"/":[s,a,a],"/*":{"/":[s,a,a],"/enum":{"/":[s,a,a],"/*":[s,a,a]},"/default":[a,a,a],"/description":p}}}},e={"/":[s,a,a],"/*":{"/":[s,a,a],"/name":[s,a,a],"/in":[s,a,a],"/description":p,"/required":[a,s,h],"/deprecated":[a,s,h]}},t={"/":[s,a,a],"/*":{"/":[s,a,a],"/description":p,"/required":[a,s,h],"/deprecated":[a,s,h]}},M={"/":[s,s,s],"/*":{"/contentType":[s,a,a],"/headers":t,"/style":[s,a,a],"/explode":[s,a,a],"/allowReserved":[s,a,a]}},M={"/":[s,a,a],"/*":{"/":[s,a,a],"/schema":k(c),"/example":p,"/examples":p,"/encoding":M}},P={"/":[s,a,a],"/description":p,"/content":M,"/required":[a,s,(e,t)=>t?a:s]},M={"/":[s,a,a],"/*":{"/":[s,a,a],"/description":p,"/headers":t,"/content":M}},T={"/":[a,s,i],"/*":[a,s,i]},q={"/":[s,a,a],"/tags":p,"/summary":p,"/description":p,"/externalDocs":p,"/operationId":[s,a,a],"/parameters":e,"/requestBody":P,"/responses":M,"/deprecated":[a,s,h],"/security":T,"/servers":A};const U={"/openapi":[s,a,a],"/info":{"/":[s,a,a],"/title":p,"/description":p,"/termsOfService":p,"/contact":p,"/licence":{"/":[s,a,a],"/name":[a,a,a],"/url":[a,s,s]},"/version":p},"/servers":A,"/paths":(q={"/":[s,a,a],"/*":{"/":[s,a,s],"/summary":p,"/description":p,"/*":q,"/servers":A,"/parameters":e}},O(q,(e,t)=>{return e.replace(new RegExp("{.*?}","g"),"*")===t.replace(new RegExp("{.*?}","g"),"*")})),"/components":{"/":[s,s,s],"/schemas":{"/":[s,a,a],"/*":k(l)},"/responses":{"/":[s,a,a],"/*":M},"/parameters":{"/":[s,a,a],"/*":e},"/examples":p,"/requestBodies":{"/":[s,a,a],"/*":P},"/headers":t,"/securitySchemes":{"/":[a,s,a],"/*":{"/":[a,s,a],"/type":[a,s,a],"/description":p,"/name":[a,s,a],"/in":[a,s,a],"/scheme":[a,s,a],"/bearerFormat":p,"/flows":[a,s,a],"/openIdConnectUrl":p}}},"/security":T,"/tags":p,"/externalDocs":p};A=e=>O(e,(e,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)}),q={"/name":[s,a,a],"/style":d,"/description":p,"/explode":d,"/required":[a,s,h],"/deprecated":[a,s,h]},M={"/":[s,a,a],"/*":q},e={"/":l,"/*":{"/":[s,a,a],"/mediaType":[s,a,a],"/schema":k(c),"/examples":x("key",{"/":p,"/*":p}),"/encodings":[s,a,a]}},P={"/path":x("name",M),"/query":x("name",{"/":[s,a,a],"/*":Object.assign(Object.assign({},q),{"/allowEmptyValue":[a,s,h],"/allowReserved":[a,s,h]})}),"/headers":x("name",M),"/cookie":x("name",M),"/body":{"/":[s,a,a],"/contents":x("mediaType",e),"/required":[a,s,h],"/description":p}},t={"/":d,"/*":{"/name":[s,a,a],"/style":d,"/description":p,"/explode":d,"/required":[a,s,h],"/deprecated":[a,s,h]}},T={"/":l,"/*":{"/":l,"/code":d,"/contents":x("mediaType",e),"/headers":x("name",t),"/description":p}},q={"/":[s,a,a],"/url":[s,a,a],"/name":p,"/description":p,"/variables":[s,a,a]},M={"/":[a,s,i],"/*":[a,s,i]};const V={"/":[s,a,a],"/data":()=>k(l),"/*":p},J={"/":[s,a,a],"/data":{"/id":p,"/iid":p,"/tags":p,"/summary":p,"/description":p,"/method":[s,a,a],"/path":[s,a,a],"/request":P,"/responses":x("code",T),"/servers":{"/":d,"/*":q},"/callbacks":A({"/callbackName":p,"/method":[s,a,a],"/path":[s,a,a],"/request":P,"/responses":x("code",T),"/deprecated":d,"/internal":d,"/extensions":d}),"/security":M,"/deprecated":[a,s,h],"/internal":d,"/extensions":d},"/*":p};e={"/id":p,"/iid":p,"/tags":p,"/summary":p,"/description":p,"/name":p,"/version":p,"/servers":{"/":[s,a,a],"/*":q},"/security":M,"/securitySchemes":x("name",{"/":l,"/*":{"/":[a,s,a],"/type":[a,s,a],"/description":p,"/name":[a,s,a],"/in":[a,s,a],"/scheme":[a,s,a],"/bearerFormat":p,"/flows":[a,s,a],"/openIdConnectUrl":p}}),"/termsOfService":p,"/contact":p,"/license":[a,a,a],"/logo":p};const Y={"/*":p,"/data":e,"/children":A({"/":[s,a,a],"/*":({type:e})=>"model"===e?V:J}),"/components":{"/":[s,s,s],"/schemas":{"/":[s,a,a],"/*":k(l)}}};
/*! api-smart-diff@0.3.0 */
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(F,e,t){"use strict";t.r(e),t.d(e,"messageTraitsRules",function(){return L}),t.d(e,"messageRules",function(){return U}),t.d(e,"asyncApi2Rules",function(){return J}),t.d(e,"openapi3Rules",function(){return V}),t.d(e,"jsonSchemaRules",function(){return T}),t.d(e,"serviceNodeRules",function(){return H}),t.d(e,"DIFF_META_KEY",function(){return _}),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 s}),t.d(e,"annotation",function(){return i}),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,"breakingIf",function(){return m}),t.d(e,"breakingIfAfterTrue",function(){return h}),t.d(e,"added",function(){return b}),t.d(e,"removed",function(){return v}),t.d(e,"replaced",function(){return y}),t.d(e,"renamed",function(){return B}),t.d(e,"unchanged",function(){return g}),t.d(e,"typeOf",function(){return M}),t.d(e,"parsePath",function(){return $}),t.d(e,"buildPath",function(){return O}),t.d(e,"getPathRules",function(){return R}),t.d(e,"getPathMatchFunc",function(){return K}),t.d(e,"findExternalRefs",function(){return k}),t.d(e,"matchRule",function(){return x}),t.d(e,"objArray",function(){return j}),t.d(e,"ApiCompare",function(){return E}),t.d(e,"JsonCompare",function(){return X}),t.d(e,"apiDiff",function(){return Z}),t.d(e,"apiMerge",function(){return ee}),t.d(e,"apiDiffTree",function(){return te});const _="$diff";var d,r;(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";const{breaking:n,nonBreaking:a,unclassified:s,annotation:i}=r,o=[a,a,a],c=[n,n,n],f=[n,a,a],u=[a,n,n],l=[s,s,s],p=[i,i,i],m=e=>e?n:a,h=(e,t)=>m(t),b=(e,t)=>({path:e,after:t,action:d.add}),v=(e,t)=>({path:e,before:t,action:d.remove}),y=(e,t,r)=>({path:e,before:t,after:r,action:d.replace}),B=(e,t,r)=>({path:e,before:t,after:r,action:d.rename}),g=(e,t)=>({path:e,before:t,action:d.test}),M=e=>Array.isArray(e)?"array":null==typeof e?"null":typeof e,$=e=>{var[,...e]=e.split("/").map(e=>e.replace(new RegExp("~1","g"),"/"));return e},O=e=>"/"+e.map(e=>String(e).replace(new RegExp("/","g"),"~1")).join("/"),R=(e,t,r)=>{let n=e,a=r;for(var s of[...t]){if(a=void 0!==s&&void 0!==a?a[s]:void 0,n.hasOwnProperty("/"+s)&&"number"!=typeof s||(s="*"),!n.hasOwnProperty("/"+s))return;{const i=n["/"+s];if(Array.isArray(i))return i;n="function"==typeof i?i(a):i}}return n},K=(e,t,r)=>{e=R(e,t,r);return e&&!Array.isArray(e)?e["#"]:void 0},k=e=>{if("object"!=typeof e)return[];let t=new Set;if("array"===M(e))for(const n of e)"object"==typeof n&&(t=new Set([...t,...k(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,...k(e[a])]))}return[...t]},x=(e,t)=>(e["#"]=t,e),j=(r,e)=>x(e,({before:e,after:t})=>t.value[r]===e.value[r]),A=[n,a,(e,t)=>m(t<e)],w=[n,a,(e,t)=>m(e<t)],N=[h,a,h],S=[h,a,h],z=[n,a,(e,t)=>m(!!(e%t))],T=(e=l)=>({"/":e,"/title":p,"/multipleOf":z,"/maximum":A,"/exclusiveMaximum":N,"/minimum":w,"/exclusiveMinimum":N,"/maxLength":A,"/minLength":w,"/pattern":[n,a,n],"/maxItems":A,"/minItems":w,"/uniqueItems":S,"/maxProperties":A,"/minProperties":w,"/required":{"/":f,"/*":[n,a,n]},"/enum":{"/":[n,a,n],"/*":[a,n,n]},"/type":[n,a,n],"/not":{"/":[n,a,n],"/*":()=>T(c)},"/allOf":{"/":[n,a,n],"/*":()=>T(c)},"/oneOf":{"/":[n,a,n],"/*":()=>T(u)},"/anyOf":{"/":[n,a,n],"/*":()=>T(u)},"/items":()=>T(u),"/properties":{"/":[n,a,n],"/*":()=>T(u)},"/additionalProperties":()=>T([n,n,h]),"/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},D=Object.assign({"/":u,"/*":u,"/operationId":u,"/description":p},e);const L=Object.assign({"/":u,"/*":u,"/headers":l,"/correlationId":t,"/schemaFormat":c,"/contentType":u,"/name":o,"/title":o,"/examples":p},e),U=Object.assign({"/":c,"/headers":l,"/correlationId":t,"/schemaFormat":c,"/contentType":u,"/name":o,"/title":o,"/description":o,"/examples":p,"/traits":L,"/payload":T(c)},e);t=Object.assign({"/":u,"/operationId":u,"/description":p,"/traits":D,"/message":U},e),D={"/":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":T(c),"/location":c}}};const J={"/asyncapi":u,"/id":p,"/defaultContentType":c,"/info":D,"/servers":e,"/channels":{"/":u,"/*":t},"/components":o,"/tags":p,"/externalDocs":p};var D={"/":[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,n],"/in":[a,n,n],"/description":p,"/required":[n,a,h],"/deprecated":[n,a,h]}},t={"/":[a,n,n],"/*":{"/":[a,n,n],"/description":p,"/required":[n,a,h],"/deprecated":[n,a,h]}},P={"/":[a,a,a],"/*":{"/contentType":[a,n,n],"/headers":t,"/style":[a,n,n],"/explode":[a,n,n],"/allowReserved":[a,n,n]}},P={"/":[a,n,n],"/*":{"/":[a,n,n],"/schema":T(c),"/example":p,"/examples":p,"/encoding":P}},I={"/":[a,n,n],"/description":p,"/content":P,"/required":[n,a,(e,t)=>t?n:a]},P={"/":[a,n,n],"/*":{"/":[a,n,n],"/description":p,"/headers":t,"/content":P}},q={"/":[n,a,s],"/*":[n,a,s]},C={"/":[a,n,n],"/tags":p,"/summary":p,"/description":p,"/externalDocs":p,"/operationId":[a,n,n],"/parameters":e,"/requestBody":I,"/responses":P,"/deprecated":[n,a,h],"/security":q,"/servers":D};const V={"/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":D,"/paths":(C={"/":[a,n,n],"/*":{"/":[a,n,a],"/summary":p,"/description":p,"/*":C,"/servers":D,"/parameters":e}},x(C,({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],"/*":T(u)},"/responses":{"/":[a,n,n],"/*":P},"/parameters":{"/":[a,n,n],"/*":e},"/examples":p,"/requestBodies":{"/":[a,n,n],"/*":I},"/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":q,"/tags":p,"/externalDocs":p};D=e=>x(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)}),C={"/name":[a,n,n],"/style":l,"/description":p,"/explode":l,"/required":[n,a,h],"/deprecated":[n,a,h]},P={"/":[a,n,n],"/*":C},e={"/":u,"/*":{"/":[a,n,n],"/mediaType":[a,n,n],"/schema":T(c),"/examples":j("key",{"/":p,"/*":p}),"/encodings":[a,n,n]}},I={"/path":j("name",P),"/query":j("name",{"/":[a,n,n],"/*":Object.assign(Object.assign({},C),{"/allowEmptyValue":[n,a,h],"/allowReserved":[n,a,h]})}),"/headers":j("name",P),"/cookie":j("name",P),"/body":{"/":[a,n,n],"/contents":j("mediaType",e),"/required":[n,a,h],"/description":p}},t={"/":l,"/*":{"/name":[a,n,n],"/style":l,"/description":p,"/explode":l,"/required":[n,a,h],"/deprecated":[n,a,h]}},q={"/":u,"/*":{"/":u,"/code":l,"/contents":j("mediaType",e),"/headers":j("name",t),"/description":p}},C={"/":[a,n,n],"/url":[a,n,n],"/name":p,"/description":p,"/variables":[a,n,n]},P={"/":[n,a,s],"/*":[n,a,s]};const Y={"/":[a,n,n],"/data":()=>T(u),"/*":p},G={"/":[a,n,n],"/data":{"/id":p,"/iid":p,"/tags":p,"/summary":p,"/description":p,"/method":[a,n,n],"/path":[a,n,n],"/request":I,"/responses":j("code",q),"/servers":{"/":l,"/*":C},"/callbacks":D({"/callbackName":p,"/method":[a,n,n],"/path":[a,n,n],"/request":I,"/responses":j("code",q),"/deprecated":l,"/internal":l,"/extensions":l}),"/security":P,"/deprecated":[n,a,h],"/internal":l,"/extensions":l},"/*":p};e={"/id":p,"/iid":p,"/tags":p,"/summary":p,"/description":p,"/name":p,"/version":p,"/servers":{"/":[a,n,n],"/*":C},"/security":P,"/securitySchemes":j("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 H={"/*":p,"/data":e,"/children":D({"/":[a,n,n],"/*":({type:e})=>"model"===e?Y:G}),"/components":{"/":[a,a,a],"/schemas":{"/":[a,n,n],"/*":T(u)}}};
/*! *****************************************************************************

@@ -16,2 +16,2 @@ Copyright (c) Microsoft Corporation.

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function G(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 I=(e,t,r,n)=>{if(e.hasOwnProperty("$ref")){const i=e["$ref"],o=G(e,["$ref"]);if(r.has(i))return e;var[a,s]=i.split("#");if(a){if(!n.has(a))return e;t=n.get(a)}e=Object.assign(Object.assign({},o),((e,t,r={})=>{t=Array.isArray(t)?t:b(t);let n=e;r=new Map(Object.entries(r));for(const a of t){if(void 0===(n="array"===g(n)?n[+a]:n[a]))break;n=I(n,e,new Set,r)}return n})(t,s,n)),r.add(i),n.set(i,e)}return e},K=(e,t,r={})=>{const n=e;r=v(r,[...e.path,""],t);const a=(Array.isArray(r)?r:d)[["add","remove","replace"].indexOf(e.action)];return n.type="function"==typeof a?a(e.before,e.after):a,n};class B{constructor(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.rules="string"==typeof r.rules?this.getBaseRules(r.rules):r.rules||{},this.trimStrings=r.trimStrings,this.caseSensitive=r.caseSensitive,this.strictArrays=r.strictArrays;var n=r.externalRefs||{};for(const a of Object.keys(n))this.beforeCache.set(a,n[a]),this.afterCache.set(a,n[a])}normalizeString(e){return e=this.trimStrings?e.trim():e,e=this.caseSensitive?e:e.toLowerCase()}getPathMatchFunc(e){return F(this.rules,e,this.before)}dereference(e,t,r){const n="#"+D(r);this.beforeRefs.add(n),this.afterRefs.add(n);return[I(e,this.before,this.beforeRefs,this.beforeCache),I(t,this.after,this.afterRefs,this.afterCache),()=>{e.$ref&&this.beforeRefs.delete(e.$ref),t.$ref&&this.afterRefs.delete(t.$ref),this.beforeRefs.delete(n),this.afterRefs.delete(n)}]}getBaseRules(e){switch(e){case"OpenApi3":return U;case"AsyncApi2":return L;case"JsonSchema":return k()}}equalResult(e,t){return{diffs:[]}}diffResult(e){return{diffs:[K(e,this.before,this.rules)]}}mergeResult(e,t){e.diffs=[...e.diffs,...t.diffs]}}const H=(e,t,r={})=>{return C(e,t,new B(e,t,r)).diffs},C=(e,t,r,n=[])=>{if(g(e)!==g(t))return r.diffResult({path:n,before:e,after:t,action:y.replace});switch(g(e)){case"object":return Q(e,t,r,n);case"array":return W(e,t,r,n);default:return"string"==typeof e&&(e=r.normalizeString(e),t=r.normalizeString(t)),e!==t?r.diffResult({path:n,before:e,after:t,action:y.replace}):r.equalResult(e,n)}},Q=(e,t,r,n)=>{var a={diffs:[]};const[s,i,o]=r.dereference(e,t,n);if(0===Object.keys(s).length&&0===Object.keys(i).length)return r.equalResult(e,n);t=Object.keys(s);const f=new Set(Object.keys(i)),c=r.getPathMatchFunc(n);for(const m of t){var u,l=[...f].find(e=>e===m||c&&c(m,e)),d=[...n,m];l&&l!==m&&(u={path:d,before:m,after:l,action:y.replace},r.mergeResult(a,r.diffResult(u))),void 0===l?(u={path:d,before:s[m],action:y.remove},r.mergeResult(a,r.diffResult(u))):(r.mergeResult(a,C(s[m],i[l],r,d)),f.delete(l))}for(const h of f){var p={path:[...n,h],after:i[h],action:y.add};r.mergeResult(a,r.diffResult(p))}return o(),a},W=(t,r,e,n)=>{if(0===t.length&&0===r.length)return e.equalResult(t,n);const a=e.getPathMatchFunc(n);if(!e.strictArrays&&!a)return X(t,r,e,n);var s={diffs:[]};const i=new Set(r.keys());for(const c of t.keys()){var o,f=[...n,c];a?void 0===(o=a&&[...i].find(e=>a(t[c],r[e])))?e.mergeResult(s,e.diffResult({path:f,before:t[c],action:y.remove})):(i.delete(o),e.mergeResult(s,C(t[c],r[o],e,f))):c>=r.length?e.mergeResult(s,e.diffResult({path:f,before:t[c],action:y.remove})):(i.delete(c),e.mergeResult(s,C(t[c],r[c],e,f)))}for(const u of i)e.mergeResult(s,e.diffResult({path:[...n,-1],after:r[u],action:y.add}));return s},X=(n,a,s,i)=>{var t,o={diffs:[]};const e=[],f=[],c=new Set,u=new Set;for(let r=0;r<n.length;r++){let t=[];for(let e=0;e<a.length;e++)if(!c.has(e)){var l=C(n[r],a[e],s,[...i,r]);if(!l.diffs.length){c.add(e),u.add(r),t=l;break}t[e]=l}f.push(t)}for(let r=0;r<n.length;r++){const m=f[r];if(u.has(r))e[r]=[],s.mergeResult(o,m);else{const h=[...Array(a.length).keys()];var d,p=h.sort((e,t)=>{return((null==(e=m[e])?void 0:e.diffs.length)||0)-((null==(e=m[t])?void 0:e.diffs.length)||0)});for(let e=0;e<a.length;e++){let t=p[e];if(!c.has(t)){for(let e=0;e<n.length;e++)if(!u.has(e)&&f[e][t]<f[r][t]){t=-1;break}if(0<=t){s.mergeResult(o,m[t]),u.add(r),c.add(t);break}}}u.has(r)||(d={path:[...i,r],before:n[r],action:y.remove},s.mergeResult(o,s.diffResult(d)))}}for(let e=0;e<a.length;e++)c.has(e)||(t={path:[...i,-1],after:a[e],action:y.add},s.mergeResult(o,s.diffResult(t)));return o},Z=(e,t,r={})=>{e=C(e,t,new ee(e,t,r)).value;return e};class ee extends B{constructor(e,t,r){super(e,t,r),this._formatMeta=e=>Object.assign({type:e.type,action:e.action},e.action===y.replace?{replaced:e.before}:{}),this.formatMeta=r.formatMeta||(e=>this._formatMeta(e)),this.metaKey=r.metaKey||n,this.arrayMeta=r.arrayMeta||!1}equalResult(e,t){return{diffs:[],value:e,path:t}}diffResult(e){return{diffs:[K(e,this.before,this.rules)],diff:K(e,this.before,this.rules),path:e.path}}mergeResult(e,t){var r;e.diffs=[...e.diffs,...t.diffs];let n=t.path[t.path.length-1];var a="number"==typeof n;const s=e.value||(a?[]:{});n=-1===n?s.length:n,t.diff?(t.diff.action===y.remove?s[n]=t.diff.before:s[n]=t.diff.after,a=this.formatMeta(t.diff),"array"!==g(s)||this.arrayMeta?s[this.metaKey]=Object.assign(Object.assign({},s[this.metaKey]),{[n]:a}):e.meta={array:Object.assign(Object.assign({},null==(r=e.meta)?void 0:r.array),{[n]:a})}):(s[n]=t.value,t.meta&&(s[this.metaKey]=Object.assign(Object.assign({},s[this.metaKey]),{[n]:t.meta}))),e.value=s,e.path=t.path.slice(0,-1)}}const te=(e,t,r={})=>{e=C(e,t,new re(e,t,r)).diffTree;return e};class re extends B{constructor(){super(...arguments),this.metaKey=n}equalResult(e,t){return{diffs:[],value:e,path:t}}diffResult(e){return{diffs:[K(e,this.before,this.rules)],diff:K(e,this.before,this.rules),path:e.path}}mergeResult(e,t){e.diffs=[...e.diffs,...t.diffs];let r=t.path[t.path.length-1];var n="number"==typeof r;const a=e.value||(n?[]:{}),s=e.diffTree||{};r=-1===r?a.length:r,t.diff?(t.diff.action===y.remove?a[r]=t.diff.before:a[r]=t.diff.after,(n=t.diff)["path"],n=G(n,["path"]),s[this.metaKey]=Object.assign(Object.assign({},s[this.metaKey]),{[r]:n})):(a[r]=t.value,void 0!==t.diffTree&&Object.keys(t.diffTree).length&&(s[r]=t.diffTree),t.meta&&(s[this.metaKey]=Object.assign(Object.assign({},s[this.metaKey]),{[r]:t.meta}))),e.value=a,e.diffTree=s,e.path=t.path.slice(0,-1)}}}]);
***************************************************************************** */function Q(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 W=(e,t,r,n)=>{if(e.hasOwnProperty("$ref")){const i=e["$ref"],o=Q(e,["$ref"]);if(r.has(i))return e;var[a,s]=i.split("#");if(a){if(!n.has(a))return e;t=n.get(a)}e=Object.assign(Object.assign({},o),((e,t,r={})=>{t=Array.isArray(t)?t:$(t);let n=e;r=new Map(Object.entries(r));for(const a of t){if(void 0===(n="array"===M(n)?n[+a]:n[a]))break;n=W(n,e,new Set,r)}return n})(t,s,n)),r.add(i),n.set(i,e)}return e};class X{constructor(e,t,r={}){this.before=e,this.after=t,this._formatMergeMeta=e=>Object.assign({action:e.action},e.action===d.replace?{replaced:e.before}:{}),this.trimStrings=r.trimStrings,this.caseSensitive=r.caseSensitive,this.strictArrays=r.strictArrays,this.matchRules=r.matchRules||{},this.diffKey=r.metaKey||_,this.arrayMeta=r.arrayMeta,this.formatMergedMeta=r.formatMergedMeta||this._formatMergeMeta.bind(this)}setMeta(e,t,r){void 0===e[this.diffKey]&&(e[this.diffKey]={}),e[this.diffKey][t]=r}checkMatch(e,t,r,n,a){const s=this.getMatchFunc(e);return!!s&&s({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=O(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).value}normalizeString(e){return e=this.trimStrings?e.trim():e,e=this.caseSensitive?e:e.toLowerCase()}mergeResults(e,t=!1){const r={diffs:[],diffTree:{},value:t?[]:{}};for(var n of Object.keys(e)){var{diffs:a,diff:s,diffTree:i,value:o,parentMeta:c}=e[n];if(s&&s.action!==d.test){var f=s["path"],u=Q(s,["path"]),f=f[f.length-1];if(this.setMeta(r.diffTree,f,u),r.diffs.push(s),t&&!this.arrayMeta?(void 0===r.parentMeta&&(r.parentMeta={}),r.parentMeta[f]=this.formatMergedMeta(s)):this.setMeta(r.value,f,this.formatMergedMeta(s)),f!==(t?+n:n))continue}else a.length&&(r.diffTree[n]=i,r.diffs.push(...a)),c&&this.setMeta(r.value,t?+n:n,{array:c});r.value[t?+n:n]=o}return r}compareResult(e){return e.action===d.test?{diffs:[],diff:e,value:e.before}:{diffs:[e],diff:e,value:e.action===d.remove?e.before:e.after}}compareAny(e,t,r=[]){if(M(e)!==M(t))return this.compareResult(y(r,e,t));switch(M(e)){case"object":return this.compareObjects(e,t,r);case"array":return this.compareArrays(e,t,r);default:var n="string"==typeof e?this.normalizeString(e)===this.normalizeString(t):e===t;return this.compareResult(n?g(r,e):y(r,e,t))}}compareObjects(t,r,n){const e={};if(0===Object.keys(t).length&&0===Object.keys(r).length)return this.compareResult(g(n,t));var a=Object.keys(t);const s=new Set(Object.keys(r));for(const c of a){var i=[...s].find(e=>e===c||this.checkMatch(n,t,r,c,e)),o=[...n,c];i&&i!==c&&(e[c]=this.compareResult(B(n,c,i))),void 0===i?e[c]=this.compareResult(v(o,t[c])):(e[i]=this.compareAny(t[c],r[i],o),s.delete(i))}for(const f of s)e[f]=this.compareResult(b([...n,f],r[f]));return this.mergeResults(e)}compareArrays(t,r,n){if(0===t.length&&0===r.length)return this.compareResult(g(n,t));var e=this.getMatchFunc(n);if(!this.strictArrays&&!e)return this.compareEnums(t,r,n);const a={},s=new Set(r.keys());for(const c of t.keys()){var i,o=[...n,c];e?void 0===(i=[...s].find(e=>this.checkMatch(n,t,r,c,e)))?a[c]=this.compareResult(v(o,t[c])):(s.delete(i),a[c]=this.compareAny(t[c],r[i],o)):c>=r.length?a[c]=this.compareResult(v(o,t[c])):(s.delete(c),a[c]=this.compareAny(t[c],r[c],o))}let c=t.length;for(const f of s)a[c]=this.compareResult(b([...n,c++],r[f]));return this.mergeResults(a,!0)}compareEnums(t,r,n){const a={},e=[],s=[],i=new Set,o=new Set;for(const d of t.keys()){let e=[];for(const p of r.keys())if(!i.has(p)){var c=this.compareAny(t[d],r[p],[...n,d]);if(!c.diffs.length){i.add(p),o.add(d),e=c;break}e[p]=c}s.push(e)}for(const d of t.keys()){const m=s[d];if(Array.isArray(m)){const h=[...Array(r.length).keys()];var f=h.sort((e,t)=>{return((null==(e=m[e])?void 0:e.diffs.length)||0)-((null==(e=m[t])?void 0:e.diffs.length)||0)});for(const y of r.keys()){let e=f[y];if(!i.has(e)){for(const g of t.keys()){var u=s[g];if(Array.isArray(u)&&!o.has(g)&&u[e]<m[e]){e=-1;break}}if(0<=e){a[d]=m[e],o.add(d),i.add(e);break}}}o.has(d)||(a[d]=this.compareResult(v([...n,d],t[d])))}else e[d]=[],a[d]=m}let d=t.length;for(var l of r.keys())i.has(l)||(a[d]=this.compareResult(b([...n,d++],r[l])));return this.mergeResults(a,!0)}}class E extends X{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._formatMergeMeta=e=>Object.assign({type:e.type,action:e.action},e.action===d.replace?{replaced:e.before}:{}),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 K(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="#"+O(r);this.beforeRefs.add(n),this.afterRefs.add(n);return[W(e,this.before,this.beforeRefs,this.beforeCache),W(t,this.after,this.afterRefs,this.afterCache),()=>{e.$ref&&this.beforeRefs.delete(e.$ref),t.$ref&&this.afterRefs.delete(t.$ref),this.beforeRefs.delete(n),this.afterRefs.delete(n)}]}getBaseRules(e){switch(e){case"OpenApi3":return V;case"AsyncApi2":return J;case"JsonSchema":return T()}}classifyDiff(e){const t=e;if("test"===e.action)return t;var r="rename"===e.action?[...e.path,"*",""]:[...e.path,""],r=R(this.rules,r,this.before);const n=(Array.isArray(r)?r:l)["rename"===e.action?2:["add","remove","replace"].indexOf(e.action)];return t.type="function"==typeof n?n(e.before,e.after):n,t}compareResult(e){return super.compareResult(this.classifyDiff(e))}compareObjects(e,t,r){const[n,a,s]=this.dereference(e,t,r);e=super.compareObjects(n,a,r);return s(),e}}const Z=E.apiDiff,ee=E.apiMerge,te=E.apiDiffTree}]);

@@ -6,3 +6,5 @@ import { Rule } from "./types";

remove = "remove",
replace = "replace"
replace = "replace",
rename = "rename",
test = "test"
}

@@ -9,0 +11,0 @@ export declare enum ClassifierType {

@@ -10,2 +10,4 @@ "use strict";

DiffAction["replace"] = "replace";
DiffAction["rename"] = "rename";
DiffAction["test"] = "test";
})(DiffAction = exports.DiffAction || (exports.DiffAction = {}));

@@ -27,2 +29,2 @@ var ClassifierType;

exports.allAnnotation = [exports.annotation, exports.annotation, exports.annot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BRSxtQkFBVyxFQUFFLG1CQUFXLENBQUMsQ0FBQTtBQUM5RCxRQUFBLFdBQVcsR0FBUyxDQUFDLGdCQUFRLEVBQUUsZ0JBQVEsRUFBRSxnQkFBUSxDQUFDLENBQUE7QUFDbEQsUUFBQSxlQUFlLEdBQVMsQ0FBQyxnQkFBUSxFQUFFLG1CQUFXLEVBQUUsbUJBQVcsQ0FBQyxDQUFBO0FBQzVELFFBQUEsY0FBYyxHQUFTLENBQUMsbUJBQVcsRUFBRSxnQkFBUSxFQUFFLGdCQUFRLENBQUMsQ0FBQTtBQUN4RCxRQUFBLGVBQWUsR0FBUyxDQUFDLG9CQUFZLEVBQUUsb0JBQVksRUFBRSxvQkFBWSxDQUFDLENBQUE7QUFDbEUsUUFBQSxhQUFhLEdBQVMsQ0FBQyxrQkFBVSxFQUFFLGtCQUFVLEVBQUUsa0JBQVUsQ0FBQyxDQUFBIn0=

@@ -0,7 +1,10 @@

import { ApiCompare } from "./apiCompare";
export * from "./rules/index";
export * from "./types";
export * from "./constants";
export { apiDiff, compare } from "./compare";
export { apiMerge } from "./merge";
export { apiDiffTree } from "./difftree";
export * from "./utils";
export { ApiCompare } from "./apiCompare";
export { JsonCompare } from "./jsonCompare";
export declare const apiDiff: typeof ApiCompare.apiDiff;
export declare const apiMerge: typeof ApiCompare.apiMerge;
export declare const apiDiffTree: typeof ApiCompare.apiDiffTree;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.apiDiffTree = exports.apiMerge = exports.compare = exports.apiDiff = void 0;
exports.apiDiffTree = exports.apiMerge = exports.apiDiff = exports.JsonCompare = exports.ApiCompare = void 0;
const tslib_1 = require("tslib");
const apiCompare_1 = require("./apiCompare");
tslib_1.__exportStar(require("./rules/index"), exports);
tslib_1.__exportStar(require("./types"), exports);
tslib_1.__exportStar(require("./constants"), exports);
var compare_1 = require("./compare");
Object.defineProperty(exports, "apiDiff", { enumerable: true, get: function () { return compare_1.apiDiff; } });
Object.defineProperty(exports, "compare", { enumerable: true, get: function () { return compare_1.compare; } });
var merge_1 = require("./merge");
Object.defineProperty(exports, "apiMerge", { enumerable: true, get: function () { return merge_1.apiMerge; } });
var difftree_1 = require("./difftree");
Object.defineProperty(exports, "apiDiffTree", { enumerable: true, get: function () { return difftree_1.apiDiffTree; } });
tslib_1.__exportStar(require("./utils"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdEQUE2QjtBQUM3QixrREFBdUI7QUFDdkIsc0RBQTJCO0FBQzNCLHFDQUE0QztBQUFuQyxrR0FBQSxPQUFPLE9BQUE7QUFBRSxrR0FBQSxPQUFPLE9BQUE7QUFDekIsaUNBQWtDO0FBQXpCLGlHQUFBLFFBQVEsT0FBQTtBQUNqQix1Q0FBd0M7QUFBL0IsdUdBQUEsV0FBVyxPQUFBO0FBQ3BCLGtEQUF1QiJ9
var apiCompare_2 = require("./apiCompare");
Object.defineProperty(exports, "ApiCompare", { enumerable: true, get: function () { return apiCompare_2.ApiCompare; } });
var jsonCompare_1 = require("./jsonCompare");
Object.defineProperty(exports, "JsonCompare", { enumerable: true, get: function () { return jsonCompare_1.JsonCompare; } });
exports.apiDiff = apiCompare_1.ApiCompare.apiDiff;
exports.apiMerge = apiCompare_1.ApiCompare.apiMerge;
exports.apiDiffTree = apiCompare_1.ApiCompare.apiDiffTree;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDZDQUF5QztBQUV6Qyx3REFBNkI7QUFDN0Isa0RBQXVCO0FBQ3ZCLHNEQUEyQjtBQUMzQixrREFBdUI7QUFDdkIsMkNBQXlDO0FBQWhDLHdHQUFBLFVBQVUsT0FBQTtBQUNuQiw2Q0FBMkM7QUFBbEMsMEdBQUEsV0FBVyxPQUFBO0FBRVAsUUFBQSxPQUFPLEdBQUcsdUJBQVUsQ0FBQyxPQUFPLENBQUE7QUFDNUIsUUFBQSxRQUFRLEdBQUcsdUJBQVUsQ0FBQyxRQUFRLENBQUE7QUFDOUIsUUFBQSxXQUFXLEdBQUcsdUJBQVUsQ0FBQyxXQUFXLENBQUEifQ==

@@ -7,5 +7,5 @@ "use strict";

const constants_1 = require("../constants");
const pathArrayRules = (rules) => (0, utils_1.matchRule)(rules, (b, a) => {
const beforePath = b.replace(new RegExp("\{.*?\}", "g"), "*");
const afterPath = a.replace(new RegExp("\{.*?\}", "g"), "*");
const pathArrayRules = (rules) => (0, utils_1.matchRule)(rules, ({ before, after }) => {
const beforePath = String(before.key).replace(new RegExp("\{.*?\}", "g"), "*");
const afterPath = String(after.key).replace(new RegExp("\{.*?\}", "g"), "*");
return beforePath === afterPath;

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

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BlbmFwaTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcnVsZXMvb3BlbmFwaTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsb0NBQXlEO0FBQ3pELDZDQUE4QztBQUU5Qyw0Q0FJcUI7QUFFckIsTUFBTSxjQUFjLEdBQUcsQ0FBQyxLQUFZLEVBQUUsRUFBRSxDQUFDLElBQUEsaUJBQVMsRUFBQyxLQUFLLEVBQUUsQ0FBQyxDQUFTLEVBQUUsQ0FBUyxFQUFFLEVBQUU7SUFDakYsTUFBTSxVQUFVLEdBQUcsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxJQUFJLE1BQU0sQ0FBQyxTQUFTLE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xlQUFlLEVBQUUseUJBQWE7Z0JBQzlCLFFBQVEsRUFBRSxDQUFDLG9CQUFRLEVBQUUsdUJBQVcsRUFBRSxvQkFBUSxDQUFDO2dCQUMzQyxtQkFBbUIsRUFBRSx5QkFBYTthQUNuQztTQUNGO0tBQ0Y7SUFDRCxXQUFXLEVBQUUsYUFBYTtJQUMxQixPQUFPLEVBQUUseUJBQWE7SUFDdEIsZUFBZSxFQUFFLHlCQUFhO0NBQy9CLENBQUEifQ==

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

const _1 = require(".");
const childrenArray = (rules) => (0, utils_1.matchRule)(rules, (b, a) => {
const childrenArray = (rules) => (0, utils_1.matchRule)(rules, ({ before: { value: b }, after: { value: a } }) => {
var _a, _b;

@@ -183,2 +183,2 @@ if (a.type !== b.type) {

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZW5vZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcnVsZXMvc2VydmljZW5vZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNENBR3FCO0FBQ3JCLG9DQUFtRTtBQUNuRSx3QkFBbUM7QUFHbkMsTUFBTSxhQUFhLEdBQUcsQ0FBQyxLQUFZLEVBQUUsRUFBRSxDQUFDLElBQUEsaUJBQVMsRUFBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7O0lBQ2hFLElBQUksQ0FBQyxDQUFDLElBQUksS0FBSyxDQUFDLENBQUMsSUFBSSxFQUFFO1FBQ3JCLE9BQU8sS0FBSyxDQUFBO0tBQ2I7SUFDRCxJQUFJLENBQUMsQ0FBQyxJQUFJLEtBQUssT0FBTyxFQUFFO1FBQ3RCLE9BQU8sQ0FBQyxDQUFDLElBQUksS0FBSyxDQUFDLENBQUMsSUFBSSxDQUFBO0tBQ3pCO1NBQU07UUFDTCxNQU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yxFQUFFLG9CQUFRLENBQUM7WUFDNUMsZUFBZSxFQUFFLHlCQUFhO1lBQzlCLFFBQVEsRUFBRSxDQUFDLG9CQUFRLEVBQUUsdUJBQVcsRUFBRSxvQkFBUSxDQUFDO1lBQzNDLG1CQUFtQixFQUFFLHlCQUFhO1NBQ25DO0tBQ0YsQ0FBQztJQUNGLGlCQUFpQixFQUFFLHlCQUFhO0lBQ2hDLFVBQVUsRUFBRSx5QkFBYTtJQUN6QixVQUFVLEVBQUUsQ0FBQyxvQkFBUSxFQUFFLG9CQUFRLEVBQUUsb0JBQVEsQ0FBQztJQUMxQyxPQUFPLEVBQUUseUJBQWE7Q0FDdkIsQ0FBQTtBQUVZLFFBQUEsZ0JBQWdCLEdBQVU7SUFDckMsSUFBSSxFQUFFLHlCQUFhO0lBQ25CLE9BQU8sRUFBRSxZQUFZO0lBQ3JCLFdBQVcsRUFBRSxhQUFhLENBQUM7UUFDekIsR0FBRyxFQUFFLENBQUMsdUJBQVcsRUFBRSxvQkFBUSxFQUFFLG9CQUFRLENBQUM7UUFDdEMsSUFBSSxFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsRUFBRSxFQUFFLENBQUMsSUFBSSxLQUFLLE9BQU8sQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxjQUFjO0tBQ25FLENBQUM7SUFDRixhQUFhLEVBQUU7UUFDYixHQUFHLEVBQUUsQ0FBQyx1QkFBVyxFQUFFLHVCQUFXLEVBQUUsdUJBQVcsQ0FBQztRQUM1QyxVQUFVLEVBQUU7WUFDVixHQUFHLEVBQUUsQ0FBQyx1QkFBVyxFQUFFLG9CQUFRLEVBQUUsb0JBQVEsQ0FBQztZQUN0QyxJQUFJLEVBQUUsSUFBQSxrQkFBZSxFQUFDLDBCQUFjLENBQUM7U0FDdEM7S0FDRjtDQUNGLENBQUEifQ==
export declare type ObjPath = Array<string | number>;
export declare type ActionType = "add" | "remove" | "replace";
export declare type UnclassifiedDiff = {
export declare type ActionType = "add" | "remove" | "replace" | "test" | "rename";
export declare type JsonDiff = {
action: ActionType;

@@ -9,3 +9,3 @@ path: ObjPath;

};
export declare type Diff = UnclassifiedDiff & {
export declare type Diff = JsonDiff & {
type: DiffType;

@@ -20,3 +20,18 @@ };

export declare type RulesRef = (b: any) => Rules;
export declare type MatchFunc = (b: any, a: any) => boolean;
export declare type MatchContext = {
path: ObjPath;
before: {
key: string | number;
value: any;
parent: any;
source: any;
};
after: {
key: string | number;
value: any;
parent: any;
source: any;
};
};
export declare type MatchFunc = (ctx: MatchContext) => boolean;
export declare type Rules = {

@@ -29,7 +44,22 @@ [key: `/${string}`]: Rule | Rules | RulesRef;

export declare type BaseRulesType = "OpenApi3" | "AsyncApi2" | "JsonSchema";
export declare type CompareOptions = {
rules?: Rules | BaseRulesType;
export declare type JsonCompareOptions<T extends JsonDiff = JsonDiff> = {
trimStrings?: boolean;
caseSensitive?: boolean;
strictArrays?: boolean;
matchRules?: {
[path: string]: MatchFunc;
};
metaKey?: string | symbol;
arrayMeta?: boolean;
formatMergedMeta?: (diff: T) => any;
};
export declare type CompareResult<T extends JsonDiff = JsonDiff> = {
diffs: T[];
diff?: T;
diffTree?: any;
value?: any;
parentMeta?: any;
};
export declare type ApiDiffOptions = JsonCompareOptions & {
rules?: Rules | BaseRulesType;
externalRefs?: {

@@ -39,24 +69,10 @@ [key: string]: any;

};
export declare type EnumDiff = {
added: number[];
removed: number[];
changed: {
[index: number]: {
afterIndex: number;
diffs: Diff[];
};
};
unchanged: number[];
};
export declare type MergeOptions<T = MergedKeyMeta> = CompareOptions & {
arrayMeta?: boolean;
formatMeta?: (diff: Diff) => T;
metaKey?: string | symbol;
};
export declare type MergedKeyMeta = {
type: DiffType;
export declare type JsonMergedMeta = {
action: ActionType;
replaced?: any;
};
export declare type MergedArrayMeta<T = MergedKeyMeta> = {
export declare type ApiMergedMeta = JsonMergedMeta & {
type: DiffType;
};
export declare type MergedArrayMeta<T = JsonMergedMeta> = {
array: {

@@ -63,0 +79,0 @@ [key: number]: T | MergedArrayMeta;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// export type MergeResult = [any, (MergedKeyMeta | MergedArrayMeta)?]
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUEwRUEsc0VBQXNFIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
import { Rule, MatchFunc, Rules, DiffType, ObjPath } from "./types";
import { DiffAction } from "./constants";
export declare const breakingIf: (v: boolean) => DiffType;
export declare const breakingIfAfterTrue: (_: any, a: any) => DiffType;
export declare const added: (path: ObjPath, after: any) => {
path: ObjPath;
after: any;
action: DiffAction;
};
export declare const removed: (path: ObjPath, before: any) => {
path: ObjPath;
before: any;
action: DiffAction;
};
export declare const replaced: (path: ObjPath, before: any, after: any) => {
path: ObjPath;
before: any;
after: any;
action: DiffAction;
};
export declare const renamed: (path: ObjPath, before: any, after: any) => {
path: ObjPath;
before: any;
after: any;
action: DiffAction;
};
export declare const unchanged: (path: ObjPath, before: any) => {
path: ObjPath;
before: any;
action: DiffAction;
};
export declare const typeOf: (value: any) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "array" | "null";

@@ -5,0 +33,0 @@ export declare const parsePath: (path: string) => string[];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.objArray = exports.matchRule = exports.findExternalRefs = exports.getPathMatchFunc = exports.getPathRules = exports.buildPath = exports.parsePath = exports.typeOf = exports.breakingIfAfterTrue = exports.breakingIf = void 0;
exports.objArray = exports.matchRule = exports.findExternalRefs = exports.getPathMatchFunc = exports.getPathRules = exports.buildPath = exports.parsePath = exports.typeOf = exports.unchanged = exports.renamed = exports.replaced = exports.removed = exports.added = exports.breakingIfAfterTrue = exports.breakingIf = void 0;
const constants_1 = require("./constants");

@@ -9,2 +9,12 @@ const breakingIf = (v) => (v ? constants_1.breaking : constants_1.nonBreaking);

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

@@ -89,5 +99,5 @@ if (Array.isArray(value)) {

const objArray = (key, rules) => {
return (0, exports.matchRule)(rules, (b, a) => a[key] === b[key]);
return (0, exports.matchRule)(rules, ({ before, after }) => after.value[key] === before.value[key]);
};
exports.objArray = objArray;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsMkNBQW1EO0FBRTVDLE1BQU0sVUFBVSxHQUFHLENBQUMsQ0FBVSxFQUFZLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsb0JBQVEsQ0FBQyxDQUFDLENBQUMsdUJBQVcsQ0FBQyxDQUFBO0FBQW5FLFFBQUEsVUFBVSxjQUF5RDtBQUN6RSxNQUFNLG1CQUFtQixHQUFHLENBQUMsQ0FBTSxFQUFFLENBQU0sRUFBWSxFQUFFLENBQU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xHQUFHLElBQUksRUFBRSxHQUFHLElBQUEsd0JBQWdCLEVBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFBO2lCQUM1RDthQUNGO1NBQ0Y7S0FDRjtJQUNELE9BQU8sQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFBO0FBQ2xCLENBQUMsQ0FBQTtBQXhCWSxRQUFBLGdCQUFnQixvQkF3QjVCO0FBRU0sTUFBTSxTQUFTLEdBQUcsQ0FBQyxLQUFZLEVBQUUsU0FBb0IsRUFBUyxFQUFFO0lBQ3JFLEtBQUssQ0FBQyxHQUFHLENBQUMsR0FBRyxTQUFTLENBQUE7SUFDdEIsT0FBTyxLQUFLLENBQUE7QUFDZCxDQUFDLENBQUE7QUFIWSxRQUFBLFNBQVMsYUFHckI7QUFFTSxNQUFNLFFBQVEsR0FBRyxDQUFDLEdBQVcsRUFBRSxLQUFZLEVBQVMsRUFBRTtJQUMzRCxPQUFPLElBQUEsaUJBQVMsRUFBQyxLQUFLLEVBQUUsQ0FBQyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsRUFBRSxFQUFFLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsS0FBSyxNQUFNLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUE7QUFDeEYsQ0FBQyxDQUFBO0FBRlksUUFBQSxRQUFRLFlBRXBCIn0=

@@ -6,3 +6,5 @@ import { Rule } from "./types";

remove = "remove",
replace = "replace"
replace = "replace",
rename = "rename",
test = "test"
}

@@ -9,0 +11,0 @@ export declare enum ClassifierType {

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

DiffAction["replace"] = "replace";
DiffAction["rename"] = "rename";
DiffAction["test"] = "test";
})(DiffAction || (DiffAction = {}));

@@ -24,2 +26,2 @@ export var ClassifierType;

export const allAnnotation = [annotation, annotation, annotation];
//# sourceMappingURL=data:application/json;base64,eyJ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BQUUsV0FBVyxFQUFFLFdBQVcsQ0FBQyxDQUFBO0FBQzNFLE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FBUyxDQUFDLFFBQVEsRUFBRSxRQUFRLEVBQUUsUUFBUSxDQUFDLENBQUE7QUFDL0QsTUFBTSxDQUFDLE1BQU0sZUFBZSxHQUFTLENBQUMsUUFBUSxFQUFFLFdBQVcsRUFBRSxXQUFXLENBQUMsQ0FBQTtBQUN6RSxNQUFNLENBQUMsTUFBTSxjQUFjLEdBQVMsQ0FBQyxXQUFXLEVBQUUsUUFBUSxFQUFFLFFBQVEsQ0FBQyxDQUFBO0FBQ3JFLE1BQU0sQ0FBQyxNQUFNLGVBQWUsR0FBUyxDQUFDLFlBQVksRUFBRSxZQUFZLEVBQUUsWUFBWSxDQUFDLENBQUE7QUFDL0UsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFTLENBQUMsVUFBVSxFQUFFLFVBQVUsRUFBRSxVQUFVLENBQUMsQ0FBQSJ9

@@ -0,7 +1,10 @@

import { ApiCompare } from "./apiCompare";
export * from "./rules/index";
export * from "./types";
export * from "./constants";
export { apiDiff, compare } from "./compare";
export { apiMerge } from "./merge";
export { apiDiffTree } from "./difftree";
export * from "./utils";
export { ApiCompare } from "./apiCompare";
export { JsonCompare } from "./jsonCompare";
export declare const apiDiff: typeof ApiCompare.apiDiff;
export declare const apiMerge: typeof ApiCompare.apiMerge;
export declare const apiDiffTree: typeof ApiCompare.apiDiffTree;

@@ -0,8 +1,11 @@

import { ApiCompare } from "./apiCompare";
export * from "./rules/index";
export * from "./types";
export * from "./constants";
export { apiDiff, compare } from "./compare";
export { apiMerge } from "./merge";
export { apiDiffTree } from "./difftree";
export * from "./utils";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxlQUFlLENBQUE7QUFDN0IsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxhQUFhLENBQUE7QUFDM0IsT0FBTyxFQUFFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDNUMsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLFNBQVMsQ0FBQTtBQUNsQyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sWUFBWSxDQUFBO0FBQ3hDLGNBQWMsU0FBUyxDQUFBIn0=
export { ApiCompare } from "./apiCompare";
export { JsonCompare } from "./jsonCompare";
export const apiDiff = ApiCompare.apiDiff;
export const apiMerge = ApiCompare.apiMerge;
export const apiDiffTree = ApiCompare.apiDiffTree;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGNBQWMsQ0FBQTtBQUV6QyxjQUFjLGVBQWUsQ0FBQTtBQUM3QixjQUFjLFNBQVMsQ0FBQTtBQUN2QixjQUFjLGFBQWEsQ0FBQTtBQUMzQixjQUFjLFNBQVMsQ0FBQTtBQUN2QixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sY0FBYyxDQUFBO0FBQ3pDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUE7QUFFM0MsTUFBTSxDQUFDLE1BQU0sT0FBTyxHQUFHLFVBQVUsQ0FBQyxPQUFPLENBQUE7QUFDekMsTUFBTSxDQUFDLE1BQU0sUUFBUSxHQUFHLFVBQVUsQ0FBQyxRQUFRLENBQUE7QUFDM0MsTUFBTSxDQUFDLE1BQU0sV0FBVyxHQUFHLFVBQVUsQ0FBQyxXQUFXLENBQUEifQ==
import { breakingIfAfterTrue, matchRule } from "../utils";
import { jsonSchemaRules } from "./jsonschema";
import { breaking, nonBreaking, unclassified, allAnnotation, addNonBreaking, allBreaking, } from "../constants";
const pathArrayRules = (rules) => matchRule(rules, (b, a) => {
const beforePath = b.replace(new RegExp("\{.*?\}", "g"), "*");
const afterPath = a.replace(new RegExp("\{.*?\}", "g"), "*");
const pathArrayRules = (rules) => matchRule(rules, ({ before, after }) => {
const beforePath = String(before.key).replace(new RegExp("\{.*?\}", "g"), "*");
const afterPath = String(after.key).replace(new RegExp("\{.*?\}", "g"), "*");
return beforePath === afterPath;

@@ -168,2 +168,2 @@ });

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BlbmFwaTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcnVsZXMvb3BlbmFwaTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG1CQUFtQixFQUFFLFNBQVMsRUFBRSxNQUFNLFVBQVUsQ0FBQTtBQUN6RCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sY0FBYyxDQUFBO0FBRTlDLE9BQU8sRUFDTCxRQUFRLEVBQUUsV0FBVyxFQUFFLFlBQVksRUFDbkMsYUFBYSxFQUFFLGNBQWMsRUFDN0IsV0FBVyxHQUNaLE1BQU0sY0FBYyxDQUFBO0FBRXJCLE1BQU0sY0FBYyxHQUFHLENBQUMsS0FBWSxFQUFFLEVBQUUsQ0FBQyxTQUFTLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBUyxFQUFFLENBQVMsRUFBRSxFQUFFO0lBQ2pGLE1BQU0sVUFBVSxHQUFHLENBQUMsQ0FBQyxPQUFPLENBQUMsSUFBSSxNQUFNLENBQUMsU0FBUyxFQUFFLEdBQUcsQ0FBQyxFQUFFLEdBQUcsQ0FBQyxDQUFBO0lBQzdELE1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, unclassified, addNonBreaking, breaking, nonBreaking } from "../constants";
import { breakingIfAfterTrue, matchRule, objArray } from "../utils";
import { jsonSchemaRules } from ".";
const childrenArray = (rules) => matchRule(rules, (b, a) => {
const childrenArray = (rules) => matchRule(rules, ({ before: { value: b }, after: { value: a } }) => {
var _a, _b;

@@ -179,2 +179,2 @@ if (a.type !== b.type) {

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZW5vZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcnVsZXMvc2VydmljZW5vZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLGFBQWEsRUFBRSxXQUFXLEVBQUUsZUFBZSxFQUMzQyxZQUFZLEVBQUUsY0FBYyxFQUFFLFFBQVEsRUFBRSxXQUFXLEVBQ3BELE1BQU0sY0FBYyxDQUFBO0FBQ3JCLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE1BQU0sVUFBVSxDQUFBO0FBQ25FLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxHQUFHLENBQUE7QUFHbkMsTUFBTSxhQUFhLEdBQUcsQ0FBQyxLQUFZLEVBQUUsRUFBRSxDQUFDLFNBQVMsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7O0lBQ2hFLElBQUksQ0FBQyxDQUFDLElBQUksS0FBSyxDQUFDLENBQUMsSUFBSSxFQUFFO1FBQ3JCLE9BQU8sS0FBSyxDQUFBO0tBQ2I7SUFDRCxJQUFJLENBQUMsQ0FBQyxJQUFJLEtBQUssT0FBTyxFQUFFO1FBQ3RCLE9BQU8sQ0FBQyxDQUFDLElBQUksS0FBSyxDQUFDLENBQUMsSUFBSSxDQUFBO0tBQ3pCO1NBQU07UUFDTCxNQUFNLFVBQVU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ELE1BQU0sQ0FBQyxNQUFNLGdCQUFnQixHQUFVO0lBQ3JDLElBQUksRUFBRSxhQUFhO0lBQ25CLE9BQU8sRUFBRSxZQUFZO0lBQ3JCLFdBQVcsRUFBRSxhQUFhLENBQUM7UUFDekIsR0FBRyxFQUFFLENBQUMsV0FBVyxFQUFFLFFBQVEsRUFBRSxRQUFRLENBQUM7UUFDdEMsSUFBSSxFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsRUFBRSxFQUFFLENBQUMsSUFBSSxLQUFLLE9BQU8sQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxjQUFjO0tBQ25FLENBQUM7SUFDRixhQUFhLEVBQUU7UUFDYixHQUFHLEVBQUUsQ0FBQyxXQUFXLEVBQUUsV0FBVyxFQUFFLFdBQVcsQ0FBQztRQUM1QyxVQUFVLEVBQUU7WUFDVixHQUFHLEVBQUUsQ0FBQyxXQUFXLEVBQUUsUUFBUSxFQUFFLFFBQVEsQ0FBQztZQUN0QyxJQUFJLEVBQUUsZUFBZSxDQUFDLGNBQWMsQ0FBQztTQUN0QztLQUNGO0NBQ0YsQ0FBQSJ9
export declare type ObjPath = Array<string | number>;
export declare type ActionType = "add" | "remove" | "replace";
export declare type UnclassifiedDiff = {
export declare type ActionType = "add" | "remove" | "replace" | "test" | "rename";
export declare type JsonDiff = {
action: ActionType;

@@ -9,3 +9,3 @@ path: ObjPath;

};
export declare type Diff = UnclassifiedDiff & {
export declare type Diff = JsonDiff & {
type: DiffType;

@@ -20,3 +20,18 @@ };

export declare type RulesRef = (b: any) => Rules;
export declare type MatchFunc = (b: any, a: any) => boolean;
export declare type MatchContext = {
path: ObjPath;
before: {
key: string | number;
value: any;
parent: any;
source: any;
};
after: {
key: string | number;
value: any;
parent: any;
source: any;
};
};
export declare type MatchFunc = (ctx: MatchContext) => boolean;
export declare type Rules = {

@@ -29,7 +44,22 @@ [key: `/${string}`]: Rule | Rules | RulesRef;

export declare type BaseRulesType = "OpenApi3" | "AsyncApi2" | "JsonSchema";
export declare type CompareOptions = {
rules?: Rules | BaseRulesType;
export declare type JsonCompareOptions<T extends JsonDiff = JsonDiff> = {
trimStrings?: boolean;
caseSensitive?: boolean;
strictArrays?: boolean;
matchRules?: {
[path: string]: MatchFunc;
};
metaKey?: string | symbol;
arrayMeta?: boolean;
formatMergedMeta?: (diff: T) => any;
};
export declare type CompareResult<T extends JsonDiff = JsonDiff> = {
diffs: T[];
diff?: T;
diffTree?: any;
value?: any;
parentMeta?: any;
};
export declare type ApiDiffOptions = JsonCompareOptions & {
rules?: Rules | BaseRulesType;
externalRefs?: {

@@ -39,24 +69,10 @@ [key: string]: any;

};
export declare type EnumDiff = {
added: number[];
removed: number[];
changed: {
[index: number]: {
afterIndex: number;
diffs: Diff[];
};
};
unchanged: number[];
};
export declare type MergeOptions<T = MergedKeyMeta> = CompareOptions & {
arrayMeta?: boolean;
formatMeta?: (diff: Diff) => T;
metaKey?: string | symbol;
};
export declare type MergedKeyMeta = {
type: DiffType;
export declare type JsonMergedMeta = {
action: ActionType;
replaced?: any;
};
export declare type MergedArrayMeta<T = MergedKeyMeta> = {
export declare type ApiMergedMeta = JsonMergedMeta & {
type: DiffType;
};
export declare type MergedArrayMeta<T = JsonMergedMeta> = {
array: {

@@ -63,0 +79,0 @@ [key: number]: T | MergedArrayMeta;

export {};
// export type MergeResult = [any, (MergedKeyMeta | MergedArrayMeta)?]
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQTBFQSxzRUFBc0UifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
import { Rule, MatchFunc, Rules, DiffType, ObjPath } from "./types";
import { DiffAction } from "./constants";
export declare const breakingIf: (v: boolean) => DiffType;
export declare const breakingIfAfterTrue: (_: any, a: any) => DiffType;
export declare const added: (path: ObjPath, after: any) => {
path: ObjPath;
after: any;
action: DiffAction;
};
export declare const removed: (path: ObjPath, before: any) => {
path: ObjPath;
before: any;
action: DiffAction;
};
export declare const replaced: (path: ObjPath, before: any, after: any) => {
path: ObjPath;
before: any;
after: any;
action: DiffAction;
};
export declare const renamed: (path: ObjPath, before: any, after: any) => {
path: ObjPath;
before: any;
after: any;
action: DiffAction;
};
export declare const unchanged: (path: ObjPath, before: any) => {
path: ObjPath;
before: any;
action: DiffAction;
};
export declare const typeOf: (value: any) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "array" | "null";

@@ -5,0 +33,0 @@ export declare const parsePath: (path: string) => string[];

@@ -1,4 +0,9 @@

import { breaking, nonBreaking } from "./constants";
import { breaking, nonBreaking, DiffAction } from "./constants";
export const breakingIf = (v) => (v ? breaking : nonBreaking);
export const breakingIfAfterTrue = (_, a) => breakingIf(a);
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 typeOf = (value) => {

@@ -76,4 +81,4 @@ if (Array.isArray(value)) {

export const objArray = (key, rules) => {
return matchRule(rules, (b, a) => a[key] === b[key]);
return matchRule(rules, ({ before, after }) => after.value[key] === before.value[key]);
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMudHMiXSwibmFtZXMiO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yxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUE7aUJBQzVEO2FBQ0Y7U0FDRjtLQUNGO0lBQ0QsT0FBTyxDQUFDLEdBQUcsSUFBSSxDQUFDLENBQUE7QUFDbEIsQ0FBQyxDQUFBO0FBRUQsTUFBTSxDQUFDLE1BQU0sU0FBUyxHQUFHLENBQUMsS0FBWSxFQUFFLFNBQW9CLEVBQVMsRUFBRTtJQUNyRSxLQUFLLENBQUMsR0FBRyxDQUFDLEdBQUcsU0FBUyxDQUFBO0lBQ3RCLE9BQU8sS0FBSyxDQUFBO0FBQ2QsQ0FBQyxDQUFBO0FBRUQsTUFBTSxDQUFDLE1BQU0sUUFBUSxHQUFHLENBQUMsR0FBVyxFQUFFLEtBQVksRUFBUyxFQUFFO0lBQzNELE9BQU8sU0FBUyxDQUFDLEtBQUssRUFBRSxDQUFDLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxFQUFFLEVBQUUsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxLQUFLLE1BQU0sQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQTtBQUN4RixDQUFDLENBQUEifQ==
{
"name": "api-smart-diff",
"version": "0.2.21",
"version": "0.3.0",
"description": "Generate the diff between two API specifications (OpenAPI, AsyncAPI, JsonSchema)",

@@ -5,0 +5,0 @@ "module": "dist/esm/index.js",

@@ -43,3 +43,3 @@ # api-smart-diff

// {
// action: "add" | "remove" | "replace",
// action: "add" | "remove" | "replace" | "rename",
// after: 'value in newSpec',

@@ -111,3 +111,3 @@ // before: 'value in oldSpec',

type Diff = {
action: "add" | "remove" | "replace"
action: "add" | "remove" | "replace" | "rename"
path: Array<string | number>

@@ -138,3 +138,3 @@ before?: any

type Diff = {
action: "add" | "remove" | "replace"
action: "add" | "remove" | "replace" | "rename"
before?: any

@@ -148,6 +148,4 @@ after?: any

```ts
const diffs = apiDiff(before, after, { rules: "OpenApi3" })
if (diffs.length) {
// do something with the changes
}
const diff = apiDiffTree(before, after, { rules: "OpenApi3" })
// do something with the changes object
```

@@ -164,3 +162,3 @@

arrayMeta?: boolean
formatMeta?: (diff: Diff) => T
formatMergedMeta?: (diff: T) => any
metaKey?: string | symbol

@@ -173,3 +171,3 @@ }

- `metaKey` - key for diff metadata, default `$diff`
- `formatMeta` - custom formatting function for meta
- `formatMergedMeta` - custom formatting function for meta

@@ -223,3 +221,3 @@ #### *Result*

DiffType | (before, after) => DiffType, // remove
DiffType | (before, after) => DiffType // replace
DiffType | (before, after) => DiffType // replace (rename)
]

@@ -226,0 +224,0 @@ ```

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