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.0 to 0.2.1

4

browser/api-smart-diff.min.js

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

/*! api-smart-diff@0.2.0 */
var ApiSmartDiff=function(a){var i={};function r(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return a[e].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=a,r.c=i,r.d=function(e,n,a){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(n,e){if(1&e&&(n=r(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var i in n)r.d(a,i,function(e){return n[e]}.bind(null,i));return a},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=5)}([function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.breakingIfAfterTrue=a.breakingIf=a.allAnnotation=a.allUnclassified=a.addNonBreaking=a.onlyAddBreaking=a.allBreaking=a.allNonBreaking=a.unclassified=a.annotation=a.nonBreaking=a.breaking=void 0,a.breaking="breaking",a.nonBreaking="non-breaking",a.annotation="annotation",a.unclassified="unclassified",a.allNonBreaking=[a.nonBreaking,a.nonBreaking,a.nonBreaking],a.allBreaking=[a.breaking,a.breaking,a.breaking],a.onlyAddBreaking=[a.breaking,a.nonBreaking,a.nonBreaking],a.addNonBreaking=[a.nonBreaking,a.breaking,a.breaking],a.allUnclassified=[a.unclassified,a.unclassified,a.unclassified],a.allAnnotation=[a.annotation,a.annotation,a.annotation];a.breakingIf=e=>e?a.breaking:a.nonBreaking;a.breakingIfAfterTrue=(e,n)=>(0,a.breakingIf)(n)},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.jsonSchemaRules=void 0;const i=a(0),r=[i.breaking,i.nonBreaking,(e,n)=>(0,i.breakingIf)(e<n)],t=[i.breaking,i.nonBreaking,(e,n)=>(0,i.breakingIf)(n<e)],o=[i.breakingIfAfterTrue,i.nonBreaking,(e,n)=>(0,i.breakingIf)(e<n)],l=[i.breakingIfAfterTrue,i.nonBreaking,i.breakingIfAfterTrue],s=[i.breaking,i.nonBreaking,(e,n)=>(0,i.breakingIf)(!!(e%n))];n.jsonSchemaRules=(e=i.allUnclassified)=>({"/":e,"/title":i.allAnnotation,"/multipleOf":s,"/maximum":r,"/exclusiveMaximum":o,"/minimum":t,"/exclusiveMinimum":o,"/maxLength":r,"/minLength":t,"/pattern":[i.breaking,i.nonBreaking,i.breaking],"/maxItems":r,"/minItems":t,"/uniqueItems":l,"/maxProperties":r,"/minProperties":t,"/required":{"/":i.onlyAddBreaking,"/*":[i.breaking,i.nonBreaking,i.breaking]},"/enum":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":[i.nonBreaking,i.breaking,i.breaking]},"/type":[i.breaking,i.nonBreaking,i.breaking],"/not":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":()=>(0,n.jsonSchemaRules)(i.allBreaking)},"/allOf":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":()=>(0,n.jsonSchemaRules)(i.allBreaking)},"/oneOf":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":()=>(0,n.jsonSchemaRules)(i.addNonBreaking)},"/anyOf":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":()=>(0,n.jsonSchemaRules)(i.addNonBreaking)},"/items":()=>(0,n.jsonSchemaRules)(),"/properties":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":()=>(0,n.jsonSchemaRules)()},"/additionalProperties":{"/":[i.breaking,i.breaking,i.breakingIfAfterTrue],"/*":()=>(0,n.jsonSchemaRules)(i.addNonBreaking)},"/description":i.allAnnotation,"/format":[i.breaking,i.nonBreaking,i.breaking],"/default":[i.nonBreaking,i.breaking,i.breaking],"/nullable":l,"/discriminator":{"/":i.allUnclassified,"/propertyName":i.allUnclassified,"/mapping":i.allUnclassified},"/readOnly":l,"/writeOnly":l,"/example":i.allAnnotation,"/externalDocs":i.allAnnotation,"/deprecated":l,"/xml":{"/":i.allUnclassified,"/name":i.allUnclassified,"/namespace":i.allUnclassified,"/prefix":i.allUnclassified,"/attribute":i.allUnclassified,"/wrapped":i.allUnclassified}})},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ActionType=void 0,(n=n.ActionType||(n.ActionType={})).add="add",n.remove="remove",n.replace="replace"},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.typeOf=void 0;n.typeOf=e=>Array.isArray(e)?"array":null==typeof e?"null":typeof e},function(e,n,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,a,i){void 0===i&&(i=a);var r=Object.getOwnPropertyDescriptor(n,a);r&&("get"in r?n.__esModule:!r.writable&&!r.configurable)||(r={enumerable:!0,get:function(){return n[a]}}),Object.defineProperty(e,i,r)}:function(e,n,a,i){e[i=void 0===i?a:i]=n[a]}),r=this&&this.__exportStar||function(e,n){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(n,a)||i(n,e,a)};Object.defineProperty(n,"__esModule",{value:!0}),r(a(10),n),r(a(11),n),r(a(1),n),r(a(0),n)},function(e,n,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,a,i){void 0===i&&(i=a);var r=Object.getOwnPropertyDescriptor(n,a);r&&("get"in r?n.__esModule:!r.writable&&!r.configurable)||(r={enumerable:!0,get:function(){return n[a]}}),Object.defineProperty(e,i,r)}:function(e,n,a,i){e[i=void 0===i?a:i]=n[a]}),r=this&&this.__exportStar||function(e,n){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(n,a)||i(n,e,a)};Object.defineProperty(n,"__esModule",{value:!0}),r(a(6),n),r(a(4),n),r(a(2),n)},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.apiDiff=void 0;const s=a(2),t=a(7),g=a(8),i=a(9),r=a(3);n.apiDiff=(e,n,a)=>k(e,n,new i.DiffContext(e,n,a));const k=(e,n,a,i=[])=>{if((0,r.typeOf)(e)!==(0,r.typeOf)(n))return[(0,g.classifyDiff)({path:i,before:e,after:n,action:s.ActionType.replace},a.rules)];switch((0,r.typeOf)(e)){case"string":return l(e,n,a,i);case"object":return f(e,n,a,i);case"array":return d(e,n,a,i);default:return e!==n?[(0,g.classifyDiff)({path:i,before:e,after:n,action:s.ActionType.replace},a.rules)]:[]}},o=(e,n)=>(e=n.trimStrings?e.trim():e,e=n.caseSensitive?e:e.toLowerCase()),l=(e,n,a,i)=>(e=o(e,a))!==(n=o(n,a))?[(0,g.classifyDiff)({path:i,before:e,after:n,action:s.ActionType.replace},a.rules)]:[],c=(e,n,a,i)=>{var r;return e.hasOwnProperty("$ref")&&(r=e.$ref,a.has(r)&&(e={$circularRef:r}),e=(0,t.dereference)(r,n,i),a.add(r)),e},f=(e,n,a,i)=>{const r=[],t=c(e,a.before,a.beforeRefs,a.cache),o=c(n,a.after,a.afterRefs,a.cache);for(const l of new Set([...Object.keys(t),...Object.keys(o)]))if("symbol"!=typeof l&&(t.hasOwnProperty(l)?o.hasOwnProperty(l)?r.push(...k(t[l],o[l],a,[...i,l])):r.push((0,g.classifyDiff)({path:[...i,l],before:t[l],action:s.ActionType.remove},a.rules)):r.push((0,g.classifyDiff)({path:[...i,l],after:o[l],action:s.ActionType.add},a.rules)),a.findFirstDiff&&r.length))break;return e.$ref&&a.beforeRefs.delete(e.$ref),n.$ref&&a.afterRefs.delete(n.$ref),r},d=(n,a,i,r)=>{const t=[],o=[...a];for(let e=0;e<n.length;e++){var l;if(i.strictArrays?e>=a.length?t.push((0,g.classifyDiff)({path:[...r,e],before:n[e],action:s.ActionType.remove},i.rules)):t.push(...k(n[e],a[e],i,[...r,e])):0<=(l=((n,a,i)=>{for(let e=0;e<a.length;e++){i.findFirstDiff=!0;var r=k(n,a[e],i);if(i.findFirstDiff=!1,!r.length)return e}return-1})(n[e],o,i))?o.splice(l,1):t.push((0,g.classifyDiff)({path:[...r,e],before:n[e],action:s.ActionType.remove},i.rules)),i.findFirstDiff&&t.length)break}i.strictArrays&&o.splice(0,n.length);for(let e=0;e<o.length;e++)t.push((0,g.classifyDiff)({path:[...r,n.length+e],after:o[e],action:s.ActionType.add},i.rules));return t}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.dereference=void 0;const s=a(3);n.dereference=(e,n,a)=>{if(a.has(e))return a.get(e);const[i,r]=e.split("#");i&&a.has(i)&&(n=a.get(i));var[,...t]=r.split("/");let o=n;for(const l of t)o="array"===(0,s.typeOf)(o)?o[+l]:o[l];return a.set(e,o),o}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.classifyDiff=r.findClassifier=void 0;const t=n(0);r.findClassifier=(e,n)=>{let a=e;for(var i of[...n,""]){if(a.hasOwnProperty("/"+i)&&"number"!=typeof i||(i="*"),!a.hasOwnProperty("/"+i))return t.allUnclassified;{const r=a["/"+i];if(Array.isArray(r))return r;a="function"==typeof r?r():r}}return t.allUnclassified};r.classifyDiff=(e,n={})=>{const a=e;const i=(0,r.findClassifier)(n,e.path)[["add","remove","replace"].indexOf(e.action)];return a.type="function"==typeof i?i(e.before,e.after):i,a}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DiffContext=void 0;const i=a(4);n.DiffContext=class{constructor(e,n,a){this.before=e,this.after=n,this.beforeRefs=new Set,this.afterRefs=new Set,this.cache=new Map,this.findFirstDiff=!1,this.rules="string"==typeof a.rules?this.getBaseRules(a.rules):a.rules,this.trimStrings=a.trimStrings,this.caseSensitive=a.caseSensitive,this.strictArrays=a.strictArrays;var i=a.externalRefs||{};for(const r of Object.keys(i))this.cache.set(r,i[r])}getBaseRules(e){switch(e){case"OpenApi3":return i.openapi3Rules;case"AsyncApi2":return i.asyncApi2Rules;case"JsonSchema":return(0,i.jsonSchemaRules)()}}}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.asyncApi2Rules=n.messageRules=n.messageTraitsRules=void 0;const i=a(1);var a=a(0),r={"/":a.addNonBreaking,"/location":a.addNonBreaking,"/description":a.allAnnotation},t={"/summary":a.allAnnotation,"/tags":a.allAnnotation,"/externalDocs":a.allAnnotation,"/bindings":a.allUnclassified},o=Object.assign({"/":a.addNonBreaking,"/*":a.addNonBreaking,"/operationId":a.addNonBreaking,"/description":a.allAnnotation},t),r=(n.messageTraitsRules=Object.assign({"/":a.addNonBreaking,"/*":a.addNonBreaking,"/headers":a.allUnclassified,"/correlationId":r,"/schemaFormat":a.allBreaking,"/contentType":a.addNonBreaking,"/name":a.allNonBreaking,"/title":a.allNonBreaking,"/examples":a.allAnnotation},t),n.messageRules=Object.assign({"/":a.allBreaking,"/headers":a.allUnclassified,"/correlationId":r,"/schemaFormat":a.allBreaking,"/contentType":a.addNonBreaking,"/name":a.allNonBreaking,"/title":a.allNonBreaking,"/description":a.allNonBreaking,"/examples":a.allAnnotation,"/traits":n.messageTraitsRules,"/payload":(0,i.jsonSchemaRules)(a.allBreaking)},t),Object.assign({"/":a.addNonBreaking,"/operationId":a.addNonBreaking,"/description":a.allAnnotation,"/traits":o,"/message":n.messageRules},t)),o={"/":a.addNonBreaking,"/version":a.addNonBreaking,"/termsOfService":a.addNonBreaking,"/license":{"/":a.addNonBreaking,"/name":a.allBreaking,"/url":a.onlyAddBreaking},"/title":a.allAnnotation,"/description":a.allAnnotation,"/contact":{"/":a.allAnnotation,"/name":a.allAnnotation,"/url":a.allAnnotation,"/email":a.allAnnotation}},t={"/":a.addNonBreaking,"/*":{"/":a.addNonBreaking,"/url":a.addNonBreaking,"/description":a.allAnnotation,"/protocol":a.allBreaking,"/protocolVersion":a.allBreaking,"/variables":{"/":a.addNonBreaking,"/*":{"/":a.addNonBreaking,"/enum":{"/":a.addNonBreaking,"/*":a.addNonBreaking},"/default":a.allBreaking,"/description":a.allAnnotation,"/examples":a.allAnnotation}},"/security":{"/":a.allBreaking,"/*":a.allBreaking},"/bindings":a.allUnclassified}},r={"/":a.addNonBreaking,"/description":a.allNonBreaking,"/bindings":a.allUnclassified,"/subscribe":r,"/publish":r,"/parameters":{"/":a.allBreaking,"/*":{"/":a.addNonBreaking,"/description":a.allNonBreaking,"/schema":(0,i.jsonSchemaRules)(a.allBreaking),"/location":a.allBreaking}}};n.asyncApi2Rules={"/asyncapi":a.addNonBreaking,"/id":a.allAnnotation,"/defaultContentType":a.allBreaking,"/info":o,"/servers":t,"/channels":{"/":a.addNonBreaking,"/*":r},"/components":a.allNonBreaking,"/tags":a.allAnnotation,"/externalDocs":a.allAnnotation}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.openapi3Rules=void 0;const i=a(1),r=a(0);var a={"/":[r.nonBreaking,r.breaking,r.breaking],"/*":{"/":[r.nonBreaking,r.breaking,r.breaking],"/url":[r.nonBreaking,r.breaking,r.breaking],"/description":r.allAnnotation,"/variables":{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":{"/":[r.nonBreaking,r.breaking,r.breaking],"/enum":{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":[r.nonBreaking,r.breaking,r.breaking]},"/default":[r.breaking,r.breaking,r.breaking],"/description":r.allAnnotation}}}},t={"/":[r.nonBreaking,r.breaking,r.breaking],"/*":{"/":[r.nonBreaking,r.breaking,r.breaking],"/name":[r.nonBreaking,r.breaking,r.breaking],"/in":[r.nonBreaking,r.breaking,r.breaking],"/description":r.allAnnotation,"/required":[r.breaking,r.nonBreaking,r.breakingIfAfterTrue],"/deprecated":[r.breaking,r.nonBreaking,r.breakingIfAfterTrue]}},o={"/":[r.nonBreaking,r.breaking,r.breaking],"/*":{"/":[r.nonBreaking,r.breaking,r.breaking],"/description":r.allAnnotation,"/required":[r.breaking,r.nonBreaking,r.breakingIfAfterTrue],"/deprecated":[r.breaking,r.nonBreaking,r.breakingIfAfterTrue]}},l={"/":[r.nonBreaking,r.nonBreaking,r.nonBreaking],"/*":{"/contentType":[r.nonBreaking,r.breaking,r.breaking],"/headers":o,"/style":[r.nonBreaking,r.breaking,r.breaking],"/explode":[r.nonBreaking,r.breaking,r.breaking],"/allowReserved":[r.nonBreaking,r.breaking,r.breaking]}},l={"/":[r.nonBreaking,r.breaking,r.breaking],"/*":{"/":[r.nonBreaking,r.breaking,r.breaking],"*":{"/schema":(0,i.jsonSchemaRules)(r.allBreaking),"/example":r.allAnnotation,"/examples":r.allAnnotation,"/encoding":l}}},s={"/":[r.nonBreaking,r.breaking,r.breaking],"/*":{"/":[r.nonBreaking,r.breaking,r.breaking],"/description":r.allAnnotation,"/content":l,"/required":[r.breaking,r.nonBreaking,(e,n)=>n?r.breaking:r.nonBreaking]}},l={"/":[r.nonBreaking,r.breaking,r.breaking],"/*":{"/":[r.nonBreaking,r.breaking,r.breaking],"/description":r.allAnnotation,"/headers":o,"/content":l}},g={"/":[r.breaking,r.nonBreaking,r.unclassified],"/*":[r.breaking,r.nonBreaking,r.unclassified]},k={"/tags":r.allAnnotation,"/summary":r.allAnnotation,"/description":r.allAnnotation,"/externalDocs":r.allAnnotation,"/operationId":[r.nonBreaking,r.breaking,r.breaking],"/parameters":t,"/requestBody":s,"/responses":l,"/deprecated":[r.breaking,r.nonBreaking,r.breakingIfAfterTrue],"/security":g,"/servers":a};n.openapi3Rules={"/openapi":[r.nonBreaking,r.breaking,r.breaking],"/info":{"/":[r.nonBreaking,r.breaking,r.breaking],"/title":r.allAnnotation,"/description":r.allAnnotation,"/termsOfService":r.allAnnotation,"/contact":r.allAnnotation,"/licence":{"/":[r.nonBreaking,r.breaking,r.breaking],"/name":[r.breaking,r.breaking,r.breaking],"/url":[r.breaking,r.nonBreaking,r.nonBreaking]},"/version":r.allAnnotation},"/servers":a,"/paths":{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":{"/":[r.nonBreaking,r.breaking,r.breaking],"/summary":r.allAnnotation,"/description":r.allAnnotation,"/*":{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":k},"/servers":a,"/parameters":t}},"/components":{"/":[r.nonBreaking,r.nonBreaking,r.nonBreaking],"/schemas":{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":(0,i.jsonSchemaRules)(r.addNonBreaking)},"/responses":l,"/parameters":t,"/examples":r.allAnnotation,"/requestBodies":{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":s},"/headers":o,"/securitySchemes":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":{"/":[r.breaking,r.nonBreaking,r.breaking],"/type":[r.breaking,r.nonBreaking,r.breaking],"/description":r.allAnnotation,"/name":[r.breaking,r.nonBreaking,r.breaking],"/in":[r.breaking,r.nonBreaking,r.breaking],"/scheme":[r.breaking,r.nonBreaking,r.breaking],"/bearerFormat":r.allAnnotation,"/flows":[r.breaking,r.nonBreaking,r.breaking],"/openIdConnectUrl":r.allAnnotation}}},"/security":g,"/tags":r.allAnnotation,"/externalDocs":r.allAnnotation}}]);
/*! api-smart-diff@0.2.1 */
var ApiSmartDiff=function(a){var r={};function i(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return a[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=a,i.c=r,i.d=function(e,n,a){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:a})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(n,e){if(1&e&&(n=i(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)i.d(a,r,function(e){return n[e]}.bind(null,r));return a},i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="",i(i.s=5)}([function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.breakingIfAfterTrue=a.breakingIf=a.allAnnotation=a.allUnclassified=a.addNonBreaking=a.onlyAddBreaking=a.allBreaking=a.allNonBreaking=a.unclassified=a.annotation=a.nonBreaking=a.breaking=void 0,a.breaking="breaking",a.nonBreaking="non-breaking",a.annotation="annotation",a.unclassified="unclassified",a.allNonBreaking=[a.nonBreaking,a.nonBreaking,a.nonBreaking],a.allBreaking=[a.breaking,a.breaking,a.breaking],a.onlyAddBreaking=[a.breaking,a.nonBreaking,a.nonBreaking],a.addNonBreaking=[a.nonBreaking,a.breaking,a.breaking],a.allUnclassified=[a.unclassified,a.unclassified,a.unclassified],a.allAnnotation=[a.annotation,a.annotation,a.annotation];a.breakingIf=e=>e?a.breaking:a.nonBreaking;a.breakingIfAfterTrue=(e,n)=>(0,a.breakingIf)(n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findExternalRefs=t.buildPath=t.parsePath=t.typeOf=void 0;t.typeOf=e=>Array.isArray(e)?"array":null==typeof e?"null":typeof e,t.parsePath=e=>{var[,...e]=e.split("/").map(e=>e.replace(new RegExp("~1","g"),"/"));return e},t.buildPath=e=>"/"+e.map(e=>String(e).replace(new RegExp("/","g"),"~1")).join("/");t.findExternalRefs=e=>{if("object"!=typeof e)return[];let n=new Set;if("array"===(0,t.typeOf)(e))for(const r of e)"object"==typeof r&&(n=new Set([...n,...(0,t.findExternalRefs)(r)]));else for(const i of Object.keys(e)){var a;"$ref"===i?([a]=e[i].split("#"),n.add(a)):"object"==typeof e[i]&&(n=new Set([...n,...(0,t.findExternalRefs)(e[i])]))}return[...n]}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.jsonSchemaRules=void 0;const r=a(0),i=[r.breaking,r.nonBreaking,(e,n)=>(0,r.breakingIf)(n<e)],t=[r.breaking,r.nonBreaking,(e,n)=>(0,r.breakingIf)(e<n)],o=[r.breakingIfAfterTrue,r.nonBreaking,r.breakingIfAfterTrue],l=[r.breakingIfAfterTrue,r.nonBreaking,r.breakingIfAfterTrue],s=[r.breaking,r.nonBreaking,(e,n)=>(0,r.breakingIf)(!!(e%n))];n.jsonSchemaRules=(e=r.allUnclassified)=>({"/":e,"/title":r.allAnnotation,"/multipleOf":s,"/maximum":i,"/exclusiveMaximum":o,"/minimum":t,"/exclusiveMinimum":o,"/maxLength":i,"/minLength":t,"/pattern":[r.breaking,r.nonBreaking,r.breaking],"/maxItems":i,"/minItems":t,"/uniqueItems":l,"/maxProperties":i,"/minProperties":t,"/required":{"/":r.onlyAddBreaking,"/*":[r.breaking,r.nonBreaking,r.breaking]},"/enum":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":[r.nonBreaking,r.breaking,r.breaking]},"/type":[r.breaking,r.nonBreaking,r.breaking],"/not":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>(0,n.jsonSchemaRules)(r.allBreaking)},"/allOf":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>(0,n.jsonSchemaRules)(r.allBreaking)},"/oneOf":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>(0,n.jsonSchemaRules)(r.addNonBreaking)},"/anyOf":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>(0,n.jsonSchemaRules)(r.addNonBreaking)},"/items":()=>(0,n.jsonSchemaRules)(r.addNonBreaking),"/properties":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>(0,n.jsonSchemaRules)(r.addNonBreaking)},"/additionalProperties":()=>(0,n.jsonSchemaRules)([r.breaking,r.breaking,r.breakingIfAfterTrue]),"/description":r.allAnnotation,"/format":[r.breaking,r.nonBreaking,r.breaking],"/default":[r.nonBreaking,r.breaking,r.breaking],"/nullable":l,"/discriminator":{"/":r.allUnclassified,"/propertyName":r.allUnclassified,"/mapping":r.allUnclassified},"/readOnly":l,"/writeOnly":l,"/example":r.allAnnotation,"/externalDocs":r.allAnnotation,"/deprecated":l,"/xml":{"/":r.allUnclassified,"/name":r.allUnclassified,"/namespace":r.allUnclassified,"/prefix":r.allUnclassified,"/attribute":r.allUnclassified,"/wrapped":r.allUnclassified}})},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ActionType=void 0,(n=n.ActionType||(n.ActionType={})).add="add",n.remove="remove",n.replace="replace"},function(e,n,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,n,a,r){void 0===r&&(r=a);var i=Object.getOwnPropertyDescriptor(n,a);i&&("get"in i?n.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return n[a]}}),Object.defineProperty(e,r,i)}:function(e,n,a,r){e[r=void 0===r?a:r]=n[a]}),i=this&&this.__exportStar||function(e,n){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(n,a)||r(n,e,a)};Object.defineProperty(n,"__esModule",{value:!0}),i(a(10),n),i(a(11),n),i(a(2),n),i(a(0),n)},function(e,n,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,n,a,r){void 0===r&&(r=a);var i=Object.getOwnPropertyDescriptor(n,a);i&&("get"in i?n.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return n[a]}}),Object.defineProperty(e,r,i)}:function(e,n,a,r){e[r=void 0===r?a:r]=n[a]}),i=this&&this.__exportStar||function(e,n){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(n,a)||r(n,e,a)},t=(Object.defineProperty(n,"__esModule",{value:!0}),n.findExternalRefs=void 0,i(a(6),n),i(a(4),n),i(a(3),n),a(1));Object.defineProperty(n,"findExternalRefs",{enumerable:!0,get:function(){return t.findExternalRefs}})},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.apiDiff=void 0;const s=a(3),g=a(7),c=a(8),r=a(9),i=a(1);n.apiDiff=(e,n,a)=>f(e,n,new r.DiffContext(e,n,a));const f=(e,n,a,r=[])=>{if((0,i.typeOf)(e)!==(0,i.typeOf)(n))return[(0,c.classifyDiff)({path:r,before:e,after:n,action:s.ActionType.replace},a.rules)];switch((0,i.typeOf)(e)){case"string":return o(e,n,a,r);case"object":return l(e,n,a,r);case"array":return k(e,n,a,r);default:return e!==n?[(0,c.classifyDiff)({path:r,before:e,after:n,action:s.ActionType.replace},a.rules)]:[]}},t=(e,n)=>(e=n.trimStrings?e.trim():e,e=n.caseSensitive?e:e.toLowerCase()),o=(e,n,a,r)=>(e=t(e,a))!==(n=t(n,a))?[(0,c.classifyDiff)({path:r,before:e,after:n,action:s.ActionType.replace},a.rules)]:[],l=(e,n,a,r)=>{const i=[],t=(0,g.dereference)(e,a.before,a.beforeRefs,a.cache),o=(0,g.dereference)(n,a.after,a.afterRefs,a.cache);for(const l of new Set([...Object.keys(t),...Object.keys(o)]))if("symbol"!=typeof l&&(t.hasOwnProperty(l)?o.hasOwnProperty(l)?i.push(...f(t[l],o[l],a,[...r,l])):i.push((0,c.classifyDiff)({path:[...r,l],before:t[l],action:s.ActionType.remove},a.rules)):i.push((0,c.classifyDiff)({path:[...r,l],after:o[l],action:s.ActionType.add},a.rules)),a.findFirstDiff&&i.length))break;return e.$ref&&a.beforeRefs.delete(e.$ref),n.$ref&&a.afterRefs.delete(n.$ref),i},k=(n,a,r,i)=>{const t=[],o=[...a];for(let e=0;e<n.length;e++){var l;if(r.strictArrays?e>=a.length?t.push((0,c.classifyDiff)({path:[...i,e],before:n[e],action:s.ActionType.remove},r.rules)):t.push(...f(n[e],a[e],r,[...i,e])):0<=(l=((n,a,r)=>{for(let e=0;e<a.length;e++){r.findFirstDiff=!0;var i=f(n,a[e],r);if(r.findFirstDiff=!1,!i.length)return e}return-1})(n[e],o,r))?o.splice(l,1):t.push((0,c.classifyDiff)({path:[...i,e],before:n[e],action:s.ActionType.remove},r.rules)),r.findFirstDiff&&t.length)break}r.strictArrays&&o.splice(0,n.length);for(let e=0;e<o.length;e++)t.push((0,c.classifyDiff)({path:[...i,n.length+e],after:o[e],action:s.ActionType.add},r.rules));return t}},function(e,s,n){"use strict";var g=this&&this.__rest||function(e,n){var a={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(a[i[r]]=e[i[r]]);return a};Object.defineProperty(s,"__esModule",{value:!0}),s.dereference=s.resolveObjValue=void 0;const t=n(1);s.resolveObjValue=(e,n,a={})=>{let r=e;a=new Map(Object.entries(a));for(const i of(0,t.parsePath)(n)){if(void 0===(r="array"===(0,t.typeOf)(r)?r[+i]:r[i]))break;r=(0,s.dereference)(r,e,new Set,a)}return r};s.dereference=(e,n,a,r)=>{if(e.hasOwnProperty("$ref")){const o=e["$ref"],l=g(e,["$ref"]);a.has(o)&&(e={$circularRef:o});var[i,t]=o.split("#");if(i){if(!r.has(i))return e;n=r.get(i)}e=Object.assign(Object.assign({},l),(0,s.resolveObjValue)(n,t)),a.add(o)}return e}},function(e,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.classifyDiff=i.findClassifier=void 0;const t=n(0);i.findClassifier=(e,n)=>{let a=e;for(var r of[...n,""]){if(a.hasOwnProperty("/"+r)&&"number"!=typeof r||(r="*"),!a.hasOwnProperty("/"+r))return t.allUnclassified;{const i=a["/"+r];if(Array.isArray(i))return i;a="function"==typeof i?i():i}}return t.allUnclassified};i.classifyDiff=(e,n={})=>{const a=e;const r=(0,i.findClassifier)(n,e.path)[["add","remove","replace"].indexOf(e.action)];return a.type="function"==typeof r?r(e.before,e.after):r,a}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DiffContext=void 0;const r=a(4);n.DiffContext=class{constructor(e,n,a){this.before=e,this.after=n,this.beforeRefs=new Set,this.afterRefs=new Set,this.cache=new Map,this.findFirstDiff=!1,this.rules="string"==typeof a.rules?this.getBaseRules(a.rules):a.rules,this.trimStrings=a.trimStrings,this.caseSensitive=a.caseSensitive,this.strictArrays=a.strictArrays;var r=a.externalRefs||{};for(const i of Object.keys(r))this.cache.set(i,r[i])}getBaseRules(e){switch(e){case"OpenApi3":return r.openapi3Rules;case"AsyncApi2":return r.asyncApi2Rules;case"JsonSchema":return(0,r.jsonSchemaRules)()}}}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.asyncApi2Rules=n.messageRules=n.messageTraitsRules=void 0;const r=a(2);var a=a(0),i={"/":a.addNonBreaking,"/location":a.addNonBreaking,"/description":a.allAnnotation},t={"/summary":a.allAnnotation,"/tags":a.allAnnotation,"/externalDocs":a.allAnnotation,"/bindings":a.allUnclassified},o=Object.assign({"/":a.addNonBreaking,"/*":a.addNonBreaking,"/operationId":a.addNonBreaking,"/description":a.allAnnotation},t),i=(n.messageTraitsRules=Object.assign({"/":a.addNonBreaking,"/*":a.addNonBreaking,"/headers":a.allUnclassified,"/correlationId":i,"/schemaFormat":a.allBreaking,"/contentType":a.addNonBreaking,"/name":a.allNonBreaking,"/title":a.allNonBreaking,"/examples":a.allAnnotation},t),n.messageRules=Object.assign({"/":a.allBreaking,"/headers":a.allUnclassified,"/correlationId":i,"/schemaFormat":a.allBreaking,"/contentType":a.addNonBreaking,"/name":a.allNonBreaking,"/title":a.allNonBreaking,"/description":a.allNonBreaking,"/examples":a.allAnnotation,"/traits":n.messageTraitsRules,"/payload":(0,r.jsonSchemaRules)(a.allBreaking)},t),Object.assign({"/":a.addNonBreaking,"/operationId":a.addNonBreaking,"/description":a.allAnnotation,"/traits":o,"/message":n.messageRules},t)),o={"/":a.addNonBreaking,"/version":a.addNonBreaking,"/termsOfService":a.addNonBreaking,"/license":{"/":a.addNonBreaking,"/name":a.allBreaking,"/url":a.onlyAddBreaking},"/title":a.allAnnotation,"/description":a.allAnnotation,"/contact":{"/":a.allAnnotation,"/name":a.allAnnotation,"/url":a.allAnnotation,"/email":a.allAnnotation}},t={"/":a.addNonBreaking,"/*":{"/":a.addNonBreaking,"/url":a.addNonBreaking,"/description":a.allAnnotation,"/protocol":a.allBreaking,"/protocolVersion":a.allBreaking,"/variables":{"/":a.addNonBreaking,"/*":{"/":a.addNonBreaking,"/enum":{"/":a.addNonBreaking,"/*":a.addNonBreaking},"/default":a.allBreaking,"/description":a.allAnnotation,"/examples":a.allAnnotation}},"/security":{"/":a.allBreaking,"/*":a.allBreaking},"/bindings":a.allUnclassified}},i={"/":a.addNonBreaking,"/description":a.allNonBreaking,"/bindings":a.allUnclassified,"/subscribe":i,"/publish":i,"/parameters":{"/":a.allBreaking,"/*":{"/":a.addNonBreaking,"/description":a.allNonBreaking,"/schema":(0,r.jsonSchemaRules)(a.allBreaking),"/location":a.allBreaking}}};n.asyncApi2Rules={"/asyncapi":a.addNonBreaking,"/id":a.allAnnotation,"/defaultContentType":a.allBreaking,"/info":o,"/servers":t,"/channels":{"/":a.addNonBreaking,"/*":i},"/components":a.allNonBreaking,"/tags":a.allAnnotation,"/externalDocs":a.allAnnotation}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.openapi3Rules=void 0;const r=a(2),i=a(0);var a={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/url":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/variables":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/enum":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":[i.nonBreaking,i.breaking,i.breaking]},"/default":[i.breaking,i.breaking,i.breaking],"/description":i.allAnnotation}}}},t={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/name":[i.nonBreaking,i.breaking,i.breaking],"/in":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/required":[i.breaking,i.nonBreaking,i.breakingIfAfterTrue],"/deprecated":[i.breaking,i.nonBreaking,i.breakingIfAfterTrue]}},o={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/required":[i.breaking,i.nonBreaking,i.breakingIfAfterTrue],"/deprecated":[i.breaking,i.nonBreaking,i.breakingIfAfterTrue]}},l={"/":[i.nonBreaking,i.nonBreaking,i.nonBreaking],"/*":{"/contentType":[i.nonBreaking,i.breaking,i.breaking],"/headers":o,"/style":[i.nonBreaking,i.breaking,i.breaking],"/explode":[i.nonBreaking,i.breaking,i.breaking],"/allowReserved":[i.nonBreaking,i.breaking,i.breaking]}},l={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/schema":(0,r.jsonSchemaRules)(i.allBreaking),"/example":i.allAnnotation,"/examples":i.allAnnotation,"/encoding":l}},s={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/content":l,"/required":[i.breaking,i.nonBreaking,(e,n)=>n?i.breaking:i.nonBreaking]}},l={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/headers":o,"/content":l}},g={"/":[i.breaking,i.nonBreaking,i.unclassified],"/*":[i.breaking,i.nonBreaking,i.unclassified]},c={"/":[i.nonBreaking,i.breaking,i.breaking],"/tags":i.allAnnotation,"/summary":i.allAnnotation,"/description":i.allAnnotation,"/externalDocs":i.allAnnotation,"/operationId":[i.nonBreaking,i.breaking,i.breaking],"/parameters":t,"/requestBody":s,"/responses":l,"/deprecated":[i.breaking,i.nonBreaking,i.breakingIfAfterTrue],"/security":g,"/servers":a};n.openapi3Rules={"/openapi":[i.nonBreaking,i.breaking,i.breaking],"/info":{"/":[i.nonBreaking,i.breaking,i.breaking],"/title":i.allAnnotation,"/description":i.allAnnotation,"/termsOfService":i.allAnnotation,"/contact":i.allAnnotation,"/licence":{"/":[i.nonBreaking,i.breaking,i.breaking],"/name":[i.breaking,i.breaking,i.breaking],"/url":[i.breaking,i.nonBreaking,i.nonBreaking]},"/version":i.allAnnotation},"/servers":a,"/paths":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/summary":i.allAnnotation,"/description":i.allAnnotation,"/*":c,"/servers":a,"/parameters":t}},"/components":{"/":[i.nonBreaking,i.nonBreaking,i.nonBreaking],"/schemas":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":(0,r.jsonSchemaRules)(i.addNonBreaking)},"/responses":l,"/parameters":t,"/examples":i.allAnnotation,"/requestBodies":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":s},"/headers":o,"/securitySchemes":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":{"/":[i.breaking,i.nonBreaking,i.breaking],"/type":[i.breaking,i.nonBreaking,i.breaking],"/description":i.allAnnotation,"/name":[i.breaking,i.nonBreaking,i.breaking],"/in":[i.breaking,i.nonBreaking,i.breaking],"/scheme":[i.breaking,i.nonBreaking,i.breaking],"/bearerFormat":i.allAnnotation,"/flows":[i.breaking,i.nonBreaking,i.breaking],"/openIdConnectUrl":i.allAnnotation}}},"/security":g,"/tags":i.allAnnotation,"/externalDocs":i.allAnnotation}}]);

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

export declare const dereference: (ref: string, obj: any, cache: Map<string, any>) => any;
export declare const resolveObjValue: (obj: any, path: string, cache?: any) => any;
export declare const dereference: (value: any, source: any, refs: Set<string>, cache: Map<string, any>) => any;
"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.dereference = void 0;
exports.dereference = exports.resolveObjValue = void 0;
const utils_1 = require("./utils");
const dereference = (ref, obj, cache) => {
// try to find ref in cache
if (cache.has(ref)) {
return cache.get(ref);
const resolveObjValue = (obj, path, cache = {}) => {
let value = obj;
cache = new Map(Object.entries(cache));
for (const key of (0, utils_1.parsePath)(path)) {
value = (0, utils_1.typeOf)(value) === "array" ? value[+key] : value[key];
if (value === undefined) {
break;
}
value = (0, exports.dereference)(value, obj, new Set(), cache);
}
const [external, path] = ref.split("#");
// resolve external obj
if (external && cache.has(external)) {
obj = cache.get(external);
}
const [_, ...pathArr] = path.split("/");
let _obj = obj;
for (const key of pathArr) {
if ((0, utils_1.typeOf)(_obj) === "array") {
_obj = _obj[+key];
return value;
};
exports.resolveObjValue = resolveObjValue;
const dereference = (value, source, refs, cache) => {
if (value.hasOwnProperty("$ref")) {
const { $ref } = value, rest = __rest(value, ["$ref"]);
if (refs.has($ref)) {
// TODO: handle circular ref
value = { $circularRef: $ref };
}
else {
_obj = _obj[key];
const [external, path] = $ref.split("#");
// resolve external obj
if (external) {
if (!cache.has(external)) {
return value;
}
source = cache.get(external);
}
value = Object.assign(Object.assign({}, rest), (0, exports.resolveObjValue)(source, path));
refs.add($ref);
}
cache.set(ref, _obj);
return _obj;
return value;
};
exports.dereference = dereference;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVyZWZlcmVuY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlc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0sV0FBVyxHQUFHLENBQUMsS0FBVSxFQUFFLE1BQVcsRUFBRSxJQUFpQixFQUFFLEtBQXVCLEVBQU8sRUFBRTtJQUN0RyxJQUFJLEtBQUssQ0FBQyxjQUFjLENBQUMsTUFBTSxDQUFDLEVBQUU7UUFDaEMsTUFBTSxFQUFFLElBQUksS0FBYyxLQUFLLEVBQWQsSUFBSSxVQUFLLEtBQUssRUFBekIsUUFBaUIsQ0FBUSxDQUFBO1FBQy9CLElBQUksSUFBSSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsRUFBRTtZQUNsQiw0QkFBNEI7WUFDNUIsS0FBSyxHQUFHLEVBQUUsWUFBWSxFQUFFLElBQUksRUFBRSxDQUFBO1NBQy9CO1FBQ0QsTUFBTSxDQUFDLFFBQVEsRUFBRSxJQUFJLENBQUMsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFBO1FBRXhDLHdCQUF3QjtRQUN4QixJQUFJLFFBQVEsRUFBRTtZQUNaLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxFQUFFO2dCQUN4QixPQUFPLEtBQUssQ0FBQTthQUNiO1lBQ0QsTUFBTSxHQUFHLEtBQUssQ0FBQyxHQUFHLENBQUMsUUFBUSxDQUFDLENBQUE7U0FDN0I7UUFFRCxLQUFLLG1DQUFRLElBQUksR0FBSyxJQUFBLHVCQUFlLEVBQUMsTUFBTSxFQUFFLElBQUksQ0FBQyxDQUFFLENBQUE7UUFDckQsSUFBSSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQTtLQUNmO0lBQ0QsT0FBTyxLQUFLLENBQUE7QUFDZCxDQUFDLENBQUE7QUFyQlksUUFBQSxXQUFXLGVBcUJ2QiJ9

@@ -40,18 +40,6 @@ "use strict";

};
const normalizeObject = (value, source, refs, cache) => {
if (value.hasOwnProperty("$ref")) {
const ref = value["$ref"];
if (refs.has(ref)) {
// TODO: handle circular ref
value = { $circularRef: ref };
}
value = (0, dereference_1.dereference)(ref, source, cache);
refs.add(ref);
}
return value;
};
const objectsDiff = (before, after, ctx, path) => {
const diffs = [];
const _before = normalizeObject(before, ctx.before, ctx.beforeRefs, ctx.cache);
const _after = normalizeObject(after, ctx.after, ctx.afterRefs, ctx.cache);
const _before = (0, dereference_1.dereference)(before, ctx.before, ctx.beforeRefs, ctx.cache);
const _after = (0, dereference_1.dereference)(after, ctx.after, ctx.afterRefs, ctx.cache);
const keys = new Set([...Object.keys(_before), ...Object.keys(_after)]);

@@ -148,2 +136,2 @@ for (const key of keys) {

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlmZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9kaWZmLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLG1DQUFpRTtBQUNqRSwrQ0FBMkM7QUFDM0MsNkNBQTJDO0FBQzNDLHVDQUF1QztBQUN2QyxtQ0FBZ0M7QUFFekIsTUFBTSxPQUFPLEdBQUcsQ0FBQyxNQUFXLEVBQUUsS0FBVSxFQUFFLE9BQW9CLEVBQVUsRUFBRTtJQUMvRSxPQUFPLFFBQVEsQ0FBQyxNQUFNLEVBQUUsS0FBSyxFQUFFLElBQUkscUJBQVcsQ0FBQyxNQUFNLEVBQUUsS0FBSyxFQUFFLE9BQU8sQ0FBQyxDQUFDLENBQUE7QUFDekUsQ0FBQyxDQUFBO0FBRlksUUFBQSxPQUFPLFdBRW5CO0FBRUQsTUFBTSxRQUFRLEdBQUcsQ0FBQyxNQUFXLEVBQUUsS0FBVSxFQUFFLEdBQWdCLEVBQUUsT0FBaUIsRUFBRSxFQUFVLEVBQUU7SUFDMUYsSUFBSSxJQUFBLGNBQU0sRUFBQyxNQUFNLENBQUMsS0FBSyxJQUFBLGNBQU0sRUFBQyxLQUFLLENBQUMsRUFBRTtRQUNw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RUQsSUFBSSxHQUFHLENBQUMsWUFBWSxFQUFFO1FBQ3BCLE1BQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQTtLQUNoQztJQUVELEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxNQUFNLENBQUMsTUFBTSxFQUFFLENBQUMsRUFBRSxFQUFFO1FBQ3RDLEtBQUssQ0FBQyxJQUFJLENBQ1IsSUFBQSx5QkFBWSxFQUNWO1lBQ0UsSUFBSSxFQUFFLENBQUMsR0FBRyxJQUFJLEVBQUUsTUFBTSxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUM7WUFDbEMsS0FBSyxFQUFFLE1BQU0sQ0FBQyxDQUFDLENBQUM7WUFDaEIsTUFBTSxFQUFFLGtCQUFVLENBQUMsR0FBRztTQUN2QixFQUNELEdBQUcsQ0FBQyxLQUFLLENBQ1YsQ0FDRixDQUFBO0tBQ0Y7SUFFRCxPQUFPLEtBQUssQ0FBQTtBQUNkLENBQUMsQ0FBQSJ9
export * from "./diff";
export * from "./rules";
export * from "./types";
export { findExternalRefs } from "./utils";

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.findExternalRefs = void 0;
__exportStar(require("./diff"), exports);
__exportStar(require("./rules"), exports);
__exportStar(require("./types"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEseUNBQXNCO0FBQ3RCLDBDQUF1QjtBQUN2QiwwQ0FBdUIifQ==
var utils_1 = require("./utils");
Object.defineProperty(exports, "findExternalRefs", { enumerable: true, get: function () { return utils_1.findExternalRefs; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBLHlDQUFzQjtBQUN0QiwwQ0FBdUI7QUFDdkIsMENBQXVCO0FBQ3ZCLGlDQUEwQztBQUFqQyx5R0FBQSxnQkFBZ0IsT0FBQSJ9

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

helpers_1.nonBreaking,
(b, a) => (0, helpers_1.breakingIf)(b < a)
(b, a) => (0, helpers_1.breakingIf)(b > a)
];

@@ -14,3 +14,3 @@ const minClassifier = [

helpers_1.nonBreaking,
(b, a) => (0, helpers_1.breakingIf)(b > a)
(b, a) => (0, helpers_1.breakingIf)(b < a)
];

@@ -20,3 +20,3 @@ const exclusiveClassifier = [

helpers_1.nonBreaking,
(b, a) => (0, helpers_1.breakingIf)(b < a)
helpers_1.breakingIfAfterTrue
];

@@ -74,11 +74,8 @@ const booleanClassifier = [

},
"/items": () => (0, exports.jsonSchemaRules)(),
"/items": () => (0, exports.jsonSchemaRules)(helpers_1.addNonBreaking),
"/properties": {
"/": [helpers_1.breaking, helpers_1.nonBreaking, helpers_1.breaking],
"/*": () => (0, exports.jsonSchemaRules)(),
},
"/additionalProperties": {
"/": [helpers_1.breaking, helpers_1.breaking, helpers_1.breakingIfAfterTrue],
"/*": () => (0, exports.jsonSchemaRules)(helpers_1.addNonBreaking),
},
"/additionalProperties": () => (0, exports.jsonSchemaRules)([helpers_1.breaking, helpers_1.breaking, helpers_1.breakingIfAfterTrue]),
"/description": helpers_1.allAnnotation,

@@ -110,2 +107,2 @@ "/format": [helpers_1.breaking, helpers_1.nonBreaking, helpers_1.breaking],

exports.jsonSchemaRules = jsonSchemaRules;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbnNjaGVtYS5qc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LEdBQUcsRUFBRSx5QkFBZTtRQUNwQixPQUFPLEVBQUUseUJBQWU7UUFDeEIsWUFBWSxFQUFFLHlCQUFlO1FBQzdCLFNBQVMsRUFBRSx5QkFBZTtRQUMxQixZQUFZLEVBQUUseUJBQWU7UUFDN0IsVUFBVSxFQUFFLHlCQUFlO0tBQzVCO0NBQ0YsQ0FBQyxDQUFBO0FBdkVXLFFBQUEsZUFBZSxtQkF1RTFCIn0=

@@ -60,8 +60,6 @@ "use strict";

"/": [helpers_1.nonBreaking, helpers_1.breaking, helpers_1.breaking],
"*": {
"/schema": (0, jsonschema_1.jsonSchemaRules)(helpers_1.allBreaking),
"/example": helpers_1.allAnnotation,
"/examples": helpers_1.allAnnotation,
"/encoding": encodingRules,
},
"/schema": (0, jsonschema_1.jsonSchemaRules)(helpers_1.allBreaking),
"/example": helpers_1.allAnnotation,
"/examples": helpers_1.allAnnotation,
"/encoding": encodingRules,
},

@@ -92,2 +90,3 @@ };

const operationRules = {
"/": [helpers_1.nonBreaking, helpers_1.breaking, helpers_1.breaking],
"/tags": helpers_1.allAnnotation,

@@ -127,6 +126,3 @@ "/summary": helpers_1.allAnnotation,

"/description": helpers_1.allAnnotation,
"/*": {
"/": [helpers_1.nonBreaking, helpers_1.breaking, helpers_1.breaking],
"/*": operationRules,
},
"/*": operationRules,
"/servers": serversRules,

@@ -169,2 +165,2 @@ "/parameters": parametersRules,

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

@@ -0,1 +1,5 @@

import { DiffPath } from "./types";
export declare const typeOf: (value: any) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "array" | "null";
export declare const parsePath: (path: string) => string[];
export declare const buildPath: (path: DiffPath) => string;
export declare const findExternalRefs: (source: any | any[]) => string[];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.typeOf = void 0;
exports.findExternalRefs = exports.buildPath = exports.parsePath = exports.typeOf = void 0;
const typeOf = (value) => {

@@ -11,2 +11,39 @@ if (Array.isArray(value)) {

exports.typeOf = typeOf;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ08sTUFBTSxNQUFNLEdBQUcsQ0FBQyxLQUFVLEVBQUUsRUFBRTtJQUNuQyxJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLEVBQUU7UUFDeEIsT0FBTyxPQUFPLENBQUE7S0FDZjtJQUNELE9BQU8sT0FBTyxLQUFLLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLE9BQU8sS0FBSyxDQUFBO0FBQ3JELENBQUMsQ0FBQTtBQUxZLFFBQUEsTUFBTSxVQUtsQiJ9
const parsePath = (path) => {
const [_, ...pathArr] = path.split("/").map((i) => i.replace(new RegExp("~1", "g"), "/"));
return pathArr;
};
exports.parsePath = parsePath;
const buildPath = (path) => {
return "/" + path.map((i) => String(i).replace(new RegExp("/", "g"), "~1")).join("/");
};
exports.buildPath = buildPath;
const findExternalRefs = (source) => {
if (typeof source !== "object") {
return [];
}
let refs = new Set();
if ((0, exports.typeOf)(source) === "array") {
for (const item of source) {
if (typeof item === "object") {
refs = new Set([...refs, ...(0, exports.findExternalRefs)(item)]);
}
}
}
else {
for (const key of Object.keys(source)) {
if (key === "$ref") {
const [external] = source[key].split("#");
refs.add(external);
}
else {
if (typeof source[key] === "object") {
refs = new Set([...refs, ...(0, exports.findExternalRefs)(source[key])]);
}
}
}
}
return [...refs];
};
exports.findExternalRefs = findExternalRefs;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRU8sTUFBTSxNQUFNLEdBQUcsQ0FBQyxLQUFVLEVBQUUsRUFBRTtJQUNuQyxJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLEVBQUU7UUFDeEIsT0FBTyxPQUFPLENBQUE7S0FDZjtJQUNELE9BQU8sT0FBTyxLQUFLLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLE9BQU8sS0FBSyxDQUFBO0FBQ3JELENBQUMsQ0FBQTtBQUxZLFFBQUEsTUFBTSxVQUtsQjtBQUVNLE1BQU0sU0FBUyxHQUFHLENBQUMsSUFBWSxFQUFZLEVBQUU7SUFDbEQsTUFBTSxDQUFDLENBQUMsRUFBRSxHQUFHLE9BQU8sQ0FBQyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUF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NGO1NBQU07UUFDTCxLQUFLLE1BQU0sR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLEVBQUU7WUFDckMsSUFBSSxHQUFHLEtBQUssTUFBTSxFQUFFO2dCQUNsQixNQUFNLENBQUMsUUFBUSxDQUFDLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQTtnQkFDekMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxRQUFRLENBQUMsQ0FBQTthQUNuQjtpQkFBTTtnQkFDTCxJQUFJLE9BQU8sTUFBTSxDQUFDLEdBQUcsQ0FBQyxLQUFLLFFBQVEsRUFBRTtvQkFDbkMsSUFBSSxHQUFHLElBQUksR0FBRyxDQUFDLENBQUMsR0FBRyxJQUFJLEVBQUUsR0FBRyxJQUFBLHdCQUFnQixFQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQTtpQkFDNUQ7YUFDRjtTQUNGO0tBQ0Y7SUFDRCxPQUFPLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQTtBQUNsQixDQUFDLENBQUE7QUF4QlksUUFBQSxnQkFBZ0Isb0JBd0I1QiJ9
{
"name": "api-smart-diff",
"version": "0.2.0",
"version": "0.2.1",
"description": "Generate the diff between two API specifications (OpenAPI, AsyncAPI, JsonSchema)",

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

# api-smart-diff
<img alt="npm" src="https://img.shields.io/npm/v/api-smart-diff"> <img alt="npm" src="https://img.shields.io/npm/dm/api-smart-diff?label=npm"> <img alt="npm type definitions" src="https://img.shields.io/npm/types/api-smart-diff"> <img alt="GitHub" src="https://img.shields.io/github/license/udamir/api-smart-diff">

@@ -6,11 +7,11 @@ This package provides utils to compute the diff between two API specifications.

## Purpose
- Identify breaking and non-breaking changes.
- Ensure API versioning consistency.
- Generate API changelog.
- Generate API changelog
- Identify breaking changes
- Ensure API versioning consistency
## Compatilibity
## Supported API specifications
- OpenApi 3.0
- AsyncApi 2.1
- JsonSchema
- [OpenApi 3.0](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md)
- [AsyncApi 2.1](https://www.asyncapi.com/docs/specifications/v2.1.0)
- [JsonSchema](https://json-schema.org/draft/2020-12/json-schema-core.html)
- ~~[Swagger 2.0](https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md)~~ (Roadmap)

@@ -20,2 +21,10 @@ - ~~graphql~~ (Roadmap)

## Features
- Generate diff for supported specifications
- Classify all changes as breaking, non-breaking, annotation
- Supports custom classification rules
- Resolves all $ref pointers, including external
- Typescript syntax support out of the box
- No dependencies, can be used in nodejs or browser
## Installation

@@ -35,5 +44,5 @@ ```SH

// action: "add" | "remove" | "replace",
// after: 'value after',
// before: 'value before',
// path: ['path, 'in', 'array'],
// after: 'value in newSpec',
// before: 'value in oldSpec',
// path: ['path, 'in', 'array', 'format'],
// type: "annotation" | "breaking" | "non-breaking" | "unclassified"

@@ -45,3 +54,3 @@ // }

A browser version of `api-smart-diff` is also available via SDN:
A browser version of `api-smart-diff` is also available via CDN:
```html

@@ -48,0 +57,0 @@ <script src="https://cdn.jsdelivr.net/npm/api-smart-diff@latest/browser/api-smart-diff.min.js"></script>

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