api-smart-diff
Advanced tools
Comparing version 0.2.7 to 0.2.8
/*! api-smart-diff@0.2.7 */ | ||
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,t){"use strict";t.r(e),t.d(e,"messageTraitsRules",function(){return R}),t.d(e,"messageRules",function(){return M}),t.d(e,"asyncApi2Rules",function(){return k}),t.d(e,"openapi3Rules",function(){return C}),t.d(e,"jsonSchemaRules",function(){return x}),t.d(e,"DIFF_META_KEY",function(){return n}),t.d(e,"DiffAction",function(){return p}),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 c}),t.d(e,"allBreaking",function(){return f}),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 m}),t.d(e,"apiDiff",function(){return U}),t.d(e,"apiMerge",function(){return G}),t.d(e,"findExternalRefs",function(){return g});const n="$diff";var p,r;(t=p=p||{}).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,c=[s,s,s],f=[a,a,a],u=[a,s,s],l=[s,a,a],d=[i,i,i],m=[o,o,o],y=e=>e?a:s,h=(e,t)=>y(t),b=e=>Array.isArray(e)?"array":null==typeof e?"null":typeof e,g=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,...g(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,...g(e[a])]))}return[...t]},v=[a,s,(e,t)=>y(t<e)],O=[a,s,(e,t)=>y(e<t)],j=[h,s,h],w=[h,s,h],T=[a,s,(e,t)=>!(e%t)?s:a],x=(e=d)=>({"/":e,"/title":m,"/multipleOf":T,"/maximum":v,"/exclusiveMaximum":j,"/minimum":O,"/exclusiveMinimum":j,"/maxLength":v,"/minLength":O,"/pattern":[a,s,a],"/maxItems":v,"/minItems":O,"/uniqueItems":w,"/maxProperties":v,"/minProperties":O,"/required":{"/":u,"/*":[a,s,a]},"/enum":{"/":[a,s,a],"/*":[s,a,a]},"/type":[a,s,a],"/not":{"/":[a,s,a],"/*":()=>x(f)},"/allOf":{"/":[a,s,a],"/*":()=>x(f)},"/oneOf":{"/":[a,s,a],"/*":()=>x(l)},"/anyOf":{"/":[a,s,a],"/*":()=>x(l)},"/items":()=>x(l),"/properties":{"/":[a,s,a],"/*":()=>x(l)},"/additionalProperties":()=>x([a,a,h]),"/description":m,"/format":[a,s,a],"/default":[s,a,a],"/nullable":w,"/discriminator":{"/":d,"/propertyName":d,"/mapping":d},"/readOnly":w,"/writeOnly":w,"/example":m,"/externalDocs":m,"/deprecated":w,"/xml":{"/":d,"/name":d,"/namespace":d,"/prefix":d,"/attribute":d,"/wrapped":d}});var t={"/":l,"/location":l,"/description":m},e={"/summary":m,"/tags":m,"/externalDocs":m,"/bindings":d},S=Object.assign({"/":l,"/*":l,"/operationId":l,"/description":m},e);const R=Object.assign({"/":l,"/*":l,"/headers":d,"/correlationId":t,"/schemaFormat":f,"/contentType":l,"/name":c,"/title":c,"/examples":m},e),M=Object.assign({"/":f,"/headers":d,"/correlationId":t,"/schemaFormat":f,"/contentType":l,"/name":c,"/title":c,"/description":c,"/examples":m,"/traits":R,"/payload":x(f)},e);t=Object.assign({"/":l,"/operationId":l,"/description":m,"/traits":S,"/message":M},e),S={"/":l,"/version":l,"/termsOfService":l,"/license":{"/":l,"/name":f,"/url":u},"/title":m,"/description":m,"/contact":{"/":m,"/name":m,"/url":m,"/email":m}},e={"/":l,"/*":{"/":l,"/url":l,"/description":m,"/protocol":f,"/protocolVersion":f,"/variables":{"/":l,"/*":{"/":l,"/enum":{"/":l,"/*":l},"/default":f,"/description":m,"/examples":m}},"/security":{"/":f,"/*":f},"/bindings":d}},t={"/":l,"/description":c,"/bindings":d,"/subscribe":t,"/publish":t,"/parameters":{"/":f,"/*":{"/":l,"/description":c,"/schema":x(f),"/location":f}}};const k={"/asyncapi":l,"/id":m,"/defaultContentType":f,"/info":S,"/servers":e,"/channels":{"/":l,"/*":t},"/components":c,"/tags":m,"/externalDocs":m};var S={"/":[s,a,a],"/*":{"/":[s,a,a],"/url":[s,a,a],"/description":m,"/variables":{"/":[s,a,a],"/*":{"/":[s,a,a],"/enum":{"/":[s,a,a],"/*":[s,a,a]},"/default":[a,a,a],"/description":m}}}},e={"/":[s,a,a],"/*":{"/":[s,a,a],"/name":[s,a,a],"/in":[s,a,a],"/description":m,"/required":[a,s,h],"/deprecated":[a,s,h]}},t={"/":[s,a,a],"/*":{"/":[s,a,a],"/description":m,"/required":[a,s,h],"/deprecated":[a,s,h]}},A={"/":[s,s,s],"/*":{"/contentType":[s,a,a],"/headers":t,"/style":[s,a,a],"/explode":[s,a,a],"/allowReserved":[s,a,a]}},A={"/":[s,a,a],"/*":{"/":[s,a,a],"/schema":x(f),"/example":m,"/examples":m,"/encoding":A}},P={"/":[s,a,a],"/*":{"/":[s,a,a],"/description":m,"/content":A,"/required":[a,s,(e,t)=>t?a:s]}},A={"/":[s,a,a],"/*":{"/":[s,a,a],"/description":m,"/headers":t,"/content":A}},D={"/":[a,s,i],"/*":[a,s,i]},q={"/":[s,a,a],"/tags":m,"/summary":m,"/description":m,"/externalDocs":m,"/operationId":[s,a,a],"/parameters":e,"/requestBody":P,"/responses":A,"/deprecated":[a,s,h],"/security":D,"/servers":S};const C={"/openapi":[s,a,a],"/info":{"/":[s,a,a],"/title":m,"/description":m,"/termsOfService":m,"/contact":m,"/licence":{"/":[s,a,a],"/name":[a,a,a],"/url":[a,s,s]},"/version":m},"/servers":S,"/paths":{"/":[s,a,a],"/*":{"/":[s,a,a],"/summary":m,"/description":m,"/*":q,"/servers":S,"/parameters":e}},"/components":{"/":[s,s,s],"/schemas":{"/":[s,a,a],"/*":x(l)},"/responses":{"/":[s,a,a],"/*":A},"/parameters":{"/":[s,a,a],"/*":e},"/examples":m,"/requestBodies":{"/":[s,a,a],"/*":P},"/headers":t,"/securitySchemes":{"/":[a,s,a],"/*":{"/":[a,s,a],"/type":[a,s,a],"/description":m,"/name":[a,s,a],"/in":[a,s,a],"/scheme":[a,s,a],"/bearerFormat":m,"/flows":[a,s,a],"/openIdConnectUrl":m}}},"/security":D,"/tags":m,"/externalDocs":m}; | ||
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(T,e,t){"use strict";t.r(e),t.d(e,"messageTraitsRules",function(){return k}),t.d(e,"messageRules",function(){return R}),t.d(e,"asyncApi2Rules",function(){return M}),t.d(e,"openapi3Rules",function(){return I}),t.d(e,"jsonSchemaRules",function(){return j}),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 o}),t.d(e,"annotation",function(){return i}),t.d(e,"allNonBreaking",function(){return c}),t.d(e,"allBreaking",function(){return f}),t.d(e,"onlyAddBreaking",function(){return l}),t.d(e,"addNonBreaking",function(){return u}),t.d(e,"allUnclassified",function(){return d}),t.d(e,"allAnnotation",function(){return p}),t.d(e,"apiDiff",function(){return U}),t.d(e,"apiMerge",function(){return G}),t.d(e,"findExternalRefs",function(){return g});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:o,annotation:i}=r,c=[s,s,s],f=[a,a,a],l=[a,s,s],u=[s,a,a],d=[o,o,o],p=[i,i,i],h=e=>e?a:s,m=(e,t)=>h(t),b=e=>Array.isArray(e)?"array":null==typeof e?"null":typeof e,g=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,...g(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,...g(e[a])]))}return[...t]},v=[a,s,(e,t)=>h(t<e)],O=[a,s,(e,t)=>h(e<t)],x=[m,s,m],w=[m,s,m],q=[a,s,(e,t)=>!(e%t)?s:a],j=(e=d)=>({"/":e,"/title":p,"/multipleOf":q,"/maximum":v,"/exclusiveMaximum":x,"/minimum":O,"/exclusiveMinimum":x,"/maxLength":v,"/minLength":O,"/pattern":[a,s,a],"/maxItems":v,"/minItems":O,"/uniqueItems":w,"/maxProperties":v,"/minProperties":O,"/required":{"/":l,"/*":[a,s,a]},"/enum":{"/":[a,s,a],"/*":[s,a,a]},"/type":[a,s,a],"/not":{"/":[a,s,a],"/*":()=>j(f)},"/allOf":{"/":[a,s,a],"/*":()=>j(f)},"/oneOf":{"/":[a,s,a],"/*":()=>j(u)},"/anyOf":{"/":[a,s,a],"/*":()=>j(u)},"/items":()=>j(u),"/properties":{"/":[a,s,a],"/*":()=>j(u)},"/additionalProperties":()=>j([a,a,m]),"/description":p,"/format":[a,s,a],"/default":[s,a,a],"/nullable":w,"/discriminator":{"/":d,"/propertyName":d,"/mapping":d},"/readOnly":w,"/writeOnly":w,"/example":p,"/examples":p,"/externalDocs":p,"/deprecated":w,"/xml":{"/":d,"/name":d,"/namespace":d,"/prefix":d,"/attribute":d,"/wrapped":d}});var t={"/":u,"/location":u,"/description":p},e={"/summary":p,"/tags":p,"/externalDocs":p,"/bindings":d},S=Object.assign({"/":u,"/*":u,"/operationId":u,"/description":p},e);const k=Object.assign({"/":u,"/*":u,"/headers":d,"/correlationId":t,"/schemaFormat":f,"/contentType":u,"/name":c,"/title":c,"/examples":p},e),R=Object.assign({"/":f,"/headers":d,"/correlationId":t,"/schemaFormat":f,"/contentType":u,"/name":c,"/title":c,"/description":c,"/examples":p,"/traits":k,"/payload":j(f)},e);t=Object.assign({"/":u,"/operationId":u,"/description":p,"/traits":S,"/message":R},e),S={"/":u,"/version":u,"/termsOfService":u,"/license":{"/":u,"/name":f,"/url":l},"/title":p,"/description":p,"/contact":{"/":p,"/name":p,"/url":p,"/email":p}},e={"/":u,"/*":{"/":u,"/url":u,"/description":p,"/protocol":f,"/protocolVersion":f,"/variables":{"/":u,"/*":{"/":u,"/enum":{"/":u,"/*":u},"/default":f,"/description":p,"/examples":p}},"/security":{"/":f,"/*":f},"/bindings":d}},t={"/":u,"/description":c,"/bindings":d,"/subscribe":t,"/publish":t,"/parameters":{"/":f,"/*":{"/":u,"/description":c,"/schema":j(f),"/location":f}}};const M={"/asyncapi":u,"/id":p,"/defaultContentType":f,"/info":S,"/servers":e,"/channels":{"/":u,"/*":t},"/components":c,"/tags":p,"/externalDocs":p};var S={"/":[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,m],"/deprecated":[a,s,m]}},t={"/":[s,a,a],"/*":{"/":[s,a,a],"/description":p,"/required":[a,s,m],"/deprecated":[a,s,m]}},A={"/":[s,s,s],"/*":{"/contentType":[s,a,a],"/headers":t,"/style":[s,a,a],"/explode":[s,a,a],"/allowReserved":[s,a,a]}},A={"/":[s,a,a],"/*":{"/":[s,a,a],"/schema":j(f),"/example":p,"/examples":p,"/encoding":A}},P={"/":[s,a,a],"/*":{"/":[s,a,a],"/description":p,"/content":A,"/required":[a,s,(e,t)=>t?a:s]}},A={"/":[s,a,a],"/*":{"/":[s,a,a],"/description":p,"/headers":t,"/content":A}},C={"/":[a,s,o],"/*":[a,s,o]},F={"/":[s,a,a],"/tags":p,"/summary":p,"/description":p,"/externalDocs":p,"/operationId":[s,a,a],"/parameters":e,"/requestBody":P,"/responses":A,"/deprecated":[a,s,m],"/security":C,"/servers":S};const I={"/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":S,"/paths":{"/":[s,a,a],"/*":{"/":[s,a,a],"/summary":p,"/description":p,"/*":F,"/servers":S,"/parameters":e}},"/components":{"/":[s,s,s],"/schemas":{"/":[s,a,a],"/*":j(u)},"/responses":{"/":[s,a,a],"/*":A},"/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":C,"/tags":p,"/externalDocs":p}; | ||
/*! ***************************************************************************** | ||
@@ -16,2 +16,2 @@ Copyright (c) Microsoft Corporation. | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */const E=(e,t,r={})=>{let n=e;r=new Map(Object.entries(r));for(const a of(e=>{var[,...e]=e.split("/").map(e=>e.replace(new RegExp("~1","g"),"/"));return e})(t)){if(void 0===(n="array"===b(n)?n[+a]:n[a]))break;n=$(n,e,new Set,r)}return n},$=(e,t,r,n)=>{if(e.hasOwnProperty("$ref")){const i=e["$ref"],o=function(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}(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,s,n)),r.add(i),n.set(i,e)}return e},K=(e,t)=>{let r=e;for(var n of[...t,""]){if(r.hasOwnProperty("/"+n)&&"number"!=typeof n||(n="*"),!r.hasOwnProperty("/"+n))return d;{const a=r["/"+n];if(Array.isArray(a))return a;r="function"==typeof a?a():a}}return d},B=(e,t={})=>{const r=e;const n=K(t,e.path)[["add","remove","replace"].indexOf(e.action)];return r.type="function"==typeof n?n(e.before,e.after):n,r};class L{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.findFirstDiff=!1,this.rules="string"==typeof r.rules?this.getBaseRules(r.rules):r.rules,this.trimStrings=r.trimStrings,this.caseSensitive=r.caseSensitive,this.strictArrays=r.strictArrays,this.circularRef=r.circularRef||!1,this.arrayMeta=r.arrayMeta||!1;var n=r.externalRefs||{};for(const a of Object.keys(n))this.beforeCache.set(a,n[a]),this.afterCache.set(a,n[a])}getBaseRules(e){switch(e){case"OpenApi3":return C;case"AsyncApi2":return k;case"JsonSchema":return x()}}}class N extends L{constructor(e,t,r){super(e,t,r),this._formatMeta=e=>Object.assign({type:e.type,action:e.action},e.action===p.replace?{replaced:e.before}:{}),this.formatMeta=r.formatMeta||(e=>this._formatMeta(e)),this.metaKey=r.metaKey||n}}const U=(e,t,r)=>I(e,t,new L(e,t,r)),I=(e,t,r,n=[])=>{var a;if(b(e)!==b(t))return a={path:n,before:e,after:t,action:p.replace},[B(a,r.rules)];switch(b(e)){case"object":return V(e,t,r,n);case"array":return z(e,t,r,n);default:"string"===b(e)&&(e=J(e,r),t=J(t,r));var s={path:n,before:e,after:t,action:p.replace};return e!==t?[B(s,r.rules)]:[]}},J=(e,t)=>(e=t.trimStrings?e.trim():e,e=t.caseSensitive?e:e.toLowerCase()),V=(e,t,r,n)=>{const a=[];var s,i="#"+("/"+n.map(e=>String(e).replace(new RegExp("/","g"),"~1")).join("/"));r.beforeRefs.add(i),r.afterRefs.add(i);const o=$(e,r.before,r.beforeRefs,r.beforeCache),c=$(t,r.after,r.afterRefs,r.afterCache);for(const f of new Set([...Object.keys(o),...Object.keys(c)]))if("symbol"!=typeof f)if(o.hasOwnProperty(f)?c.hasOwnProperty(f)?a.push(...I(o[f],c[f],r,[...n,f])):(s={path:[...n,f],before:o[f],action:p.remove},a.push(B(s,r.rules))):(s={path:[...n,f],after:c[f],action:p.add},a.push(B(s,r.rules))),r.findFirstDiff&&a.length)break;return e.$ref&&r.beforeRefs.delete(e.$ref),t.$ref&&r.afterRefs.delete(t.$ref),r.beforeRefs.delete(i),r.afterRefs.delete(i),a},Y=(t,r,n)=>{for(let e=0;e<r.length;e++){n.findFirstDiff=!0;var a=I(t,r[e],n);if(n.findFirstDiff=!1,!a.length)return e}return-1},z=(t,r,n,a)=>{const s=[],i=[...r];for(let e=0;e<t.length;e++){var o,c;if(n.strictArrays?e>=r.length?(o={path:[...a,e],before:t[e],action:p.remove},s.push(B(o,n.rules))):s.push(...I(t[e],r[e],n,[...a,e])):0<=(o=Y(t[e],i,n))?i.splice(o,1):(c={path:[...a,e],before:t[e],action:p.remove},s.push(B(c,n.rules))),n.findFirstDiff&&s.length)break}n.strictArrays&&i.splice(0,t.length);for(let e=0;e<i.length;e++){var f={path:[...a,t.length+e],after:i[e],action:p.add};s.push(B(f,n.rules))}return s},G=(e,t,r)=>{var[e]=F(e,t,new N(e,t,r),[]);return e},F=(e,t,r,n=[])=>{var a,s;if(b(e)!==b(t))return a={path:n,before:e,after:t,action:p.replace},[t,r.formatMeta(B(a,r.rules))];switch(b(e)){case"object":return Q(e,t,r,n);case"array":return W(e,t,r,n);default:if("string"==typeof e&&(e=H(e,r),t=H(t,r)),e!==t)return s={path:n,before:e,after:t,action:p.replace},[t,r.formatMeta(B(s,r.rules))]}return[t]},H=(e,t)=>(e=t.trimStrings?e.trim():e,e=t.caseSensitive?e:e.toLowerCase()),Q=(e,t,r,n)=>{const a={},s={},i=$(e,r.before,r.beforeRefs,r.beforeCache),o=$(t,r.after,r.afterRefs,r.afterCache);var c,f;for(const u of new Set([...Object.keys(i),...Object.keys(o)]))"symbol"!=typeof u&&(i.hasOwnProperty(u)?o.hasOwnProperty(u)?([c,f]=F(i[u],o[u],r,[...n,u]),a[u]=c,f&&(s[u]=f)):(c={path:[...n,u],before:i[u],action:p.remove},a[u]=i[u],s[u]=r.formatMeta(B(c,r.rules))):(f={path:[...n,u],after:o[u],action:p.add},a[u]=o[u],s[u]=r.formatMeta(B(f,r.rules))));return e.$ref&&r.beforeRefs.delete(e.$ref),t.$ref&&r.afterRefs.delete(t.$ref),Object.keys(s).length&&(a[r.metaKey]=s),[a]},W=(r,t,n,a)=>{const s={},i=[],o=[...t];for(let e=0;e<r.length;e++){var c,f,u;n.strictArrays?e>=t.length?(c={path:[...a,e],before:r[e],action:p.remove},i[e]=r[e],s[e]=n.formatMeta(B(c,n.rules))):([c,f]=F(r[e],t[e],n,[...a,e]),i[e]=c,f&&(s[e]=f)):(f=Y(r[e],o,n),i[e]=r[e],0<=f?o.splice(f,1):(u={path:[...a,e],before:r[e],action:p.remove},s[e]=n.formatMeta(B(u,n.rules))))}n.strictArrays&&o.splice(0,r.length);for(let e=r.length,t=0;e<r.length+o.length;e++,t++){i[e]=o[t];var l={path:[...a,e],after:o[t],action:p.add};s[e]=n.formatMeta(B(l,n.rules))}return n.arrayMeta&&Object.keys(s).length&&(i[n.metaKey]=s),n.arrayMeta||!Object.keys(i).length?[i]:[i,{array:s}]}}]); | ||
***************************************************************************** */const E=(e,t,r={})=>{let n=e;r=new Map(Object.entries(r));for(const a of(e=>{var[,...e]=e.split("/").map(e=>e.replace(new RegExp("~1","g"),"/"));return e})(t)){if(void 0===(n="array"===b(n)?n[+a]:n[a]))break;n=$(n,e,new Set,r)}return n},$=(e,t,r,n)=>{if(e.hasOwnProperty("$ref")){const o=e["$ref"],i=function(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}(e,["$ref"]);if(r.has(o))return e;var[a,s]=o.split("#");if(a){if(!n.has(a))return e;t=n.get(a)}e=Object.assign(Object.assign({},i),E(t,s,n)),r.add(o),n.set(o,e)}return e},K=(e,t)=>{let r=e;for(var n of[...t,""]){if(r.hasOwnProperty("/"+n)&&"number"!=typeof n||(n="*"),!r.hasOwnProperty("/"+n))return d;{const a=r["/"+n];if(Array.isArray(a))return a;r="function"==typeof a?a():a}}return d},B=(e,t={})=>{const r=e;const n=K(t,e.path)[["add","remove","replace"].indexOf(e.action)];return r.type="function"==typeof n?n(e.before,e.after):n,r};class L{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.findFirstDiff=!1,this.rules="string"==typeof r.rules?this.getBaseRules(r.rules):r.rules,this.trimStrings=r.trimStrings,this.caseSensitive=r.caseSensitive,this.strictArrays=r.strictArrays,this.circularRef=r.circularRef||!1,this.arrayMeta=r.arrayMeta||!1;var n=r.externalRefs||{};for(const a of Object.keys(n))this.beforeCache.set(a,n[a]),this.afterCache.set(a,n[a])}getBaseRules(e){switch(e){case"OpenApi3":return I;case"AsyncApi2":return M;case"JsonSchema":return j()}}}class N extends L{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}}const U=(e,t,r)=>D(e,t,new L(e,t,r)),D=(e,t,r,n=[])=>{var a;if(b(e)!==b(t))return a={path:n,before:e,after:t,action:y.replace},[B(a,r.rules)];switch(b(e)){case"object":return V(e,t,r,n);case"array":return Y(e,t,r,n);default:"string"===b(e)&&(e=J(e,r),t=J(t,r));var s={path:n,before:e,after:t,action:y.replace};return e!==t?[B(s,r.rules)]:[]}},J=(e,t)=>(e=t.trimStrings?e.trim():e,e=t.caseSensitive?e:e.toLowerCase()),V=(e,t,r,n)=>{const a=[];var s,o="#"+("/"+n.map(e=>String(e).replace(new RegExp("/","g"),"~1")).join("/"));r.beforeRefs.add(o),r.afterRefs.add(o);const i=$(e,r.before,r.beforeRefs,r.beforeCache),c=$(t,r.after,r.afterRefs,r.afterCache);for(const f of new Set([...Object.keys(i),...Object.keys(c)]))if("symbol"!=typeof f)if(i.hasOwnProperty(f)?c.hasOwnProperty(f)?a.push(...D(i[f],c[f],r,[...n,f])):(s={path:[...n,f],before:i[f],action:y.remove},a.push(B(s,r.rules))):(s={path:[...n,f],after:c[f],action:y.add},a.push(B(s,r.rules))),r.findFirstDiff&&a.length)break;return e.$ref&&r.beforeRefs.delete(e.$ref),t.$ref&&r.afterRefs.delete(t.$ref),r.beforeRefs.delete(o),r.afterRefs.delete(o),a};const Y=(t,r,n,a)=>{const s=[],o=[...r];if(n.strictArrays)for(let e=0;e<t.length;e++){var i;e>=r.length?(i={path:[...a,e],before:t[e],action:y.remove},s.push(B(i,n.rules))):s.push(...D(t[e],r[e],n,[...a,e]))}else{var e,c,f,l=z(t,r,n,a);for(e of l.added){var u={path:[...a,e],after:r[e],action:y.add};s.push(B(u,n.rules))}for(c of l.removed){var d={path:[...a,c],before:t[c],action:y.remove};s.push(B(d,n.rules))}for(f of Object.keys(l.changed))s.push(...l.changed[+f].diffs)}if(n.strictArrays){o.splice(0,t.length);for(let e=0;e<o.length;e++){var p={path:[...a,t.length+e],after:o[e],action:y.add};s.push(B(p,n.rules))}}return s},z=(n,a,s,o)=>{const i={added:[],removed:[],changed:{},unchanged:[]},e=[],c=[],f=new Set,l=new Set;for(let r=0;r<n.length;r++){let t=[];for(let e=0;e<a.length;e++)if(!f.has(e)){var u=D(n[r],a[e],s,[...o,r]);if(!u.length){f.add(e),t=e;break}t.push(u)}"number"==typeof t&&l.add(r),c.push(t)}for(let r=0;r<n.length;r++)if(l.has(r))e[r]=[],i.unchanged.push(r);else{const t=[...Array(a.length).keys()];var d=t.sort((e,t)=>{return((null==(e=c[r][e])?void 0:e.length)||0)-((null==(e=c[r][t])?void 0:e.length)||0)});for(let e=0;e<a.length;e++){let t=d[e];if(!f.has(t)){for(let e=0;e<n.length;e++)if(!l.has(e)&&c[e][t]<c[r][t]){t=-1;break}if(0<=t){i.changed[r]={afterIndex:t,diffs:c[r][t]},l.add(r),f.add(t);break}}}l.has(r)||i.removed.push(r)}for(let e=0;e<a.length;e++)f.has(e)||i.added.push(e);return i},G=(e,t,r)=>{var[e]=_(e,t,new N(e,t,r),[]);return e},_=(e,t,r,n=[])=>{var a,s;if(b(e)!==b(t))return a={path:n,before:e,after:t,action:y.replace},[t,r.formatMeta(B(a,r.rules))];switch(b(e)){case"object":return Q(e,t,r,n);case"array":return W(e,t,r,n);default:if("string"==typeof e&&(e=H(e,r),t=H(t,r)),e!==t)return s={path:n,before:e,after:t,action:y.replace},[t,r.formatMeta(B(s,r.rules))]}return[t]},H=(e,t)=>(e=t.trimStrings?e.trim():e,e=t.caseSensitive?e:e.toLowerCase()),Q=(e,t,r,n)=>{const a={},s={},o=$(e,r.before,r.beforeRefs,r.beforeCache),i=$(t,r.after,r.afterRefs,r.afterCache);var c,f;for(const l of new Set([...Object.keys(o),...Object.keys(i)]))"symbol"!=typeof l&&(o.hasOwnProperty(l)?i.hasOwnProperty(l)?([c,f]=_(o[l],i[l],r,[...n,l]),a[l]=c,f&&(s[l]=f)):(c={path:[...n,l],before:o[l],action:y.remove},a[l]=o[l],s[l]=r.formatMeta(B(c,r.rules))):(f={path:[...n,l],after:i[l],action:y.add},a[l]=i[l],s[l]=r.formatMeta(B(f,r.rules))));return e.$ref&&r.beforeRefs.delete(e.$ref),t.$ref&&r.afterRefs.delete(t.$ref),Object.keys(s).length&&(a[r.metaKey]=s),[a]},W=(r,t,n,a)=>{const s={},o=[],i=[...t];if(n.strictArrays)for(let e=0;e<r.length;e++){var c,f;e>=t.length?(c={path:[...a,e],before:r[e],action:y.remove},o[e]=r[e],s[e]=n.formatMeta(B(c,n.rules))):([c,f]=_(r[e],t[e],n,[...a,e]),o[e]=c,f&&(s[e]=f))}else{const h=z(r,t,n,a);for(let e=0;e<r.length;e++){var l,u,d;o[e]=r[e],h.unchanged.includes(e)||(h.removed.includes(e)?(l={path:[...a,e],before:r[e],action:y.remove},s[e]=n.formatMeta(B(l,n.rules))):h.changed[e]&&(l=h.changed[e]["afterIndex"],[u,d]=_(r[e],t[l],n,[...a,e]),o[e]=u,d&&(s[e]=d)))}for(const m of h.added){o.push(t[m]);var e={path:[...a,m],after:t[m],action:y.add};s[m]=n.formatMeta(B(e,n.rules))}}if(n.strictArrays){i.splice(0,r.length);for(let e=r.length,t=0;e<r.length+i.length;e++,t++){o[e]=i[t];var p={path:[...a,e],after:i[t],action:y.add};s[e]=n.formatMeta(B(p,n.rules))}}return n.arrayMeta&&Object.keys(s).length&&(o[n.metaKey]=s),n.arrayMeta||!Object.keys(s).length?[o]:[o,{array:s}]}}]); |
@@ -21,3 +21,3 @@ "use strict"; | ||
if (value.hasOwnProperty("$ref")) { | ||
const { $ref } = value, rest = (0, tslib_1.__rest)(value, ["$ref"]); | ||
const { $ref } = value, rest = tslib_1.__rest(value, ["$ref"]); | ||
if (refs.has($ref)) { | ||
@@ -42,2 +42,2 @@ // TODO: return { ...refObject, ...rest } if circularRefs === true | ||
exports.dereference = dereference; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVyZWZlcmVuY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGVyZWZlcmVuY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLG1DQUEyQztBQUVwQyxNQUFNLGVBQWUsR0FBRyxDQUFDLEdBQVEsRUFBRSxJQUFZLEVBQUUsUUFBYSxFQUFFLEVBQUUsRUFBRTtJQU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QUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxRQUFRLENBQUMsRUFBRTtnQkFDeEIsT0FBTyxLQUFLLENBQUE7YUFDYjtZQUNELE1BQU0sR0FBRyxLQUFLLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxDQUFBO1NBQzdCO1FBRUQsS0FBSyxtQ0FBUSxJQUFJLEdBQUssSUFBQSx1QkFBZSxFQUFDLE1BQU0sRUFBRSxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUUsQ0FBQTtRQUM1RCxJQUFJLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFBO1FBQ2QsS0FBSyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUE7S0FDdkI7SUFDRCxPQUFPLEtBQUssQ0FBQTtBQUNkLENBQUMsQ0FBQTtBQXRCWSxRQUFBLFdBQVcsZUFzQnZCIn0= |
@@ -1,2 +0,2 @@ | ||
import { DiffPath, DiffOptions, Diff } from "./types"; | ||
import { DiffPath, DiffOptions, Diff, EnumDiff } from "./types"; | ||
import { DiffContext } from "./context"; | ||
@@ -6,1 +6,2 @@ export declare const apiDiff: (before: any, after: any, options: DiffOptions) => Diff[]; | ||
export declare const findEqualItemIndex: (item: any, array: any[], ctx: DiffContext) => number; | ||
export declare const enumDiff: (before: any[], after: any[], ctx: DiffContext, path: DiffPath) => EnumDiff; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.findEqualItemIndex = exports.findDiff = exports.apiDiff = void 0; | ||
exports.enumDiff = exports.findEqualItemIndex = exports.findDiff = exports.apiDiff = void 0; | ||
const dereference_1 = require("./dereference"); | ||
@@ -91,4 +91,4 @@ const classifier_1 = require("./classifier"); | ||
const _after = [...after]; | ||
for (let i = 0; i < before.length; i++) { | ||
if (ctx.strictArrays) { | ||
if (ctx.strictArrays) { | ||
for (let i = 0; i < before.length; i++) { | ||
if (i >= after.length) { | ||
@@ -102,25 +102,104 @@ const diff = { path: [...path, i], before: before[i], action: constants_1.DiffAction.remove }; | ||
} | ||
else { | ||
const index = (0, exports.findEqualItemIndex)(before[i], _after, ctx); | ||
if (index >= 0) { | ||
_after.splice(index, 1); | ||
} | ||
else { | ||
const diff = { path: [...path, i], before: before[i], action: constants_1.DiffAction.remove }; | ||
diffs.push((0, classifier_1.classifyDiff)(diff, ctx.rules)); | ||
} | ||
} | ||
else { | ||
const itemsDiff = (0, exports.enumDiff)(before, after, ctx, path); | ||
for (let addedIndex of itemsDiff.added) { | ||
const diff = { path: [...path, addedIndex], after: after[addedIndex], action: constants_1.DiffAction.add }; | ||
diffs.push((0, classifier_1.classifyDiff)(diff, ctx.rules)); | ||
} | ||
if (ctx.findFirstDiff && diffs.length) { | ||
break; | ||
for (let removedIndex of itemsDiff.removed) { | ||
const diff = { path: [...path, removedIndex], before: before[removedIndex], action: constants_1.DiffAction.remove }; | ||
diffs.push((0, classifier_1.classifyDiff)(diff, ctx.rules)); | ||
} | ||
for (let key of Object.keys(itemsDiff.changed)) { | ||
diffs.push(...itemsDiff.changed[+key].diffs); | ||
} | ||
} | ||
if (ctx.strictArrays) { | ||
_after.splice(0, before.length); | ||
for (let i = 0; i < _after.length; i++) { | ||
const diff = { path: [...path, before.length + i], after: _after[i], action: constants_1.DiffAction.add }; | ||
diffs.push((0, classifier_1.classifyDiff)(diff, ctx.rules)); | ||
} | ||
} | ||
for (let i = 0; i < _after.length; i++) { | ||
const diff = { path: [...path, before.length + i], after: _after[i], action: constants_1.DiffAction.add }; | ||
diffs.push((0, classifier_1.classifyDiff)(diff, ctx.rules)); | ||
} | ||
return diffs; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlmZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLCtDQUEyQztBQU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x, path) => { | ||
const result = { | ||
added: [], | ||
removed: [], | ||
changed: {}, | ||
unchanged: [], | ||
}; | ||
const itemsDiffs = []; | ||
const beforeDiffs = []; | ||
const afterEquals = new Set(); | ||
const beforeEquals = new Set(); | ||
for (let i = 0; i < before.length; i++) { | ||
let afterDiffs = []; | ||
for (let j = 0; j < after.length; j++) { | ||
if (afterEquals.has(j)) { | ||
continue; | ||
} | ||
const diffs = (0, exports.findDiff)(before[i], after[j], ctx, [...path, i]); | ||
if (!diffs.length) { | ||
afterEquals.add(j); | ||
afterDiffs = j; | ||
break; | ||
} | ||
afterDiffs.push(diffs); | ||
} | ||
if (typeof afterDiffs === "number") { | ||
beforeEquals.add(i); | ||
} | ||
beforeDiffs.push(afterDiffs); | ||
} | ||
for (let i = 0; i < before.length; i++) { | ||
if (beforeEquals.has(i)) { | ||
// after has equal item | ||
itemsDiffs[i] = []; | ||
result.unchanged.push(i); | ||
} | ||
else { | ||
// find item with min diff count | ||
const afterIndexes = [...Array(after.length).keys()]; | ||
const minDiffs = afterIndexes.sort((a, b) => { var _a, _b; return (((_a = beforeDiffs[i][a]) === null || _a === void 0 ? void 0 : _a.length) || 0) - (((_b = beforeDiffs[i][b]) === null || _b === void 0 ? void 0 : _b.length) || 0); }); | ||
for (let j = 0; j < after.length; j++) { | ||
let minDiffIndex = minDiffs[j]; | ||
if (afterEquals.has(minDiffIndex)) { | ||
continue; | ||
} | ||
for (let k = 0; k < before.length; k++) { | ||
if (beforeEquals.has(k)) { | ||
continue; | ||
} | ||
if (beforeDiffs[k][minDiffIndex] < beforeDiffs[i][minDiffIndex]) { | ||
minDiffIndex = -1; | ||
break; | ||
} | ||
} | ||
if (minDiffIndex >= 0) { | ||
// merge before[i] with beforeDiffs[i][minDiffIndex] | ||
result.changed[i] = { | ||
afterIndex: minDiffIndex, | ||
diffs: beforeDiffs[i][minDiffIndex] | ||
}; | ||
beforeEquals.add(i); | ||
afterEquals.add(minDiffIndex); | ||
break; | ||
} | ||
} | ||
if (!beforeEquals.has(i)) { | ||
result.removed.push(i); | ||
} | ||
} | ||
} | ||
for (let j = 0; j < after.length; j++) { | ||
if (!afterEquals.has(j)) { | ||
result.added.push(j); | ||
} | ||
} | ||
return result; | ||
}; | ||
exports.enumDiff = enumDiff; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlmZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLCtDQUEyQztBQUMzQyw2Q0FBMkM7QUFDM0MsbUNBQTJDO0FBQzNDLHVDQUF1QztBQUN2QywyQ0FBd0M7QUFFakMsTUFBTSxPQUFPLEdBQUcsQ0FBQyxNQUFXLEVBQUUsS0FBVSxFQUFFLE9BQW9CLEVBQVUsRUFBRTtJQUMvRSxPQUFPLElBQUEsZ0JBQVEsRUFBQyxNQUFNLEVBQUUsS0FBSyxFQUFFLElBQUkscUJBQVcsQ0FBQyxNQUFNLEVBQUUsS0FBSyxFQUFFLE9BQU8sQ0FBQyxDQUFDLENBQUE7QUFDekUsQ0FBQyxDQUFBO0FBRlksUUFBQSxPQUFPLFdBRW5CO0FBRU0sTUFBTSxRQUFRLEdBQUcsQ0FBQyxNQUFXLEVBQUUsS0FBVSxFQUFFLEdBQWdCLEVBQUUsT0FBaUIsRUFBRSxFQUFVLEVBQUU7SUFDakcsSUFBSSxJQUFBLGNBQU0sRUFBQyxNQUFNLENBQUMsS0FBSyxJQUFBLGNBQU0sRUFBQyxLQUFLLENBQUMsRUFBRTtRQUNwQyxNQUFNLElBQUksR0FBRyxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsc0JBQVUsQ0FBQyxPQUFPLEVBQUUsQ0FBQTtRQUN0RSxPQUFPLENBQUMsSUFBQSx5QkFBWSxFQUFDLElBQU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FQUFFLENBQUMsRUFBRSxFQUFFO1FBQ3JDLElBQUksQ0FBQyxXQUFXLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFO1lBQ3ZCLE1BQU0sQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFBO1NBQ3JCO0tBQ0Y7SUFFRCxPQUFPLE1BQU0sQ0FBQTtBQUNmLENBQUMsQ0FBQTtBQTFFWSxRQUFBLFFBQVEsWUEwRXBCIn0= |
@@ -5,5 +5,5 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./rules/index"), exports); | ||
(0, tslib_1.__exportStar)(require("./types"), exports); | ||
(0, tslib_1.__exportStar)(require("./constants"), exports); | ||
tslib_1.__exportStar(require("./rules/index"), exports); | ||
tslib_1.__exportStar(require("./types"), exports); | ||
tslib_1.__exportStar(require("./constants"), exports); | ||
var diff_1 = require("./diff"); | ||
@@ -15,2 +15,2 @@ Object.defineProperty(exports, "apiDiff", { enumerable: true, get: function () { return diff_1.apiDiff; } }); | ||
Object.defineProperty(exports, "findExternalRefs", { enumerable: true, get: function () { return utils_1.findExternalRefs; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDZEQUE2QjtBQUM3Qix1REFBdUI7QUFDdkIsMkRBQTJCO0FBQzNCLCtCQUFnQztBQUF2QiwrRkFBQSxPQUFPLE9BQUE7QUFDaEIsaUNBQWtDO0FBQXpCLGlHQUFBLFFBQVEsT0FBQTtBQUNqQixpQ0FBMEM7QUFBakMseUdBQUEsZ0JBQWdCLE9BQUEifQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdEQUE2QjtBQUM3QixrREFBdUI7QUFDdkIsc0RBQTJCO0FBQzNCLCtCQUFnQztBQUF2QiwrRkFBQSxPQUFPLE9BQUE7QUFDaEIsaUNBQWtDO0FBQXpCLGlHQUFBLFFBQVEsT0FBQTtBQUNqQixpQ0FBMEM7QUFBakMseUdBQUEsZ0JBQWdCLE9BQUEifQ== |
@@ -7,4 +7,4 @@ "use strict"; | ||
const classifier_1 = require("./classifier"); | ||
const constants_1 = require("./constants"); | ||
const diff_1 = require("./diff"); | ||
const constants_1 = require("./constants"); | ||
const utils_1 = require("./utils"); | ||
@@ -83,2 +83,7 @@ const apiMerge = (before, after, options) => { | ||
}; | ||
// const mergeByDiff = (before: any, path: DiffPath, diff: Diff, ctx: DiffContext) => { | ||
// const arrPath = diff.path.slice(path.length) | ||
// const _path = buildPath(arrPath) | ||
// const value = resolveObjValue(before, _path, ctx.beforeCache) | ||
// } | ||
const mergeArrays = (before, after, ctx, path) => { | ||
@@ -88,4 +93,4 @@ const arrMeta = {}; | ||
const _after = [...after]; | ||
for (let i = 0; i < before.length; i++) { | ||
if (ctx.strictArrays) { | ||
if (ctx.strictArrays) { | ||
for (let i = 0; i < before.length; i++) { | ||
if (i >= after.length) { | ||
@@ -104,26 +109,45 @@ const diff = { path: [...path, i], before: before[i], action: constants_1.DiffAction.remove }; | ||
} | ||
else { | ||
const index = (0, diff_1.findEqualItemIndex)(before[i], _after, ctx); | ||
} | ||
else { | ||
const itemsDiff = (0, diff_1.enumDiff)(before, after, ctx, path); | ||
for (let i = 0; i < before.length; i++) { | ||
array[i] = before[i]; | ||
if (index >= 0) { | ||
_after.splice(index, 1); | ||
if (itemsDiff.unchanged.includes(i)) { | ||
} | ||
else { | ||
else if (itemsDiff.removed.includes(i)) { | ||
const diff = { path: [...path, i], before: before[i], action: constants_1.DiffAction.remove }; | ||
arrMeta[i] = ctx.formatMeta((0, classifier_1.classifyDiff)(diff, ctx.rules)); | ||
} | ||
else if (itemsDiff.changed[i]) { | ||
const { afterIndex } = itemsDiff.changed[i]; | ||
const [value, m] = mergeChanges(before[i], after[afterIndex], ctx, [...path, i]); | ||
array[i] = value; | ||
if (m) { | ||
arrMeta[i] = m; | ||
} | ||
// const { diffs } = itemsDiff.changed[i] | ||
// apply diffs to array[i] | ||
// for (let diff of diffs) { | ||
// mergeByDiff(array[i], [...path, i], diff) | ||
// } | ||
} | ||
} | ||
for (const j of itemsDiff.added) { | ||
array.push(after[j]); | ||
const diff = { path: [...path, j], after: after[j], action: constants_1.DiffAction.add }; | ||
arrMeta[j] = ctx.formatMeta((0, classifier_1.classifyDiff)(diff, ctx.rules)); | ||
} | ||
} | ||
if (ctx.strictArrays) { | ||
_after.splice(0, before.length); | ||
for (let j = before.length, i = 0; j < before.length + _after.length; j++, i++) { | ||
array[j] = _after[i]; | ||
const diff = { path: [...path, j], after: _after[i], action: constants_1.DiffAction.add }; | ||
arrMeta[j] = ctx.formatMeta((0, classifier_1.classifyDiff)(diff, ctx.rules)); | ||
} | ||
} | ||
for (let j = before.length, i = 0; j < before.length + _after.length; j++, i++) { | ||
array[j] = _after[i]; | ||
const diff = { path: [...path, j], after: _after[i], action: constants_1.DiffAction.add }; | ||
arrMeta[j] = ctx.formatMeta((0, classifier_1.classifyDiff)(diff, ctx.rules)); | ||
} | ||
if (ctx.arrayMeta && Object.keys(arrMeta).length) { | ||
array[ctx.metaKey] = arrMeta; | ||
} | ||
if (ctx.arrayMeta || !Object.keys(array).length) { | ||
if (ctx.arrayMeta || !Object.keys(arrMeta).length) { | ||
return [array]; | ||
@@ -135,2 +159,2 @@ } | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVyZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL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8sQ0FBQyxDQUFDLENBQUMsR0FBRyxHQUFHLENBQUMsVUFBVSxDQUFDLElBQUEseUJBQVksRUFBQyxJQUFJLEVBQUUsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUE7U0FDM0Q7S0FDRjtJQUVELElBQUksR0FBRyxDQUFDLFNBQVMsSUFBSSxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDLE1BQU0sRUFBRTtRQUMvQyxLQUFhLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxHQUFHLE9BQU8sQ0FBQTtLQUN0QztJQUVELElBQUksR0FBRyxDQUFDLFNBQVMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUMsTUFBTSxFQUFFO1FBQ2pELE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQTtLQUNmO1NBQU07UUFDTCxPQUFPLENBQUMsS0FBSyxFQUFFLEVBQUUsS0FBSyxFQUFFLE9BQU8sRUFBRSxDQUFDLENBQUE7S0FDbkM7QUFDSCxDQUFDLENBQUEifQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./asyncapi2"), exports); | ||
(0, tslib_1.__exportStar)(require("./openapi3"), exports); | ||
(0, tslib_1.__exportStar)(require("./jsonschema"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcnVsZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkRBQTJCO0FBQzNCLDBEQUEwQjtBQUMxQiw0REFBNEIifQ== | ||
tslib_1.__exportStar(require("./asyncapi2"), exports); | ||
tslib_1.__exportStar(require("./openapi3"), exports); | ||
tslib_1.__exportStar(require("./jsonschema"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcnVsZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0RBQTJCO0FBQzNCLHFEQUEwQjtBQUMxQix1REFBNEIifQ== |
@@ -91,2 +91,3 @@ "use strict"; | ||
"/example": constants_1.allAnnotation, | ||
"/examples": constants_1.allAnnotation, | ||
"/externalDocs": constants_1.allAnnotation, | ||
@@ -105,2 +106,2 @@ "/deprecated": booleanClassifier, | ||
exports.jsonSchemaRules = jsonSchemaRules; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbnNjaGVtYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ydWxlcy9qc29uc2NoZW1hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLG9DQUEwRDtBQUUxRCw0Q0FJcUI7QUFFckIsTUFBTSxhQUFhLEdBQWU7SUFDaEMsb0JBQVE7SUFDUix1QkFBVztJQUNYLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUMsSUFBQSxrQkFBVSxFQUFDLENBQUMsR0FBRyxDQUFDLENBQUM7Q0FDNUIsQ0FBQTtBQUVELE1BQU0sYUFBYSxHQUFlO0lBQ2hDLG9CQUFRO0lBQ1IsdUJBQVc7SUFDWCxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRSxDQUFDLElBQUEsa0JBQVUsRUFBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0NBQzVCLENBQUE7QUFFRCxNQUFNLG1CQUFtQixHQUFlO0lBQ3RDLDJCQUFtQjtJQUNuQix1QkFBVztJQUNYLDJCQU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QVcsRUFBRSxvQkFBUSxFQUFFLG9CQUFRLENBQUM7SUFDN0MsV0FBVyxFQUFFLGlCQUFpQjtJQUM5QixnQkFBZ0IsRUFBRTtRQUNoQixPQUFPO1FBQ1AsR0FBRyxFQUFFLDJCQUFlO1FBQ3BCLGVBQWUsRUFBRSwyQkFBZTtRQUNoQyxVQUFVLEVBQUUsMkJBQWU7S0FDNUI7SUFDRCxXQUFXLEVBQUUsaUJBQWlCO0lBQzlCLFlBQVksRUFBRSxpQkFBaUI7SUFDL0IsVUFBVSxFQUFFLHlCQUFhO0lBQ3pCLFdBQVcsRUFBRSx5QkFBYTtJQUMxQixlQUFlLEVBQUUseUJBQWE7SUFDOUIsYUFBYSxFQUFFLGlCQUFpQjtJQUNoQyxNQUFNLEVBQUU7UUFDTixPQUFPO1FBQ1AsR0FBRyxFQUFFLDJCQUFlO1FBQ3BCLE9BQU8sRUFBRSwyQkFBZTtRQUN4QixZQUFZLEVBQUUsMkJBQWU7UUFDN0IsU0FBUyxFQUFFLDJCQUFlO1FBQzFCLFlBQVksRUFBRSwyQkFBZTtRQUM3QixVQUFVLEVBQUUsMkJBQWU7S0FDNUI7Q0FDRixDQUFDLENBQUE7QUF4RVcsUUFBQSxlQUFlLG1CQXdFMUIifQ== |
@@ -36,2 +36,13 @@ export declare type DiffPath = Array<string | number>; | ||
}; | ||
export declare type EnumDiff = { | ||
added: number[]; | ||
removed: number[]; | ||
changed: { | ||
[index: number]: { | ||
afterIndex: number; | ||
diffs: Diff[]; | ||
}; | ||
}; | ||
unchanged: number[]; | ||
}; | ||
export declare type MergeOptions<T = MergedKeyMeta> = DiffOptions & { | ||
@@ -38,0 +49,0 @@ formatMeta?: (diff: Diff) => T; |
@@ -1,2 +0,2 @@ | ||
import { DiffPath, DiffOptions, Diff } from "./types"; | ||
import { DiffPath, DiffOptions, Diff, EnumDiff } from "./types"; | ||
import { DiffContext } from "./context"; | ||
@@ -6,1 +6,2 @@ export declare const apiDiff: (before: any, after: any, options: DiffOptions) => Diff[]; | ||
export declare const findEqualItemIndex: (item: any, array: any[], ctx: DiffContext) => number; | ||
export declare const enumDiff: (before: any[], after: any[], ctx: DiffContext, path: DiffPath) => EnumDiff; |
@@ -85,4 +85,4 @@ import { dereference } from "./dereference"; | ||
const _after = [...after]; | ||
for (let i = 0; i < before.length; i++) { | ||
if (ctx.strictArrays) { | ||
if (ctx.strictArrays) { | ||
for (let i = 0; i < before.length; i++) { | ||
if (i >= after.length) { | ||
@@ -96,25 +96,103 @@ const diff = { path: [...path, i], before: before[i], action: DiffAction.remove }; | ||
} | ||
else { | ||
const index = findEqualItemIndex(before[i], _after, ctx); | ||
if (index >= 0) { | ||
_after.splice(index, 1); | ||
} | ||
else { | ||
const diff = { path: [...path, i], before: before[i], action: DiffAction.remove }; | ||
diffs.push(classifyDiff(diff, ctx.rules)); | ||
} | ||
} | ||
else { | ||
const itemsDiff = enumDiff(before, after, ctx, path); | ||
for (let addedIndex of itemsDiff.added) { | ||
const diff = { path: [...path, addedIndex], after: after[addedIndex], action: DiffAction.add }; | ||
diffs.push(classifyDiff(diff, ctx.rules)); | ||
} | ||
if (ctx.findFirstDiff && diffs.length) { | ||
break; | ||
for (let removedIndex of itemsDiff.removed) { | ||
const diff = { path: [...path, removedIndex], before: before[removedIndex], action: DiffAction.remove }; | ||
diffs.push(classifyDiff(diff, ctx.rules)); | ||
} | ||
for (let key of Object.keys(itemsDiff.changed)) { | ||
diffs.push(...itemsDiff.changed[+key].diffs); | ||
} | ||
} | ||
if (ctx.strictArrays) { | ||
_after.splice(0, before.length); | ||
for (let i = 0; i < _after.length; i++) { | ||
const diff = { path: [...path, before.length + i], after: _after[i], action: DiffAction.add }; | ||
diffs.push(classifyDiff(diff, ctx.rules)); | ||
} | ||
} | ||
for (let i = 0; i < _after.length; i++) { | ||
const diff = { path: [...path, before.length + i], after: _after[i], action: DiffAction.add }; | ||
diffs.push(classifyDiff(diff, ctx.rules)); | ||
} | ||
return diffs; | ||
}; | ||
//# sourceMapp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UFDLElBQUksQ0FBQyxZQUFZLENBQUMsSUFBSSxFQUFFLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFBO0tBQzFDO0lBRUQsT0FBTyxLQUFLLENBQUE7QUFDZCxDQUFDLENBQUEifQ== | ||
export const enumDiff = (before, after, ctx, path) => { | ||
const result = { | ||
added: [], | ||
removed: [], | ||
changed: {}, | ||
unchanged: [], | ||
}; | ||
const itemsDiffs = []; | ||
const beforeDiffs = []; | ||
const afterEquals = new Set(); | ||
const beforeEquals = new Set(); | ||
for (let i = 0; i < before.length; i++) { | ||
let afterDiffs = []; | ||
for (let j = 0; j < after.length; j++) { | ||
if (afterEquals.has(j)) { | ||
continue; | ||
} | ||
const diffs = findDiff(before[i], after[j], ctx, [...path, i]); | ||
if (!diffs.length) { | ||
afterEquals.add(j); | ||
afterDiffs = j; | ||
break; | ||
} | ||
afterDiffs.push(diffs); | ||
} | ||
if (typeof afterDiffs === "number") { | ||
beforeEquals.add(i); | ||
} | ||
beforeDiffs.push(afterDiffs); | ||
} | ||
for (let i = 0; i < before.length; i++) { | ||
if (beforeEquals.has(i)) { | ||
// after has equal item | ||
itemsDiffs[i] = []; | ||
result.unchanged.push(i); | ||
} | ||
else { | ||
// find item with min diff count | ||
const afterIndexes = [...Array(after.length).keys()]; | ||
const minDiffs = afterIndexes.sort((a, b) => { var _a, _b; return (((_a = beforeDiffs[i][a]) === null || _a === void 0 ? void 0 : _a.length) || 0) - (((_b = beforeDiffs[i][b]) === null || _b === void 0 ? void 0 : _b.length) || 0); }); | ||
for (let j = 0; j < after.length; j++) { | ||
let minDiffIndex = minDiffs[j]; | ||
if (afterEquals.has(minDiffIndex)) { | ||
continue; | ||
} | ||
for (let k = 0; k < before.length; k++) { | ||
if (beforeEquals.has(k)) { | ||
continue; | ||
} | ||
if (beforeDiffs[k][minDiffIndex] < beforeDiffs[i][minDiffIndex]) { | ||
minDiffIndex = -1; | ||
break; | ||
} | ||
} | ||
if (minDiffIndex >= 0) { | ||
// merge before[i] with beforeDiffs[i][minDiffIndex] | ||
result.changed[i] = { | ||
afterIndex: minDiffIndex, | ||
diffs: beforeDiffs[i][minDiffIndex] | ||
}; | ||
beforeEquals.add(i); | ||
afterEquals.add(minDiffIndex); | ||
break; | ||
} | ||
} | ||
if (!beforeEquals.has(i)) { | ||
result.removed.push(i); | ||
} | ||
} | ||
} | ||
for (let j = 0; j < after.length; j++) { | ||
if (!afterEquals.has(j)) { | ||
result.added.push(j); | ||
} | ||
} | ||
return result; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlmZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUE7QUFDM0MsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGNBQWMsQ0FBQTtBQUMzQyxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLFNBQVMsQ0FBQTtBQUMzQyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sV0FBVyxDQUFBO0FBQ3ZDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxhQUFhLENBQUE7QUFFeEMsTUFBTSxDQUFDLE1BQU0sT0FBTyxHQUFHLENBQUMsTUFBVyxFQUFFLEtBQVUsRUFBRSxPQUFvQixFQUFVLEVBQUU7SUFDL0UsT0FBTyxRQUFRLENBQUMsTUFBTSxFQUFFLEtBQUssRUFBRSxJQUFJLFdBQVcsQ0FBQyxNQUFNLEVBQUUsS0FBSyxFQUFFLE9BQU8sQ0FBQyxDQUFDLENBQUE7QUFDekUsQ0FBQyxDQUFBO0FBRUQsTUFBTSxDQUFDLE1BQU0sUUFBUSxHQUFHLENBQUMsTUFBVyxFQUFFLEtBQVUsRU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MsQ0FBQyxDQUFBO2FBQ3ZCO1NBQ0Y7S0FDRjtJQUVELEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxLQUFLLENBQUMsTUFBTSxFQUFFLENBQUMsRUFBRSxFQUFFO1FBQ3JDLElBQUksQ0FBQyxXQUFXLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFO1lBQ3ZCLE1BQU0sQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFBO1NBQ3JCO0tBQ0Y7SUFFRCxPQUFPLE1BQU0sQ0FBQTtBQUNmLENBQUMsQ0FBQSJ9 |
import { MergeContext } from "./context"; | ||
import { dereference } from "./dereference"; | ||
import { classifyDiff } from "./classifier"; | ||
import { findEqualItemIndex } from "./diff"; | ||
import { DiffAction } from "./constants"; | ||
import { enumDiff } from "./diff"; | ||
import { typeOf } from "./utils"; | ||
@@ -78,2 +78,7 @@ export const apiMerge = (before, after, options) => { | ||
}; | ||
// const mergeByDiff = (before: any, path: DiffPath, diff: Diff, ctx: DiffContext) => { | ||
// const arrPath = diff.path.slice(path.length) | ||
// const _path = buildPath(arrPath) | ||
// const value = resolveObjValue(before, _path, ctx.beforeCache) | ||
// } | ||
const mergeArrays = (before, after, ctx, path) => { | ||
@@ -83,4 +88,4 @@ const arrMeta = {}; | ||
const _after = [...after]; | ||
for (let i = 0; i < before.length; i++) { | ||
if (ctx.strictArrays) { | ||
if (ctx.strictArrays) { | ||
for (let i = 0; i < before.length; i++) { | ||
if (i >= after.length) { | ||
@@ -99,26 +104,45 @@ const diff = { path: [...path, i], before: before[i], action: DiffAction.remove }; | ||
} | ||
else { | ||
const index = findEqualItemIndex(before[i], _after, ctx); | ||
} | ||
else { | ||
const itemsDiff = enumDiff(before, after, ctx, path); | ||
for (let i = 0; i < before.length; i++) { | ||
array[i] = before[i]; | ||
if (index >= 0) { | ||
_after.splice(index, 1); | ||
if (itemsDiff.unchanged.includes(i)) { | ||
} | ||
else { | ||
else if (itemsDiff.removed.includes(i)) { | ||
const diff = { path: [...path, i], before: before[i], action: DiffAction.remove }; | ||
arrMeta[i] = ctx.formatMeta(classifyDiff(diff, ctx.rules)); | ||
} | ||
else if (itemsDiff.changed[i]) { | ||
const { afterIndex } = itemsDiff.changed[i]; | ||
const [value, m] = mergeChanges(before[i], after[afterIndex], ctx, [...path, i]); | ||
array[i] = value; | ||
if (m) { | ||
arrMeta[i] = m; | ||
} | ||
// const { diffs } = itemsDiff.changed[i] | ||
// apply diffs to array[i] | ||
// for (let diff of diffs) { | ||
// mergeByDiff(array[i], [...path, i], diff) | ||
// } | ||
} | ||
} | ||
for (const j of itemsDiff.added) { | ||
array.push(after[j]); | ||
const diff = { path: [...path, j], after: after[j], action: DiffAction.add }; | ||
arrMeta[j] = ctx.formatMeta(classifyDiff(diff, ctx.rules)); | ||
} | ||
} | ||
if (ctx.strictArrays) { | ||
_after.splice(0, before.length); | ||
for (let j = before.length, i = 0; j < before.length + _after.length; j++, i++) { | ||
array[j] = _after[i]; | ||
const diff = { path: [...path, j], after: _after[i], action: DiffAction.add }; | ||
arrMeta[j] = ctx.formatMeta(classifyDiff(diff, ctx.rules)); | ||
} | ||
} | ||
for (let j = before.length, i = 0; j < before.length + _after.length; j++, i++) { | ||
array[j] = _after[i]; | ||
const diff = { path: [...path, j], after: _after[i], action: DiffAction.add }; | ||
arrMeta[j] = ctx.formatMeta(classifyDiff(diff, ctx.rules)); | ||
} | ||
if (ctx.arrayMeta && Object.keys(arrMeta).length) { | ||
array[ctx.metaKey] = arrMeta; | ||
} | ||
if (ctx.arrayMeta || !Object.keys(array).length) { | ||
if (ctx.arrayMeta || !Object.keys(arrMeta).length) { | ||
return [array]; | ||
@@ -130,2 +154,2 @@ } | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVyZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi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QUFDLENBQUE7WUFDcEIsTUFBTSxJQUFJLEdBQUcsRUFBRSxJQUFJLEVBQUUsQ0FBQyxHQUFHLElBQUksRUFBRSxDQUFDLENBQUMsRUFBRSxLQUFLLEVBQUUsTUFBTSxDQUFDLENBQUMsQ0FBQyxFQUFFLE1BQU0sRUFBRSxVQUFVLENBQUMsR0FBRyxFQUFFLENBQUE7WUFDN0UsT0FBTyxDQUFDLENBQUMsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxVQUFVLENBQUMsWUFBWSxDQUFDLElBQUksRUFBRSxHQUFHLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQTtTQUMzRDtLQUNGO0lBRUQsSUFBSSxHQUFHLENBQUMsU0FBUyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUMsTUFBTSxFQUFFO1FBQy9DLEtBQWEsQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLEdBQUcsT0FBTyxDQUFBO0tBQ3RDO0lBRUQsSUFBSSxHQUFHLENBQUMsU0FBUyxJQUFJLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQyxNQUFNLEVBQUU7UUFDakQsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFBO0tBQ2Y7U0FBTTtRQUNMLE9BQU8sQ0FBQyxLQUFLLEVBQUUsRUFBRSxLQUFLLEVBQUUsT0FBTyxFQUFFLENBQUMsQ0FBQTtLQUNuQztBQUNILENBQUMsQ0FBQSJ9 |
@@ -88,2 +88,3 @@ import { breakingIf, breakingIfAfterTrue } from "../utils"; | ||
"/example": allAnnotation, | ||
"/examples": allAnnotation, | ||
"/externalDocs": allAnnotation, | ||
@@ -101,2 +102,2 @@ "/deprecated": booleanClassifier, | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbnNjaGVtYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2Vz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SxlQUFlO1FBQ3hCLFlBQVksRUFBRSxlQUFlO1FBQzdCLFNBQVMsRUFBRSxlQUFlO1FBQzFCLFlBQVksRUFBRSxlQUFlO1FBQzdCLFVBQVUsRUFBRSxlQUFlO0tBQzVCO0NBQ0YsQ0FBQyxDQUFBIn0= |
@@ -36,2 +36,13 @@ export declare type DiffPath = Array<string | number>; | ||
}; | ||
export declare type EnumDiff = { | ||
added: number[]; | ||
removed: number[]; | ||
changed: { | ||
[index: number]: { | ||
afterIndex: number; | ||
diffs: Diff[]; | ||
}; | ||
}; | ||
unchanged: number[]; | ||
}; | ||
export declare type MergeOptions<T = MergedKeyMeta> = DiffOptions & { | ||
@@ -38,0 +49,0 @@ formatMeta?: (diff: Diff) => T; |
{ | ||
"name": "api-smart-diff", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Generate the diff between two API specifications (OpenAPI, AsyncAPI, JsonSchema)", | ||
@@ -18,2 +18,3 @@ "module": "dist/esm/index.js", | ||
"test": "jest --verbose", | ||
"prepublish": "rm -r dist || true && npm run build && npm run build:web", | ||
"test:coverage": "jest --verbose --coverage", | ||
@@ -25,2 +26,3 @@ "build:web": "webpack" | ||
"diff", | ||
"merge", | ||
"openapi", | ||
@@ -27,0 +29,0 @@ "swagger", |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
288915
1471
3529
0