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.13 to 0.2.14

6

browser/api-smart-diff.min.js

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

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

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

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */const T=(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,r={})=>{let n=e;r=new Map(Object.entries(r));for(const a of v(t)){if(void 0===(n="array"===b(n)?n[+a]:n[a]))break;n=T(n,e,new Set,r)}return n})(t,s,n)),r.add(i),n.set(i,e)}return e},B=(e,t={})=>{const r=e;const n=((e,t)=>{let r=e;for(var n of[...t,""]){if(r.hasOwnProperty("/"+n)&&"number"!=typeof n||(n="*"),!r.hasOwnProperty("/"+n))return p;{const a=r["/"+n];if(Array.isArray(a))return a;r="function"==typeof a?a():a}}return p})(t,e.path)[["add","remove","replace"].indexOf(e.action)];return r.type="function"==typeof n?n(e.before,e.after):n,r};class V{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()}dereference(e,t,r){const n="#"+R(r);this.beforeRefs.add(n),this.afterRefs.add(n);return[T(e,this.before,this.beforeRefs,this.beforeCache),T(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 L;case"AsyncApi2":return z;case"JsonSchema":return M()}}equalResult(e,t){return{diffs:[]}}diffResult(e){return{diffs:[B(e,this.rules)]}}mergeResult(e,t){e.diffs=[...e.diffs,...t.diffs]}}const J=(e,t,r)=>{return E(e,t,new V(e,t,r)).diffs},E=(e,t,r,n=[])=>{if(b(e)!==b(t))return r.diffResult({path:n,before:e,after:t,action:y.replace});switch(b(e)){case"object":return Y(e,t,r,n);case"array":return G(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)}},Y=(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 c=new Set(Object.keys(i)),f=r.rules&&O(r.rules,n);for(const m of t){var u,l=[...c].find(e=>e===m||(null===f||void 0===f?void 0:f.matchKeysFunc)&&f.matchKeysFunc(m,e)),d=[...n,m];l!==m&&(u={path:d,before:m,after:l,action:y.replace},r.mergeResult(a,r.diffResult(u))),l?(r.mergeResult(a,E(s[m],i[l],r,d)),c.delete(l)):(u={path:d,before:s[m],action:y.remove},r.mergeResult(a,r.diffResult(u)))}for(const h of c){var p={path:[...n,h],after:i[h],action:y.add};r.mergeResult(a,r.diffResult(p))}return o(),a},G=(t,r,e,n)=>{if(0===t.length&&0===r.length)return e.equalResult(t,n);const a=e.rules&&O(e.rules,n);if(!(e.strictArrays||null!==a&&void 0!==a&&a.matchItemsFunc))return H(t,r,e,n);var s={diffs:[]};const i=new Set(r.keys());for(const f of t.keys()){var o,c=[...n,f];null!==a&&void 0!==a&&a.matchItemsFunc?void 0===(o=(null===a||void 0===a?void 0:a.matchItemsFunc)&&[...i].find(e=>a.matchItemsFunc(t[f],r[e])))?e.mergeResult(s,e.diffResult({path:c,before:t[f],action:y.remove})):(i.delete(o),e.mergeResult(s,E(t[f],r[o],e,c))):f>=r.length?e.mergeResult(s,e.diffResult({path:c,before:t[f],action:y.remove})):(i.delete(f),e.mergeResult(s,E(t[f],r[f],e,c)))}for(const u of i)e.mergeResult(s,e.diffResult({path:[...n,-1],after:r[u],action:y.add}));return s},H=(n,a,s,i)=>{var t,o={diffs:[]};const e=[],c=[],f=new Set,u=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 l=E(n[r],a[e],s,[...i,r]);if(!l.diffs.length){f.add(e),u.add(r),t=l;break}t.push(l)}c.push(t)}for(let r=0;r<n.length;r++){const m=c[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.length)||0)-((null==(e=m[t])?void 0:e.length)||0)});for(let e=0;e<a.length;e++){let t=p[e];if(!f.has(t)){for(let e=0;e<n.length;e++)if(!u.has(e)&&c[e][t]<c[r][t]){t=-1;break}if(0<=t){s.mergeResult(o,m[t]),u.add(r),f.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++)f.has(e)||(t={path:[...i,-1],after:a[e],action:y.add},s.mergeResult(o,s.diffResult(t)));return o},Q=(e,t,r)=>{e=E(e,t,new W(e,t,r)).value;return e};class W extends V{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:[B(e,this.rules)],diff:B(e,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"!==b(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]={[n]:t.meta})),e.value=s,e.path=t.path.slice(0,-1)}}}]);
***************************************************************************** */const T=(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,r={})=>{let n=e;r=new Map(Object.entries(r));for(const a of v(t)){if(void 0===(n="array"===b(n)?n[+a]:n[a]))break;n=T(n,e,new Set,r)}return n})(t,s,n)),r.add(i),n.set(i,e)}return e},B=(e,t,r={})=>{const n=e;r=O(r,[...e.path,""],t);const a=(Array.isArray(r)?r:p)[["add","remove","replace"].indexOf(e.action)];return n.type="function"==typeof a?a(e.before,e.after):a,n};class H{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()}getPathRuleMeta(e){return C(this.rules,e,this.before)}dereference(e,t,r){const n="#"+R(r);this.beforeRefs.add(n),this.afterRefs.add(n);return[T(e,this.before,this.beforeRefs,this.beforeCache),T(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 U;case"JsonSchema":return M()}}equalResult(e,t){return{diffs:[]}}diffResult(e){return{diffs:[B(e,this.before,this.rules)]}}mergeResult(e,t){e.diffs=[...e.diffs,...t.diffs]}}const Q=(e,t,r)=>{return E(e,t,new H(e,t,r)).diffs},E=(e,t,r,n=[])=>{if(b(e)!==b(t))return r.diffResult({path:n,before:e,after:t,action:y.replace});switch(b(e)){case"object":return W(e,t,r,n);case"array":return X(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)}},W=(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 c=new Set(Object.keys(i)),u=r.getPathRuleMeta(n);for(const m of t){var f,l=[...c].find(e=>e===m||(null===u||void 0===u?void 0:u.matchKeysFunc)&&u.matchKeysFunc(m,e)),d=[...n,m];l!==m&&(f={path:d,before:m,after:l,action:y.replace},r.mergeResult(a,r.diffResult(f))),l?(r.mergeResult(a,E(s[m],i[l],r,d)),c.delete(l)):(f={path:d,before:s[m],action:y.remove},r.mergeResult(a,r.diffResult(f)))}for(const h of c){var p={path:[...n,h],after:i[h],action:y.add};r.mergeResult(a,r.diffResult(p))}return o(),a},X=(t,r,e,n)=>{if(0===t.length&&0===r.length)return e.equalResult(t,n);const a=e.getPathRuleMeta(n);if(!(e.strictArrays||null!==a&&void 0!==a&&a.matchItemsFunc))return Z(t,r,e,n);var s={diffs:[]};const i=new Set(r.keys());for(const u of t.keys()){var o,c=[...n,u];null!==a&&void 0!==a&&a.matchItemsFunc?void 0===(o=(null===a||void 0===a?void 0:a.matchItemsFunc)&&[...i].find(e=>a.matchItemsFunc(t[u],r[e])))?e.mergeResult(s,e.diffResult({path:c,before:t[u],action:y.remove})):(i.delete(o),e.mergeResult(s,E(t[u],r[o],e,c))):u>=r.length?e.mergeResult(s,e.diffResult({path:c,before:t[u],action:y.remove})):(i.delete(u),e.mergeResult(s,E(t[u],r[u],e,c)))}for(const f of i)e.mergeResult(s,e.diffResult({path:[...n,-1],after:r[f],action:y.add}));return s},Z=(n,a,s,i)=>{var t,o={diffs:[]};const e=[],c=[],u=new Set,f=new Set;for(let r=0;r<n.length;r++){let t=[];for(let e=0;e<a.length;e++)if(!u.has(e)){var l=E(n[r],a[e],s,[...i,r]);if(!l.diffs.length){u.add(e),f.add(r),t=l;break}t.push(l)}c.push(t)}for(let r=0;r<n.length;r++){const m=c[r];if(f.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.length)||0)-((null==(e=m[t])?void 0:e.length)||0)});for(let e=0;e<a.length;e++){let t=p[e];if(!u.has(t)){for(let e=0;e<n.length;e++)if(!f.has(e)&&c[e][t]<c[r][t]){t=-1;break}if(0<=t){s.mergeResult(o,m[t]),f.add(r),u.add(t);break}}}f.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++)u.has(e)||(t={path:[...i,-1],after:a[e],action:y.add},s.mergeResult(o,s.diffResult(t)));return o},ee=(e,t,r)=>{e=E(e,t,new te(e,t,r)).value;return e};class te extends H{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||a,this.arrayMeta=r.arrayMeta||!1}equalResult(e,t){return{diffs:[],value:e,path:t}}diffResult(e){return{diffs:[B(e,this.before,this.rules)],diff:B(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"!==b(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]={[n]:t.meta})),e.value=s,e.path=t.path.slice(0,-1)}}}]);

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

import { Rules, ObjPath, Classifier, UnclassifiedDiff, Diff } from "./types";
export declare const findClassifier: (rules: Rules, path: ObjPath) => Classifier;
export declare const classifyDiff: (diff: UnclassifiedDiff, rules?: Rules) => Diff;
import { Rules, UnclassifiedDiff, Diff } from "./types";
export declare const classifyDiff: (diff: UnclassifiedDiff, source: any, rules?: Rules) => Diff;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.classifyDiff = exports.findClassifier = void 0;
exports.classifyDiff = void 0;
const constants_1 = require("./constants");
const findClassifier = (rules, path) => {
let _rules = rules;
for (let key of [...path, ""]) {
// check if rules dont have key of key is array index
if (!_rules.hasOwnProperty(`/${key}`) || typeof key === "number") {
key = "*";
}
// check if rules have key
if (_rules.hasOwnProperty(`/${key}`)) {
const rule = _rules[`/${key}`];
if (Array.isArray(rule)) {
return rule;
}
_rules = typeof rule === "function" ? rule() : rule;
}
else {
return constants_1.allUnclassified;
}
}
return constants_1.allUnclassified;
};
exports.findClassifier = findClassifier;
const classifyDiff = (diff, rules = {}) => {
const utils_1 = require("./utils");
const classifyDiff = (diff, source, rules = {}) => {
const _diff = diff;
const classifier = (0, exports.findClassifier)(rules, diff.path);
const rule = (0, utils_1.getRules)(rules, [...diff.path, ""], source);
const classifier = Array.isArray(rule) ? rule : constants_1.allUnclassified;
const index = ["add", "remove", "replace"].indexOf(diff.action);

@@ -38,2 +18,2 @@ const changeType = classifier[index];

exports.classifyDiff = classifyDiff;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xhc3NpZmllci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jbGFzc2lmaWVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDJDQUE2QztBQUV0QyxNQUFNLGNBQWMsR0FBRyxDQUFDLEtBQVksRUFBRSxJQUFhLEVBQWMsRUFBRTtJQUN4RSxJQUFJLE1BQU0sR0FBRyxLQUFLLENBQUE7SUFDbEIsS0FBSyxJQUFJLEdBQUcsSUFBSSxDQUFDLEdBQUcsSUFBSSxFQUFFLEVBQUUsQ0FBQyxFQUFFO1FBQzdCLHFEQUFxRDtRQUNyRCxJQUFJLENBQUMsTUFBTSxDQUFDLGNBQWMsQ0FBQyxJQUFJLEdBQUcsRUFBRSxDQUFDLElBQUksT0FBTyxHQUFHLEtBQUssUUFBUSxFQUFFO1lBQ2hFLEdBQUcsR0FBRyxHQUFHLENBQUE7U0FDVjtRQUVELDBCQUEwQjtRQUMxQixJQUFJLE1BQU0sQ0FBQyxjQUFjLENBQUMsSUFBSSxHQUFHLEVBQUUsQ0FBQyxFQUFFO1lBQ3BDLE1BQU0sSUFBSSxHQUFHLE1BQU0sQ0FBQyxJQUFJLEdBQUcsRUFBRSxDQUFDLENBQUE7WUFDOUIsSUFBSSxLQUFLLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxFQUFFO2dCQUN2QixPQUFPLElBQUksQ0FBQTthQUNaO1lBQ0QsTUFBTSxHQUFHLE9BQU8sSUFBSSxLQUFLLFVBQVUsQ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FwcGluZ3MiOiI7OztBQUNBLDJDQUE2QztBQUM3QyxtQ0FBa0M7QUFFM0IsTUFBTSxZQUFZLEdBQUcsQ0FBQyxJQUFzQixFQUFFLE1BQVcsRUFBRSxRQUFlLEVBQUUsRUFBUSxFQUFFO0lBQzNGLE1BQU0sS0FBSyxHQUFHLElBQVksQ0FBQTtJQUUxQixNQUFNLElBQUksR0FBRyxJQUFBLGdCQUFRLEVBQUMsS0FBSyxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsSUFBSSxFQUFFLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxDQUFBO0lBQ3hELE1BQU0sVUFBVSxHQUFHLEtBQUssQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsMkJBQWUsQ0FBQTtJQUUvRCxNQUFNLEtBQUssR0FBRyxDQUFDLEtBQUssRUFBRSxRQUFRLEVBQUUsU0FBUyxDQUFDLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQTtJQUMvRCxNQUFNLFVBQVUsR0FBRyxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUE7SUFFcEMsS0FBSyxDQUFDLElBQUksR0FBRyxPQUFPLFVBQVUsS0FBSyxVQUFVO1FBQzNDLENBQUMsQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsS0FBSyxDQUFDO1FBQ3JDLENBQUMsQ0FBQyxVQUFVLENBQUE7SUFFZCxPQUFPLEtBQUssQ0FBQTtBQUNkLENBQUMsQ0FBQTtBQWRZLFFBQUEsWUFBWSxnQkFjeEIifQ==

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

const context_1 = require("./context");
const constants_1 = require("./constants");
const utils_1 = require("./utils");
const constants_1 = require("./constants");
const apiDiff = (before, after, options) => {

@@ -42,3 +42,3 @@ const res = (0, exports.compare)(before, after, new context_1.CompareContext(before, after, options));

const afterKeys = new Set(Object.keys(_after));
const meta = ctx.rules && (0, utils_1.getPathRuleMeta)(ctx.rules, objPath);
const meta = ctx.getPathRuleMeta(objPath);
for (const key of beforeKeys) {

@@ -74,3 +74,3 @@ const afterKey = [...afterKeys].find((k) => k === key || ((meta === null || meta === void 0 ? void 0 : meta.matchKeysFunc) && meta.matchKeysFunc(key, k)));

}
const meta = ctx.rules && (0, utils_1.getPathRuleMeta)(ctx.rules, objPath);
const meta = ctx.getPathRuleMeta(objPath);
if (!ctx.strictArrays && !(meta === null || meta === void 0 ? void 0 : meta.matchItemsFunc)) {

@@ -179,2 +179,2 @@ return (0, exports.compareEnums)(before, after, ctx, objPath);

exports.compareEnums = compareEnums;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGFyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wYXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHVDQUF5RDtBQUV6RCxtQ0FBaUQ7QUFDakQsMkNBQXdDO0FBRWpDLE1BQU0sT0FBTyxHQUFHLENBQUMsTUFBVyxFQUFFLEtBQVUsRUFBRSxPQUF1QixFQUFVLEVBQUU7SUFDbEYsTUFBTSxHQUFHLEdBQUcsSUFBQSxlQUFPLEVBQUMsTUFBTSxFQUFFLEtBQUssRUFBRSxJQUFJLHdCQUFjLENBQUMsTUFBTSxFQUFFLEtBQUssRUFBRSxPQUFPLENBQUMsQ0FBQyxDQUFBO0lBQzlFLE9BQU8sR0FBRyxDQUFDLEtBQUssQ0FBQTtBQUNsQixDQUFDLENBQUE7QUFIWSxRQUFBLE9BQU8sV0FHbkI7QUFFTSxNQUFNLE9BQU8sR0FBRyxDQUEwQixNQUFXLEVBQUUsS0FBVSxFQUFFLEdBQXNCLEVBQUUsT0FBZ0IsRUFBRSxFQUFLLEVBQUU7SUFDekgsSUFBSSxJ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FBRSxDQUFDLENBQUMsQ0FBQyxFQUFFLEtBQUssRUFBRSxLQUFLLENBQUMsQ0FBQyxDQUFDLEVBQUUsTUFBTSxFQUFFLHNCQUFVLENBQUMsR0FBRyxFQUFFLENBQUE7WUFDN0UsR0FBRyxDQUFDLFdBQVcsQ0FBQyxNQUFNLEVBQUUsR0FBRyxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFBO1NBQzlDO0tBQ0Y7SUFFRCxPQUFPLE1BQVcsQ0FBQTtBQUNwQixDQUFDLENBQUE7QUFyRVksUUFBQSxZQUFZLGdCQXFFeEIifQ==

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

import { Classifier } from "./types";
import { Rule } from "./types";
export declare const RuleMetaKey: unique symbol;

@@ -16,7 +16,7 @@ export declare const DIFF_META_KEY = "$diff";

export declare const breaking: ClassifierType, nonBreaking: ClassifierType, unclassified: ClassifierType, annotation: ClassifierType;
export declare const allNonBreaking: Classifier;
export declare const allBreaking: Classifier;
export declare const onlyAddBreaking: Classifier;
export declare const addNonBreaking: Classifier;
export declare const allUnclassified: Classifier;
export declare const allAnnotation: Classifier;
export declare const allNonBreaking: Rule;
export declare const allBreaking: Rule;
export declare const onlyAddBreaking: Rule;
export declare const addNonBreaking: Rule;
export declare const allUnclassified: Rule;
export declare const allAnnotation: Rule;

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

exports.allAnnotation = [exports.annotation, exports.annotation, exports.annotation];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFYSxRQUFBLFdBQVcsR0FBRyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUE7QUFDNUIsUUFBQSxhQUFhLEdBQUcsT0FBTyxDQUFBO0FBRXBDLElBQVksVUFJWDtBQU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BYyxHQUFTLENBQUMsbUJBQVcsRUFBRSxnQkFBUSxFQUFFLGdCQUFRLENBQUMsQ0FBQTtBQUN4RCxRQUFBLGVBQWUsR0FBUyxDQUFDLG9CQUFZLEVBQUUsb0JBQVksRUFBRSxvQkFBWSxDQUFDLENBQUE7QUFDbEUsUUFBQSxhQUFhLEdBQVMsQ0FBQyxrQkFBVSxFQUFFLGtCQUFVLEVBQUUsa0JBQVUsQ0FBQyxDQUFBIn0=

@@ -8,3 +8,3 @@ import { Diff, ObjPath, UnclassifiedDiff, CompareOptions, Rules } from "./types";

after: any;
rules?: Rules;
rules: Rules;
beforeRefs: Set<string>;

@@ -19,2 +19,3 @@ afterRefs: Set<string>;

normalizeString(value: string): string;
getPathRuleMeta(path: ObjPath): import("./types").RulesMeta | undefined;
dereference(before: any, after: any, objPath: ObjPath): [any, any, () => void];

@@ -21,0 +22,0 @@ private getBaseRules;

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

const rules_1 = require("./rules");
const utils_1 = require("./utils");
const dereference_1 = require("./dereference");
const classifier_1 = require("./classifier");
const utils_1 = require("./utils");
class CompareContext {

@@ -18,3 +18,3 @@ // public circularRef?: boolean

this.afterCache = new Map();
this.rules = typeof options.rules === "string" ? this.getBaseRules(options.rules) : options.rules;
this.rules = typeof options.rules === "string" ? this.getBaseRules(options.rules) : options.rules || {};
this.trimStrings = options.trimStrings;

@@ -35,2 +35,5 @@ this.caseSensitive = options.caseSensitive;

}
getPathRuleMeta(path) {
return (0, utils_1.getPathRuleMeta)(this.rules, path, this.before);
}
dereference(before, after, objPath) {

@@ -69,3 +72,3 @@ const ref = "#" + (0, utils_1.buildPath)(objPath);

const result = {
diffs: [(0, classifier_1.classifyDiff)(diff, this.rules)]
diffs: [(0, classifier_1.classifyDiff)(diff, this.before, this.rules)]
};

@@ -79,2 +82,2 @@ return result;

exports.CompareContext = CompareContext;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5qcyIs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1.classifyDiff)(diff, this.rules)],
diff: (0, classifier_1.classifyDiff)(diff, this.rules),
diffs: [(0, classifier_1.classifyDiff)(diff, this.before, this.rules)],
diff: (0, classifier_1.classifyDiff)(diff, this.before, this.rules),
path: diff.path

@@ -75,2 +75,2 @@ };

exports.MergeContext = MergeContext;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVyZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWVyZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsdUNBQXlEO0FBQ3pELDJDQUF1RDtBQUN2RCw2Q0FBMkM7QUFDM0MsdUNBQW1DO0FBQ25DLG1DQUFnQztBQUV6QixNQUFNLFFBQVEsR0FBRyxDQUFDLE1BQVcsRUFBRSxLQUFVLEVBQUUsT0FBcUIsRUFBTyxFQUFFO0lBQzlFLE1BQU0sRUFBRSxLQUFLLEVBQUUsR0FBRyxJQUFBLGlCQUFPLEVBQUMsTUFBTSxFQUFFLEtBQUssRUFBRSxJQUFJLFlBQVksQ0FBQyxNQUFNLEVBQUUsS0FBSyxFQUFFLE9BQU8sQ0FBQyxDQUFDLENBQUE7SUFDbEYsT0FBTyxLQUFLLENBQUE7QUFDZCxDQUFDLENBQUE7QUFIWSxRQUFBLFFBQVEsWUFHcEI7QUFTRCxNQUFhLFlBQWEsU0FBUSx3QkFBMkI7SUFNM0QsWUFBWSxNQUFXLEVBQUUsS0FBVSxFQUFFLE9BQXFCO1FBQ3hELEtBQUssQ0FBQyxNQUFNLEVBQUUsS0FBSyxFQUFFLE9BQU8sQ0FBQyxDQUFBO1FBTXZCLGdCQUFXLEdBQUcsQ0FBQyxJQUFVLEVBQWlCLEVBQUU7WUFDbEQsdUJBQ0UsSUFBSSxFQUFFLElBQUksQ0FBQyxJQUFJLEVBQ2YsTUFBTSxFQUFFLElBQUksQ0FBQyxNQUFNLElBQ2hCLElBQ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UssQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLEtBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxJQUFJLEdBQUUsQ0FBQTthQUM5RDtTQUNGO2FBQU07WUFDTCxLQUFLLENBQUMsR0FBRyxDQUFDLEdBQUcsS0FBSyxDQUFDLEtBQUssQ0FBQTtZQUN4QixJQUFJLEtBQUssQ0FBQyxJQUFJLEVBQUU7Z0JBQ2QsS0FBSyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUMsR0FBRyxDQUFDLEVBQUUsS0FBSyxDQUFDLElBQUksRUFBRSxDQUFBO2FBQzVDO1NBQ0Y7UUFFRCxNQUFNLENBQUMsS0FBSyxHQUFHLEtBQUssQ0FBQTtRQUNwQixNQUFNLENBQUMsSUFBSSxHQUFHLEtBQUssQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFBO0lBQ3ZDLENBQUM7Q0FDRjtBQXhFRCxvQ0F3RUMifQ==

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

import { Classifier, Rules } from "../types";
export declare const jsonSchemaRules: (rootRule?: Classifier) => Rules;
import { Rule, Rules } from "../types";
export declare const jsonSchemaRules: (rootRule?: Rule) => Rules;

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

exports.jsonSchemaRules = jsonSchemaRules;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbnNjaGVtYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ydWxlcy9qc29uc2NoZW1hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLG9DQUEwRDtBQUUxRCw0Q0FJcUI7QUFFckIsTUFBTSxhQUFhLEdBQWU7SUFDaEMsb0JBQVE7SUFDUix1QkFBVztJQUNYLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQU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.path) === null || _a === void 0 ? void 0 : _a.replace(new RegExp("\{.*?\}", "g"), "*");
const afterPath = (_b = a.data.path) === null || _b === void 0 ? void 0 : _b.replace(new RegExp("\{.*?\}", "g"), "*");
return beforePath === afterPath && b.data.method === a.data.method;
if (a.type === "model") {
return a.name === b.name;
}
else {
const beforePath = (_a = b.data.path) === null || _a === void 0 ? void 0 : _a.replace(new RegExp("\{.*?\}", "g"), "*");
const afterPath = (_b = a.data.path) === null || _b === void 0 ? void 0 : _b.replace(new RegExp("\{.*?\}", "g"), "*");
return beforePath === afterPath && b.data.method === a.data.method;
}
});
const contentArray = (rules) => (0, utils_1.enumRules)(rules, (b, a) => {
return a.mediaType === b.mediaType;
});
const paramRules = {
'/name': constants_1.allUnclassified,
'/name': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/style': constants_1.allUnclassified,
'/description': constants_1.allAnnotation,
'/explode': constants_1.allUnclassified,
'/required': constants_1.allUnclassified,
'/deprecated': constants_1.allUnclassified,
'/required': [constants_1.breaking, constants_1.nonBreaking, utils_1.breakingIfAfterTrue],
'/deprecated': [constants_1.breaking, constants_1.nonBreaking, utils_1.breakingIfAfterTrue],
};
const contentRules = {
'/': constants_1.allUnclassified,
'/mediaType': constants_1.allUnclassified,
'/schema': (0, _1.jsonSchemaRules)(constants_1.allUnclassified),
'/examples': constants_1.allAnnotation,
'/encodings': constants_1.allUnclassified
const paramsRules = {
'/': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/*': paramRules
};
const contentsRules = {
'/': constants_1.addNonBreaking,
'/*': {
'/': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/mediaType': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/schema': (0, _1.jsonSchemaRules)(constants_1.allBreaking),
'/examples': constants_1.allAnnotation,
'/encodings': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
}
};
const requestRules = {
'/path': {
'/': constants_1.allUnclassified,
'/*': paramRules,
},
'/query': {
'/': constants_1.allUnclassified,
'/*': Object.assign(Object.assign({}, paramRules), { '/allowEmptyValue': constants_1.allUnclassified, '/allowReserved': constants_1.allUnclassified }),
},
'/headers': {
'/': constants_1.allUnclassified,
'/*': paramRules
},
'/cookie': {
'/': constants_1.allUnclassified,
'/*': paramRules
},
'/path': (0, utils_1.objArray)("name", paramsRules),
'/query': (0, utils_1.objArray)("name", {
'/': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/*': Object.assign(Object.assign({}, paramRules), { '/allowEmptyValue': [constants_1.breaking, constants_1.nonBreaking, utils_1.breakingIfAfterTrue], '/allowReserved': [constants_1.breaking, constants_1.nonBreaking, utils_1.breakingIfAfterTrue] }),
}),
'/headers': (0, utils_1.objArray)("name", paramsRules),
'/cookie': (0, utils_1.objArray)("name", paramsRules),
'/body': {
'/': constants_1.allUnclassified,
'/contents': contentArray({
'/': constants_1.allUnclassified,
'/*': contentRules
}),
'/required': constants_1.allUnclassified,
'/': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/contents': (0, utils_1.objArray)("mediaType", contentsRules),
'/required': [constants_1.breaking, constants_1.nonBreaking, utils_1.breakingIfAfterTrue],
'/description': constants_1.allAnnotation

@@ -65,55 +62,70 @@ },

'/*': {
'/name': constants_1.allUnclassified,
'/name': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/style': constants_1.allUnclassified,
'/description': constants_1.allAnnotation,
'/explode': constants_1.allUnclassified,
'/required': constants_1.allUnclassified,
'/deprecated': constants_1.allUnclassified,
'/required': [constants_1.breaking, constants_1.nonBreaking, utils_1.breakingIfAfterTrue],
'/deprecated': [constants_1.breaking, constants_1.nonBreaking, utils_1.breakingIfAfterTrue],
}
};
const responseRules = {
'/code': constants_1.allUnclassified,
'/contents': contentArray({
'/': constants_1.allUnclassified,
'/*': contentRules,
}),
'/headers': headersRules,
'/description': constants_1.allAnnotation
const responsesRules = {
"/": constants_1.addNonBreaking,
"/*": {
"/": constants_1.addNonBreaking,
'/code': constants_1.allUnclassified,
'/contents': (0, utils_1.objArray)("mediaType", contentsRules),
'/headers': (0, utils_1.objArray)("name", headersRules),
'/description': constants_1.allAnnotation
}
};
const serverRules = {
'/url': constants_1.allUnclassified,
'/name': constants_1.allUnclassified,
'/': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/url': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/name': constants_1.allAnnotation,
'/description': constants_1.allAnnotation,
'/variables': constants_1.allUnclassified,
'/variables': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
};
const securityRules = {
"/": [constants_1.breaking, constants_1.nonBreaking, constants_1.unclassified],
"/*": [constants_1.breaking, constants_1.nonBreaking, constants_1.unclassified],
};
const modelRules = {
'/': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/data': () => (0, _1.jsonSchemaRules)(constants_1.addNonBreaking),
'/*': constants_1.allAnnotation,
};
const operationRules = {
// Node common
'/id': constants_1.allAnnotation,
'/iid': constants_1.allAnnotation,
'/tags': constants_1.allAnnotation,
'/summary': constants_1.allAnnotation,
'/description': constants_1.allAnnotation,
// Operation
'/method': constants_1.allBreaking,
'/path': constants_1.allBreaking,
'/request': requestRules,
'/responses': responseRules,
'/servers': {
'/': constants_1.allUnclassified,
'/*': serverRules
},
'/callbacks': childrenArray({
'/callbackName': constants_1.allUnclassified,
'/method': constants_1.allUnclassified,
'/path': constants_1.allUnclassified,
'/': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/data': {
// Node common
'/id': constants_1.allAnnotation,
'/iid': constants_1.allAnnotation,
'/tags': constants_1.allAnnotation,
'/summary': constants_1.allAnnotation,
'/description': constants_1.allAnnotation,
// Operation
'/method': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/path': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/request': requestRules,
'/responses': responseRules,
'/deprecated': constants_1.allUnclassified,
'/responses': (0, utils_1.objArray)("code", responsesRules),
'/servers': {
'/': constants_1.allUnclassified,
'/*': serverRules
},
'/callbacks': childrenArray({
'/callbackName': constants_1.allAnnotation,
'/method': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/path': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/request': requestRules,
'/responses': (0, utils_1.objArray)("code", responsesRules),
'/deprecated': constants_1.allUnclassified,
'/internal': constants_1.allUnclassified,
'/extensions': constants_1.allUnclassified,
}),
'/security': securityRules,
'/deprecated': [constants_1.breaking, constants_1.nonBreaking, utils_1.breakingIfAfterTrue],
'/internal': constants_1.allUnclassified,
'/extensions': constants_1.allUnclassified,
}),
'/security': constants_1.allUnclassified,
'/deprecated': constants_1.allUnclassified,
'/internal': constants_1.allUnclassified,
'/extensions': constants_1.allUnclassified
'/extensions': constants_1.allUnclassified
},
'/*': constants_1.allAnnotation,
};

@@ -131,10 +143,10 @@ const serviceRules = {

'/servers': {
'/': constants_1.allUnclassified,
'/': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/*': serverRules
},
'/security': constants_1.allUnclassified,
'/securitySchemes': constants_1.allUnclassified,
'/termsOfService': constants_1.allUnclassified,
'/security': securityRules,
'/securitySchemes': [constants_1.breaking, constants_1.nonBreaking, constants_1.breaking],
'/termsOfService': constants_1.allAnnotation,
'/contact': constants_1.allAnnotation,
'/license': constants_1.allUnclassified,
'/license': [constants_1.breaking, constants_1.breaking, constants_1.breaking],
'/logo': constants_1.allAnnotation

@@ -147,7 +159,3 @@ };

'/': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/*': {
'/': [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking],
'/data': operationRules,
'/*': constants_1.allAnnotation,
}
'/*': ({ type }) => type === "model" ? modelRules : operationRules,
}),

@@ -162,2 +170,2 @@ "/components": {

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

@@ -17,4 +17,4 @@ export declare type ObjPath = Array<string | number>;

export declare type DiffTypeFunc = (before: any, after: any) => DiffType;
export declare type Classifier = [AddDiffType, RemoveDiffType, ReplaceDiffType];
export declare type RulesRef = () => Rules;
export declare type Rule = [AddDiffType, RemoveDiffType, ReplaceDiffType];
export declare type RulesRef = (b: any) => Rules;
export declare type MatchFunc = (b: any, a: any) => boolean;

@@ -26,5 +26,5 @@ export declare type RulesMeta = {

export declare type Rules = {
[key: `/${string}`]: Classifier | Rules | RulesRef;
[key: `/${string}`]: Rule | Rules | RulesRef;
} & {
"/"?: Classifier;
"/"?: Rule;
} & {

@@ -31,0 +31,0 @@ [meta: symbol]: RulesMeta;

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

import { RulesMeta, MatchFunc, Rules, DiffType, ObjPath } from "./types";
import { Rule, RulesMeta, MatchFunc, Rules, DiffType, ObjPath } from "./types";
export declare const breakingIf: (v: boolean) => DiffType;

@@ -7,5 +7,7 @@ export declare const breakingIfAfterTrue: (_: any, a: any) => DiffType;

export declare const buildPath: (path: ObjPath) => string;
export declare const getPathRuleMeta: (rules: Rules, path: ObjPath) => RulesMeta | undefined;
export declare const getRules: (rules: Rules, path: ObjPath, source: any) => Rules | Rule | undefined;
export declare const getPathRuleMeta: (rules: Rules, path: ObjPath, source: any) => RulesMeta | undefined;
export declare const findExternalRefs: (source: any | any[]) => string[];
export declare const enumRules: (rules: Rules, matchItemsFunc: MatchFunc) => Rules;
export declare const objArray: (key: string, rules: Rules) => Rules;
export declare const mapRules: (rules: Rules, matchKeysFunc: MatchFunc) => Rules;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapRules = exports.enumRules = exports.findExternalRefs = exports.getPathRuleMeta = exports.buildPath = exports.parsePath = exports.typeOf = exports.breakingIfAfterTrue = exports.breakingIf = void 0;
exports.mapRules = exports.objArray = exports.enumRules = exports.findExternalRefs = exports.getPathRuleMeta = exports.getRules = exports.buildPath = exports.parsePath = exports.typeOf = exports.breakingIfAfterTrue = exports.breakingIf = void 0;
const constants_1 = require("./constants");

@@ -25,5 +25,7 @@ const breakingIf = (v) => (v ? constants_1.breaking : constants_1.nonBreaking);

exports.buildPath = buildPath;
const getPathRuleMeta = (rules, path) => {
const getRules = (rules, path, source) => {
let _rules = rules;
let value = source;
for (let key of [...path]) {
value = (key !== undefined && value !== undefined) ? value[key] : undefined;
// check if rules dont have key of key is array index

@@ -37,5 +39,5 @@ if (!_rules.hasOwnProperty(`/${key}`) || typeof key === "number") {

if (Array.isArray(rule)) {
return undefined;
return rule;
}
_rules = typeof rule === "function" ? rule() : rule;
_rules = typeof rule === "function" ? rule(value) : rule;
}

@@ -46,4 +48,12 @@ else {

}
return _rules[constants_1.RuleMetaKey];
return _rules;
};
exports.getRules = getRules;
const getPathRuleMeta = (rules, path, source) => {
const _rules = (0, exports.getRules)(rules, path, source);
if (_rules && !Array.isArray(_rules) && constants_1.RuleMetaKey in _rules) {
return _rules[constants_1.RuleMetaKey];
}
return undefined;
};
exports.getPathRuleMeta = getPathRuleMeta;

@@ -83,2 +93,7 @@ const findExternalRefs = (source) => {

exports.enumRules = enumRules;
const objArray = (key, rules) => {
rules[constants_1.RuleMetaKey] = { matchKeysFunc: (b, a) => a[key] === b[key] };
return rules;
};
exports.objArray = objArray;
const mapRules = (rules, matchKeysFunc) => {

@@ -89,2 +104,2 @@ rules[constants_1.RuleMetaKey] = { matchKeysFunc };

exports.mapRules = mapRules;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJ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csQ0FBQyxLQUFZLEVBQUUsY0FBeUIsRUFBUyxFQUFFO0lBQzFFLEtBQUssQ0FBQyx1QkFBVyxDQUFDLEdBQUcsRUFBRSxjQUFjLEVBQUUsQ0FBQTtJQUN2QyxPQUFPLEtBQUssQ0FBQTtBQUNkLENBQUMsQ0FBQTtBQUhZLFFBQUEsU0FBUyxhQUdyQjtBQUVNLE1BQU0sUUFBUSxHQUFHLENBQUMsR0FBVyxFQUFFLEtBQVksRUFBUyxFQUFFO0lBQzNELEtBQUssQ0FBQyx1QkFBVyxDQUFDLEdBQUcsRUFBRSxhQUFhLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUE7SUFDbkUsT0FBTyxLQUFLLENBQUE7QUFDZCxDQUFDLENBQUE7QUFIWSxRQUFBLFFBQVEsWUFHcEI7QUFFTSxNQUFNLFFBQVEsR0FBRyxDQUFDLEtBQVksRUFBRSxhQUF3QixFQUFTLEVBQUU7SUFDeEUsS0FBSyxDQUFDLHVCQUFXLENBQUMsR0FBRyxFQUFFLGFBQWEsRUFBRSxDQUFBO0lBQ3RDLE9BQU8sS0FBSyxDQUFBO0FBQ2QsQ0FBQyxDQUFBO0FBSFksUUFBQSxRQUFRLFlBR3BCIn0=

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

import { Rules, ObjPath, Classifier, UnclassifiedDiff, Diff } from "./types";
export declare const findClassifier: (rules: Rules, path: ObjPath) => Classifier;
export declare const classifyDiff: (diff: UnclassifiedDiff, rules?: Rules) => Diff;
import { Rules, UnclassifiedDiff, Diff } from "./types";
export declare const classifyDiff: (diff: UnclassifiedDiff, source: any, rules?: Rules) => Diff;
import { allUnclassified } from "./constants";
export const findClassifier = (rules, path) => {
let _rules = rules;
for (let key of [...path, ""]) {
// check if rules dont have key of key is array index
if (!_rules.hasOwnProperty(`/${key}`) || typeof key === "number") {
key = "*";
}
// check if rules have key
if (_rules.hasOwnProperty(`/${key}`)) {
const rule = _rules[`/${key}`];
if (Array.isArray(rule)) {
return rule;
}
_rules = typeof rule === "function" ? rule() : rule;
}
else {
return allUnclassified;
}
}
return allUnclassified;
};
export const classifyDiff = (diff, rules = {}) => {
import { getRules } from "./utils";
export const classifyDiff = (diff, source, rules = {}) => {
const _diff = diff;
const classifier = findClassifier(rules, diff.path);
const rule = getRules(rules, [...diff.path, ""], source);
const classifier = Array.isArray(rule) ? rule : allUnclassified;
const index = ["add", "remove", "replace"].indexOf(diff.action);

@@ -33,2 +14,2 @@ const changeType = classifier[index];

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xhc3NpZmllci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jbGFzc2lmaWVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxhQUFhLENBQUE7QUFFN0MsTUFBTSxDQUFDLE1BQU0sY0FBYyxHQUFHLENBQUMsS0FBWSxFQUFFLElBQWEsRUFBYyxFQUFFO0lBQ3hFLElBQUksTUFBTSxHQUFHLEtBQUssQ0FBQTtJQUNsQixLQUFLLElBQUksR0FBRyxJQUFJLENBQUMsR0FBRyxJQUFJLEVBQUUsRUFBRSxDQUFDLEVBQUU7UUFDN0IscURBQXFEO1FBQ3JELElBQUksQ0FBQyxNQUFNLENBQUMsY0FBYyxDQUFDLElBQUksR0FBRyxFQUFFLENBQUMsSUFBSSxPQUFPLEdBQUcsS0FBSyxRQUFRLEVBQUU7WUFDaEUsR0FBRyxHQUFHLEdBQUcsQ0FBQTtTQUNWO1FBRUQsMEJBQTBCO1FBQzFCLElBQUksTUFBTSxDQUFDLGNBQWMsQ0FBQyxJQUFJLEdBQUcsRUFBRSxDQUFDLEVBQUU7WUFDcEMsTUFBT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tJQUVkLE9BQU8sS0FBSyxDQUFBO0FBQ2QsQ0FBQyxDQUFBIn0=
import { CompareContext } from "./context";
import { getPathRuleMeta, typeOf } from "./utils";
import { DiffAction } from "./constants";
import { typeOf } from "./utils";
export const apiDiff = (before, after, options) => {

@@ -36,3 +36,3 @@ const res = compare(before, after, new CompareContext(before, after, options));

const afterKeys = new Set(Object.keys(_after));
const meta = ctx.rules && getPathRuleMeta(ctx.rules, objPath);
const meta = ctx.getPathRuleMeta(objPath);
for (const key of beforeKeys) {

@@ -68,3 +68,3 @@ const afterKey = [...afterKeys].find((k) => k === key || ((meta === null || meta === void 0 ? void 0 : meta.matchKeysFunc) && meta.matchKeysFunc(key, k)));

}
const meta = ctx.rules && getPathRuleMeta(ctx.rules, objPath);
const meta = ctx.getPathRuleMeta(objPath);
if (!ctx.strictArrays && !(meta === null || meta === void 0 ? void 0 : meta.matchItemsFunc)) {

@@ -172,2 +172,2 @@ return compareEnums(before, after, ctx, objPath);

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

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

import { Classifier } from "./types";
import { Rule } from "./types";
export declare const RuleMetaKey: unique symbol;

@@ -16,7 +16,7 @@ export declare const DIFF_META_KEY = "$diff";

export declare const breaking: ClassifierType, nonBreaking: ClassifierType, unclassified: ClassifierType, annotation: ClassifierType;
export declare const allNonBreaking: Classifier;
export declare const allBreaking: Classifier;
export declare const onlyAddBreaking: Classifier;
export declare const addNonBreaking: Classifier;
export declare const allUnclassified: Classifier;
export declare const allAnnotation: Classifier;
export declare const allNonBreaking: Rule;
export declare const allBreaking: Rule;
export declare const onlyAddBreaking: Rule;
export declare const addNonBreaking: Rule;
export declare const allUnclassified: Rule;
export declare const allAnnotation: Rule;

@@ -24,2 +24,2 @@ export const RuleMetaKey = Symbol("rule");

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

@@ -8,3 +8,3 @@ import { Diff, ObjPath, UnclassifiedDiff, CompareOptions, Rules } from "./types";

after: any;
rules?: Rules;
rules: Rules;
beforeRefs: Set<string>;

@@ -19,2 +19,3 @@ afterRefs: Set<string>;

normalizeString(value: string): string;
getPathRuleMeta(path: ObjPath): import("./types").RulesMeta | undefined;
dereference(before: any, after: any, objPath: ObjPath): [any, any, () => void];

@@ -21,0 +22,0 @@ private getBaseRules;

import { asyncApi2Rules, jsonSchemaRules, openapi3Rules } from "./rules";
import { buildPath, getPathRuleMeta } from "./utils";
import { dereference } from "./dereference";
import { classifyDiff } from "./classifier";
import { buildPath } from "./utils";
export class CompareContext {

@@ -14,3 +14,3 @@ // public circularRef?: boolean

this.afterCache = new Map();
this.rules = typeof options.rules === "string" ? this.getBaseRules(options.rules) : options.rules;
this.rules = typeof options.rules === "string" ? this.getBaseRules(options.rules) : options.rules || {};
this.trimStrings = options.trimStrings;

@@ -31,2 +31,5 @@ this.caseSensitive = options.caseSensitive;

}
getPathRuleMeta(path) {
return getPathRuleMeta(this.rules, path, this.before);
}
dereference(before, after, objPath) {

@@ -65,3 +68,3 @@ const ref = "#" + buildPath(objPath);

const result = {
diffs: [classifyDiff(diff, this.rules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ENBQUMsWUFBWSxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsTUFBTSxFQUFFLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztTQUNyRCxDQUFBO1FBQ0QsT0FBTyxNQUFXLENBQUE7SUFDcEIsQ0FBQztJQUVNLFdBQVcsQ0FBQyxJQUFtQixFQUFFLElBQW1CO1FBQ3pELElBQUksQ0FBQyxLQUFLLEdBQUcsQ0FBQyxHQUFHLElBQUksQ0FBQyxLQUFLLEVBQUUsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUE7SUFDN0MsQ0FBQztDQUNGIn0=

@@ -30,4 +30,4 @@ import { CompareContext } from "./context";

const result = {
diffs: [classifyDiff(diff, this.rules)],
diff: classifyDiff(diff, this.rules),
diffs: [classifyDiff(diff, this.before, this.rules)],
diff: classifyDiff(diff, this.before, this.rules),
path: diff.path

@@ -70,2 +70,2 @@ };

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

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

import { Classifier, Rules } from "../types";
export declare const jsonSchemaRules: (rootRule?: Classifier) => Rules;
import { Rule, Rules } from "../types";
export declare const jsonSchemaRules: (rootRule?: Rule) => Rules;

@@ -101,2 +101,2 @@ import { breakingIf, breakingIfAfterTrue } from "../utils";

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

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

import { allAnnotation, allBreaking, allUnclassified, addNonBreaking, breaking, nonBreaking } from "../constants";
import { enumRules } from "../utils";
import { allAnnotation, allBreaking, allUnclassified, unclassified, addNonBreaking, breaking, nonBreaking } from "../constants";
import { breakingIfAfterTrue, enumRules, objArray } from "../utils";
import { jsonSchemaRules } from ".";

@@ -9,48 +9,45 @@ const childrenArray = (rules) => enumRules(rules, (b, a) => {

}
const beforePath = (_a = b.data.path) === null || _a === void 0 ? void 0 : _a.replace(new RegExp("\{.*?\}", "g"), "*");
const afterPath = (_b = a.data.path) === null || _b === void 0 ? void 0 : _b.replace(new RegExp("\{.*?\}", "g"), "*");
return beforePath === afterPath && b.data.method === a.data.method;
if (a.type === "model") {
return a.name === b.name;
}
else {
const beforePath = (_a = b.data.path) === null || _a === void 0 ? void 0 : _a.replace(new RegExp("\{.*?\}", "g"), "*");
const afterPath = (_b = a.data.path) === null || _b === void 0 ? void 0 : _b.replace(new RegExp("\{.*?\}", "g"), "*");
return beforePath === afterPath && b.data.method === a.data.method;
}
});
const contentArray = (rules) => enumRules(rules, (b, a) => {
return a.mediaType === b.mediaType;
});
const paramRules = {
'/name': allUnclassified,
'/name': [nonBreaking, breaking, breaking],
'/style': allUnclassified,
'/description': allAnnotation,
'/explode': allUnclassified,
'/required': allUnclassified,
'/deprecated': allUnclassified,
'/required': [breaking, nonBreaking, breakingIfAfterTrue],
'/deprecated': [breaking, nonBreaking, breakingIfAfterTrue],
};
const contentRules = {
'/': allUnclassified,
'/mediaType': allUnclassified,
'/schema': jsonSchemaRules(allUnclassified),
'/examples': allAnnotation,
'/encodings': allUnclassified
const paramsRules = {
'/': [nonBreaking, breaking, breaking],
'/*': paramRules
};
const contentsRules = {
'/': addNonBreaking,
'/*': {
'/': [nonBreaking, breaking, breaking],
'/mediaType': [nonBreaking, breaking, breaking],
'/schema': jsonSchemaRules(allBreaking),
'/examples': allAnnotation,
'/encodings': [nonBreaking, breaking, breaking],
}
};
const requestRules = {
'/path': {
'/': allUnclassified,
'/*': paramRules,
},
'/query': {
'/': allUnclassified,
'/*': Object.assign(Object.assign({}, paramRules), { '/allowEmptyValue': allUnclassified, '/allowReserved': allUnclassified }),
},
'/headers': {
'/': allUnclassified,
'/*': paramRules
},
'/cookie': {
'/': allUnclassified,
'/*': paramRules
},
'/path': objArray("name", paramsRules),
'/query': objArray("name", {
'/': [nonBreaking, breaking, breaking],
'/*': Object.assign(Object.assign({}, paramRules), { '/allowEmptyValue': [breaking, nonBreaking, breakingIfAfterTrue], '/allowReserved': [breaking, nonBreaking, breakingIfAfterTrue] }),
}),
'/headers': objArray("name", paramsRules),
'/cookie': objArray("name", paramsRules),
'/body': {
'/': allUnclassified,
'/contents': contentArray({
'/': allUnclassified,
'/*': contentRules
}),
'/required': allUnclassified,
'/': [nonBreaking, breaking, breaking],
'/contents': objArray("mediaType", contentsRules),
'/required': [breaking, nonBreaking, breakingIfAfterTrue],
'/description': allAnnotation

@@ -62,55 +59,70 @@ },

'/*': {
'/name': allUnclassified,
'/name': [nonBreaking, breaking, breaking],
'/style': allUnclassified,
'/description': allAnnotation,
'/explode': allUnclassified,
'/required': allUnclassified,
'/deprecated': allUnclassified,
'/required': [breaking, nonBreaking, breakingIfAfterTrue],
'/deprecated': [breaking, nonBreaking, breakingIfAfterTrue],
}
};
const responseRules = {
'/code': allUnclassified,
'/contents': contentArray({
'/': allUnclassified,
'/*': contentRules,
}),
'/headers': headersRules,
'/description': allAnnotation
const responsesRules = {
"/": addNonBreaking,
"/*": {
"/": addNonBreaking,
'/code': allUnclassified,
'/contents': objArray("mediaType", contentsRules),
'/headers': objArray("name", headersRules),
'/description': allAnnotation
}
};
const serverRules = {
'/url': allUnclassified,
'/name': allUnclassified,
'/': [nonBreaking, breaking, breaking],
'/url': [nonBreaking, breaking, breaking],
'/name': allAnnotation,
'/description': allAnnotation,
'/variables': allUnclassified,
'/variables': [nonBreaking, breaking, breaking],
};
const securityRules = {
"/": [breaking, nonBreaking, unclassified],
"/*": [breaking, nonBreaking, unclassified],
};
const modelRules = {
'/': [nonBreaking, breaking, breaking],
'/data': () => jsonSchemaRules(addNonBreaking),
'/*': allAnnotation,
};
const operationRules = {
// Node common
'/id': allAnnotation,
'/iid': allAnnotation,
'/tags': allAnnotation,
'/summary': allAnnotation,
'/description': allAnnotation,
// Operation
'/method': allBreaking,
'/path': allBreaking,
'/request': requestRules,
'/responses': responseRules,
'/servers': {
'/': allUnclassified,
'/*': serverRules
},
'/callbacks': childrenArray({
'/callbackName': allUnclassified,
'/method': allUnclassified,
'/path': allUnclassified,
'/': [nonBreaking, breaking, breaking],
'/data': {
// Node common
'/id': allAnnotation,
'/iid': allAnnotation,
'/tags': allAnnotation,
'/summary': allAnnotation,
'/description': allAnnotation,
// Operation
'/method': [nonBreaking, breaking, breaking],
'/path': [nonBreaking, breaking, breaking],
'/request': requestRules,
'/responses': responseRules,
'/deprecated': allUnclassified,
'/responses': objArray("code", responsesRules),
'/servers': {
'/': allUnclassified,
'/*': serverRules
},
'/callbacks': childrenArray({
'/callbackName': allAnnotation,
'/method': [nonBreaking, breaking, breaking],
'/path': [nonBreaking, breaking, breaking],
'/request': requestRules,
'/responses': objArray("code", responsesRules),
'/deprecated': allUnclassified,
'/internal': allUnclassified,
'/extensions': allUnclassified,
}),
'/security': securityRules,
'/deprecated': [breaking, nonBreaking, breakingIfAfterTrue],
'/internal': allUnclassified,
'/extensions': allUnclassified,
}),
'/security': allUnclassified,
'/deprecated': allUnclassified,
'/internal': allUnclassified,
'/extensions': allUnclassified
'/extensions': allUnclassified
},
'/*': allAnnotation,
};

@@ -128,10 +140,10 @@ const serviceRules = {

'/servers': {
'/': allUnclassified,
'/': [nonBreaking, breaking, breaking],
'/*': serverRules
},
'/security': allUnclassified,
'/securitySchemes': allUnclassified,
'/termsOfService': allUnclassified,
'/security': securityRules,
'/securitySchemes': [breaking, nonBreaking, breaking],
'/termsOfService': allAnnotation,
'/contact': allAnnotation,
'/license': allUnclassified,
'/license': [breaking, breaking, breaking],
'/logo': allAnnotation

@@ -144,7 +156,3 @@ };

'/': [nonBreaking, breaking, breaking],
'/*': {
'/': [nonBreaking, breaking, breaking],
'/data': operationRules,
'/*': allAnnotation,
}
'/*': ({ type }) => type === "model" ? modelRules : operationRules,
}),

@@ -159,2 +167,2 @@ "/components": {

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

@@ -17,4 +17,4 @@ export declare type ObjPath = Array<string | number>;

export declare type DiffTypeFunc = (before: any, after: any) => DiffType;
export declare type Classifier = [AddDiffType, RemoveDiffType, ReplaceDiffType];
export declare type RulesRef = () => Rules;
export declare type Rule = [AddDiffType, RemoveDiffType, ReplaceDiffType];
export declare type RulesRef = (b: any) => Rules;
export declare type MatchFunc = (b: any, a: any) => boolean;

@@ -26,5 +26,5 @@ export declare type RulesMeta = {

export declare type Rules = {
[key: `/${string}`]: Classifier | Rules | RulesRef;
[key: `/${string}`]: Rule | Rules | RulesRef;
} & {
"/"?: Classifier;
"/"?: Rule;
} & {

@@ -31,0 +31,0 @@ [meta: symbol]: RulesMeta;

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

import { RulesMeta, MatchFunc, Rules, DiffType, ObjPath } from "./types";
import { Rule, RulesMeta, MatchFunc, Rules, DiffType, ObjPath } from "./types";
export declare const breakingIf: (v: boolean) => DiffType;

@@ -7,5 +7,7 @@ export declare const breakingIfAfterTrue: (_: any, a: any) => DiffType;

export declare const buildPath: (path: ObjPath) => string;
export declare const getPathRuleMeta: (rules: Rules, path: ObjPath) => RulesMeta | undefined;
export declare const getRules: (rules: Rules, path: ObjPath, source: any) => Rules | Rule | undefined;
export declare const getPathRuleMeta: (rules: Rules, path: ObjPath, source: any) => RulesMeta | undefined;
export declare const findExternalRefs: (source: any | any[]) => string[];
export declare const enumRules: (rules: Rules, matchItemsFunc: MatchFunc) => Rules;
export declare const objArray: (key: string, rules: Rules) => Rules;
export declare const mapRules: (rules: Rules, matchKeysFunc: MatchFunc) => Rules;

@@ -17,5 +17,7 @@ import { breaking, nonBreaking, RuleMetaKey } from "./constants";

};
export const getPathRuleMeta = (rules, path) => {
export const getRules = (rules, path, source) => {
let _rules = rules;
let value = source;
for (let key of [...path]) {
value = (key !== undefined && value !== undefined) ? value[key] : undefined;
// check if rules dont have key of key is array index

@@ -29,5 +31,5 @@ if (!_rules.hasOwnProperty(`/${key}`) || typeof key === "number") {

if (Array.isArray(rule)) {
return undefined;
return rule;
}
_rules = typeof rule === "function" ? rule() : rule;
_rules = typeof rule === "function" ? rule(value) : rule;
}

@@ -38,4 +40,11 @@ else {

}
return _rules[RuleMetaKey];
return _rules;
};
export const getPathRuleMeta = (rules, path, source) => {
const _rules = getRules(rules, path, source);
if (_rules && !Array.isArray(_rules) && RuleMetaKey in _rules) {
return _rules[RuleMetaKey];
}
return undefined;
};
export const findExternalRefs = (source) => {

@@ -72,2 +81,6 @@ if (typeof source !== "object") {

};
export const objArray = (key, rules) => {
rules[RuleMetaKey] = { matchKeysFunc: (b, a) => a[key] === b[key] };
return rules;
};
export const mapRules = (rules, matchKeysFunc) => {

@@ -77,2 +90,2 @@ rules[RuleMetaKey] = { matchKeysFunc };

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFFBQVEsRUFBRSxXQUFXLEVBQUUsV0FBVyxFQUFFLE1BQU0sYUFBYSxDQUFBO0FBRWhFLE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRyxDQUFDLENBQVUsRUFBWSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsV0FBVyxDQUFDLENBQUE7QUFDaEYsTUFBTSxDQUFDLE1BQU0sbUJBQW1CLEdBQUcsQ0FBQyxDQUFNLEVBQUUsQ0FBTSxFQUFZLEVBQUUsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUE7QUFFOUUsTUFBTSxDQUFDLE1BQU0sTUFBTSxHQUFHLENBQUMsS0FBVSxFQUFFLEVBQUU7SUFDbkMsSUFBSSxLQUFLLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQy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kFBZ0IsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUE7aUJBQzVEO2FBQ0Y7U0FDRjtLQUNGO0lBQ0QsT0FBTyxDQUFDLEdBQUcsSUFBSSxDQUFDLENBQUE7QUFDbEIsQ0FBQyxDQUFBO0FBRUQsTUFBTSxDQUFDLE1BQU0sU0FBUyxHQUFHLENBQUMsS0FBWSxFQUFFLGNBQXlCLEVBQVMsRUFBRTtJQUMxRSxLQUFLLENBQUMsV0FBVyxDQUFDLEdBQUcsRUFBRSxjQUFjLEVBQUUsQ0FBQTtJQUN2QyxPQUFPLEtBQUssQ0FBQTtBQUNkLENBQUMsQ0FBQTtBQUVELE1BQU0sQ0FBQyxNQUFNLFFBQVEsR0FBRyxDQUFDLEdBQVcsRUFBRSxLQUFZLEVBQVMsRUFBRTtJQUMzRCxLQUFLLENBQUMsV0FBVyxDQUFDLEdBQUcsRUFBRSxhQUFhLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUE7SUFDbkUsT0FBTyxLQUFLLENBQUE7QUFDZCxDQUFDLENBQUE7QUFFRCxNQUFNLENBQUMsTUFBTSxRQUFRLEdBQUcsQ0FBQyxLQUFZLEVBQUUsYUFBd0IsRUFBUyxFQUFFO0lBQ3hFLEtBQUssQ0FBQyxXQUFXLENBQUMsR0FBRyxFQUFFLGFBQWEsRUFBRSxDQUFBO0lBQ3RDLE9BQU8sS0FBSyxDQUFBO0FBQ2QsQ0FBQyxDQUFBIn0=
{
"name": "api-smart-diff",
"version": "0.2.13",
"version": "0.2.14",
"description": "Generate the diff between two API specifications (OpenAPI, AsyncAPI, JsonSchema)",

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

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