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

api-smart-diff

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-smart-diff - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

dist/classifier.d.ts

538

browser/api-smart-diff.js

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

/*! api-smart-diff@0.1.0 */
/*! api-smart-diff@0.2.0 */
var ApiSmartDiff =

@@ -86,3 +86,3 @@ /******/ (function(modules) { // webpackBootstrap

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 4);
/******/ return __webpack_require__(__webpack_require__.s = 5);
/******/ })

@@ -114,3 +114,3 @@ /************************************************************************/

exports.breakingIfAfterTrue = breakingIfAfterTrue;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcnVsZXMvaGVscGVycy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFYSxRQUFBLFFBQVEsR0FBRyxVQUFVLENBQUE7QUFDckIsUUFBQSxXQUFXLEdBQUcsY0FBYyxDQUFBO0FBQzVCLFFBQUEsVUFBVSxHQUFHLFlBQVksQ0FBQTtBQUN6QixRQUFBLFlBQVksR0FBRyxjQUFjLENBQUE7QUFFMUMseUJBQXlCO0FBQ1osUUFBQSxjQUFjLEdBQWUsQ0FBQyxtQkFBVyxFQUFFLG1CQUFXLEVBQUUsbUJBQVcsQ0FBQyxDQUFBO0FBQ3BFLFFBQUEsV0FBVyxHQUFlLENBQUMsZ0JBQVEsRUFBRSxnQkFBUSxFQUFFLGdCQUFRLENBQUMsQ0FBQTtBQUN4RCxRQUFBLGVBQWUsR0FBZSxDQUFDLGdCQUFRLEVBQUUsbUJBQVcsRUFBRSxtQk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BQWU7UUFDcEIsT0FBTyxFQUFFLHlCQUFlO1FBQ3hCLFlBQVksRUFBRSx5QkFBZTtRQUM3QixTQUFTLEVBQUUseUJBQWU7UUFDMUIsWUFBWSxFQUFFLHlCQUFlO1FBQzdCLFVBQVUsRUFBRSx5QkFBZTtLQUM1QjtDQUNGLENBQUMsQ0FBQTtBQTFFVyxRQUFBLGVBQWUsbUJBMEUxQiJ9

@@ -236,2 +236,35 @@ /***/ }),

Object.defineProperty(exports, "__esModule", { value: true });
exports.ActionType = void 0;
var ActionType;
(function (ActionType) {
ActionType["add"] = "add";
ActionType["remove"] = "remove";
ActionType["replace"] = "replace";
})(ActionType = exports.ActionType || (exports.ActionType = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsSUFBWSxVQUlYO0FBSkQsV0FBWSxVQUFVO0lBQ3BCLHlCQUFXLENBQUE7SUFDWCwrQkFBaUIsQ0FBQTtJQUNqQixpQ0FBbUIsQ0FBQTtBQUNyQixDQUFDLEVBSlcsVUFBVSxHQUFWLGtCQUFVLEtBQVYsa0JBQVUsUUFJckIifQ==
/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.typeOf = void 0;
const typeOf = (value) => {
if (Array.isArray(value)) {
return "array";
}
return typeof value == null ? "null" : typeof value;
};
exports.typeOf = typeOf;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ08sTUFBTSxNQUFNLEdBQUcsQ0FBQyxLQUFVLEVBQUUsRUFBRTtJQUNuQyxJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLEVBQUU7UUFDeEIsT0FBTyxPQUFPLENBQUE7S0FDZjtJQUNELE9BQU8sT0FBTyxLQUFLLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLE9BQU8sS0FBSyxDQUFBO0FBQ3JELENBQUMsQ0FBQTtBQUxZLFFBQUEsTUFBTSxVQUtsQiJ9
/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -252,10 +285,10 @@ if (k2 === undefined) k2 = k;

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(__webpack_require__(6), exports);
__exportStar(__webpack_require__(7), exports);
__exportStar(__webpack_require__(10), exports);
__exportStar(__webpack_require__(11), exports);
__exportStar(__webpack_require__(1), exports);
__exportStar(__webpack_require__(0), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcnVsZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDhDQUEyQjtBQUMzQiw2Q0FBMEI7QUFDMUIsK0NBQTRCO0FBQzVCLDRDQUF5QiJ9
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcnVsZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDhDQUEyQjtBQUMzQiw2Q0FBMEI7QUFDMUIsK0NBQTRCO0FBQzVCLDRDQUF5QiJ9
/***/ }),
/* 3 */
/* 5 */
/***/ (function(module, exports, __webpack_require__) {

@@ -265,18 +298,2 @@

Object.defineProperty(exports, "__esModule", { value: true });
exports.ActionType = void 0;
var ActionType;
(function (ActionType) {
ActionType["add"] = "add";
ActionType["remove"] = "remove";
ActionType["replace"] = "replace";
})(ActionType = exports.ActionType || (exports.ActionType = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsSUFBWSxVQUlYO0FBSkQsV0FBWSxVQUFVO0lBQ3BCLHlCQUFXLENBQUE7SUFDWCwrQkFBaUIsQ0FBQTtJQUNqQixpQ0FBbUIsQ0FBQTtBQUNyQixDQUFDLEVBSlcsVUFBVSxHQUFWLGtCQUFVLEtBQVYsa0JBQVUsUUFJckIifQ==
/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -297,9 +314,9 @@ if (k2 === undefined) k2 = k;

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(__webpack_require__(5), exports);
__exportStar(__webpack_require__(6), exports);
__exportStar(__webpack_require__(4), exports);
__exportStar(__webpack_require__(2), exports);
__exportStar(__webpack_require__(3), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDZDQUEwQjtBQUMxQiwwQ0FBdUI7QUFDdkIsMENBQXVCIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHlDQUFzQjtBQUN0QiwwQ0FBdUI7QUFDdkIsMENBQXVCIn0=
/***/ }),
/* 5 */
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

@@ -310,35 +327,150 @@

Object.defineProperty(exports, "__esModule", { value: true });
exports.apiDiff = exports.syncApiDiff = void 0;
const rules_1 = __webpack_require__(2);
const json_diff_1 = __webpack_require__(8);
const getBaseRules = (name) => {
switch (name) {
case "OpenApi3":
return rules_1.openapi3Rules;
case "AsyncApi2":
return rules_1.asyncApi2Rules;
case "JsonSchema":
return (0, rules_1.jsonSchemaRules)();
exports.apiDiff = void 0;
const types_1 = __webpack_require__(2);
const dereference_1 = __webpack_require__(7);
const classifier_1 = __webpack_require__(8);
const context_1 = __webpack_require__(9);
const utils_1 = __webpack_require__(3);
const apiDiff = (before, after, options) => {
return findDiff(before, after, new context_1.DiffContext(before, after, options));
};
exports.apiDiff = apiDiff;
const findDiff = (before, after, ctx, path = []) => {
if ((0, utils_1.typeOf)(before) !== (0, utils_1.typeOf)(after)) {
return [(0, classifier_1.classifyDiff)({ path: path, before, after, action: types_1.ActionType.replace }, ctx.rules)];
}
switch ((0, utils_1.typeOf)(before)) {
case "string":
return stringsDiff(before, after, ctx, path);
case "object":
return objectsDiff(before, after, ctx, path);
case "array":
return arrayDiff(before, after, ctx, path);
default:
return before !== after ? [(0, classifier_1.classifyDiff)({ path, before, after, action: types_1.ActionType.replace }, ctx.rules)] : [];
}
};
const syncApiDiff = (before, after, rules) => {
rules = typeof rules === "string" ? getBaseRules(rules) : rules;
return (0, json_diff_1.jsonDiff)(before, after, { rules });
const normalizeString = (value, ctx) => {
value = ctx.trimStrings ? value.trim() : value;
value = ctx.caseSensitive ? value : value.toLowerCase();
return value;
};
exports.syncApiDiff = syncApiDiff;
const apiDiff = (before, after, rules) => {
return new Promise((resolve, reject) => {
try {
resolve((0, exports.syncApiDiff)(before, after, rules));
const stringsDiff = (before, after, ctx, path) => {
before = normalizeString(before, ctx);
after = normalizeString(after, ctx);
return before !== after
? [(0, classifier_1.classifyDiff)({ path, before, after, action: types_1.ActionType.replace }, ctx.rules)]
: [];
};
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 };
}
catch (error) {
reject(error);
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 keys = new Set([...Object.keys(_before), ...Object.keys(_after)]);
for (const key of keys) {
// skip symbol key
if (typeof key === "symbol") {
continue;
}
});
if (!_before.hasOwnProperty(key)) {
// added key
diffs.push((0, classifier_1.classifyDiff)({
path: [...path, key],
after: _after[key],
action: types_1.ActionType.add,
}, ctx.rules));
}
else if (!_after.hasOwnProperty(key)) {
// deleted key
diffs.push((0, classifier_1.classifyDiff)({
path: [...path, key],
before: _before[key],
action: types_1.ActionType.remove,
}, ctx.rules));
}
else {
// updated value
diffs.push(...findDiff(_before[key], _after[key], ctx, [...path, key]));
}
if (ctx.findFirstDiff && diffs.length) {
break;
}
}
// remove refs
before.$ref && ctx.beforeRefs.delete(before.$ref);
after.$ref && ctx.afterRefs.delete(after.$ref);
return diffs;
};
exports.apiDiff = apiDiff;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLWRpZmYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXBpLWRpZmYudHMiXSwibmFtZXMiOltdLCJtYXBw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yxDQUFBO0FBQ0osQ0FBQyxDQUFBO0FBUlksUUFBQSxPQUFPLFdBUW5CIn0=
const findEqualItemIndex = (item, array, ctx) => {
for (let j = 0; j < array.length; j++) {
ctx.findFirstDiff = true;
const diff = findDiff(item, array[j], ctx);
ctx.findFirstDiff = false;
if (!diff.length) {
return j;
}
}
return -1;
};
const arrayDiff = (before, after, ctx, path) => {
const diffs = [];
const _after = [...after];
for (let i = 0; i < before.length; i++) {
if (ctx.strictArrays) {
if (i >= after.length) {
diffs.push((0, classifier_1.classifyDiff)({
path: [...path, i],
before: before[i],
action: types_1.ActionType.remove,
}, ctx.rules));
}
else {
diffs.push(...findDiff(before[i], after[i], ctx, [...path, i]));
}
}
else {
const index = findEqualItemIndex(before[i], _after, ctx);
if (index >= 0) {
_after.splice(index, 1);
}
else {
diffs.push((0, classifier_1.classifyDiff)({
path: [...path, i],
before: before[i],
action: types_1.ActionType.remove,
}, ctx.rules));
}
}
if (ctx.findFirstDiff && diffs.length) {
break;
}
}
if (ctx.strictArrays) {
_after.splice(0, before.length);
}
for (let i = 0; i < _after.length; i++) {
diffs.push((0, classifier_1.classifyDiff)({
path: [...path, before.length + i],
after: _after[i],
action: types_1.ActionType.add,
}, ctx.rules));
}
return diffs;
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlmZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9kaWZmLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLG1DQUFpRTtBQUNqRSwrQ0FBMkM7QUFDM0MsNkNBQTJDO0FBQzNDLHVDQUF1QztBQUN2QyxtQ0FBZ0M7QUFFekIsTUFBTSxPQUFPLEdBQUcsQ0FBQyxNQUFXLEVBQUUsS0FBVSxFQUFFLE9BQW9CLEVBQVUsRUFBRTtJQUMvRSxPQUFPLFFBQVEsQ0FBQyxNQUFNLEVBQUUsS0FBSyxFQUFFLElB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FBQyxDQUFBIn0=
/***/ }),
/* 6 */
/* 7 */
/***/ (function(module, exports, __webpack_require__) {

@@ -349,2 +481,121 @@

Object.defineProperty(exports, "__esModule", { value: true });
exports.dereference = void 0;
const utils_1 = __webpack_require__(3);
const dereference = (ref, obj, cache) => {
// try to find ref in cache
if (cache.has(ref)) {
return cache.get(ref);
}
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];
}
else {
_obj = _obj[key];
}
}
cache.set(ref, _obj);
return _obj;
};
exports.dereference = dereference;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVyZWZlcmVuY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvZGVyZWZlcmVuY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsbUNBQWdDO0FBRXpCLE1BQU0sV0FBVyxHQUFHLENBQUMsR0FBVyxFQUFFLEdBQVEsRUFBRSxLQUF1QixFQUFPLEVBQUU7SUFDakYsMkJBQTJCO0lBQzNCLElBQUksS0FBSyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUNsQixPQUFPLEtBQUssQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUE7S0FDdEI7SUFFRCxNQUFNLENBQUMsUUFBUSxFQUFFLElBQUksQ0FBQyxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUE7SUFFdkMsd0JBQXdCO0lBQ3hCLElBQUksUUFBUSxJQUFJLEtBQUssQ0FBQyxHQUFHLENBQUMsUUFBUSxDQUFDLEVBQUU7UUFDbkMsR0FBRyxHQUFHLEtBQUssQ0FBQyxHQUFHLENBQUMsUUFBUSxDQUFDLENBQUE7S0FDMUI7SUFFRCxNQUFNLENBQUMsQ0FBQyxFQUFFLEdBQUcsT0FBTyxDQUFDLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQTtJQUN2QyxJQUFJLElBQUksR0FBRyxHQUFHLENBQUE7SUFFZCxLQUFLLE1BQU0sR0FBRyxJQUFJLE9BQU8sRUFBRTtRQUN6QixJQUFJLElBQUEsY0FBTSxFQUFDLElBQUksQ0FBQyxLQUFLLE9BQU8sRUFBRTtZQUM1QixJQUFJLEdBQUcsSUFBSSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUE7U0FDbEI7YUFBTTtZQUNMLElBQUksR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUE7U0FDakI7S0FDRjtJQUVELEtBQUssQ0FBQyxHQUFHLENBQUMsR0FBRyxFQUFFLElBQUksQ0FBQyxDQUFBO0lBRXBCLE9BQU8sSUFBSSxDQUFBO0FBQ2IsQ0FBQyxDQUFBO0FBM0JZLFFBQUEsV0FBVyxlQTJCdkIifQ==
/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.classifyDiff = exports.findClassifier = void 0;
const helpers_1 = __webpack_require__(0);
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 helpers_1.allUnclassified;
}
}
return helpers_1.allUnclassified;
};
exports.findClassifier = findClassifier;
const classifyDiff = (diff, rules = {}) => {
const _diff = diff;
const classifier = (0, exports.findClassifier)(rules, diff.path);
const index = ["add", "remove", "replace"].indexOf(diff.action);
const changeType = classifier[index];
_diff.type = typeof changeType === "function"
? changeType(diff.before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FPLHlCQUFlLENBQUE7QUFDeEIsQ0FBQyxDQUFBO0FBcEJZLFFBQUEsY0FBYyxrQkFvQjFCO0FBRU0sTUFBTSxZQUFZLEdBQUcsQ0FBQyxJQUFzQixFQUFFLFFBQWUsRUFBRSxFQUFRLEVBQUU7SUFDOUUsTUFBTSxLQUFLLEdBQUcsSUFBWSxDQUFBO0lBRTFCLE1BQU0sVUFBVSxHQUFHLElBQUEsc0JBQWMsRUFBQyxLQUFLLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFBO0lBRW5ELE1BQU0sS0FBSyxHQUFHLENBQUMsS0FBSyxFQUFFLFFBQVEsRUFBRSxTQUFTLENBQUMsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFBO0lBQy9ELE1BQU0sVUFBVSxHQUFHLFVBQVUsQ0FBQyxLQUFLLENBQUMsQ0FBQTtJQUVwQyxLQUFLLENBQUMsSUFBSSxHQUFHLE9BQU8sVUFBVSxLQUFLLFVBQVU7UUFDM0MsQ0FBQyxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsTUFBTSxFQUFFLElBQUksQ0FBQyxLQUFLLENBQUM7UUFDckMsQ0FBQyxDQUFDLFVBQVUsQ0FBQTtJQUVkLE9BQU8sS0FBSyxDQUFBO0FBQ2QsQ0FBQyxDQUFBO0FBYlksUUFBQSxZQUFZLGdCQWF4QiJ9
/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DiffContext = void 0;
const rules_1 = __webpack_require__(4);
class DiffContext {
constructor(before, after, options) {
this.before = before;
this.after = after;
this.beforeRefs = new Set();
this.afterRefs = new Set();
this.cache = new Map();
this.findFirstDiff = false;
this.rules = typeof options.rules === "string" ? this.getBaseRules(options.rules) : options.rules;
this.trimStrings = options.trimStrings;
this.caseSensitive = options.caseSensitive;
this.strictArrays = options.strictArrays;
const externalRefs = options.externalRefs || {};
for (const ref of Object.keys(externalRefs)) {
this.cache.set(ref, externalRefs[ref]);
}
}
getBaseRules(name) {
switch (name) {
case "OpenApi3":
return rules_1.openapi3Rules;
case "AsyncApi2":
return rules_1.asyncApi2Rules;
case "JsonSchema":
return (0, rules_1.jsonSchemaRules)();
}
}
}
exports.DiffContext = DiffContext;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9jb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLG1DQUF3RTtBQUd4RSxNQUFhLFdBQVc7SUFZdEIsWUFBbUIsTUFBVyxFQUFTLEtBQVUsRUFBRSxPQUFvQjtRQUFwRCxXQUFNLEdBQU4sTUFBTSxDQUFLO1FBQVMsVUFBSyxHQUFMLEtBQUssQ0FBSztRQVQxQyxlQUFVLEdBQWdCLElBQUksR0FBRyxFQUFFLENBQUE7UUFDbkMsY0FBUyxHQUFnQixJQUFJLEdBQUcsRUFBRSxDQUFBO1FBQ2xDLFVBQUssR0FBcUIsSUFBSSxHQUFHLEVBQUUsQ0FBQTtRQUNuQyxrQkFBYSxHQUFHLEtBQUssQ0FBQTtRQU8xQixJQUFJLENBQUMsS0FBSyxHQUFHLE9BQU8sT0FBTyxDQUFDLEtBQUssS0FBSyxRQUFRLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFBO1FBQ2pHLElBQUksQ0FBQyxXQUFXLEdBQUcsT0FBTyxDQUFDLFdBQVcsQ0FBQTtRQUN0QyxJQUFJLENBQUMsYUFBYSxHQUFHLE9BQU8sQ0FBQyxhQUFhLENBQUE7UUFDMUMsSUFBSSxDQUFDLFlBQVksR0FBRyxPQUFPLENBQUMsWUFBWSxDQUFBO1FBRXhDLE1BQU0sWUFBWSxHQUFHLE9BQU8sQ0FBQyxZQUFZLElBQUksRUFBRSxDQUFBO1FBQy9DLEtBQUssTUFBTSxHQUFHLElBQUksTUFBTSxDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsRUFBRTtZQUMzQyxJQUFJLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEVBQUUsWUFBWSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUE7U0FDdkM7SUFDSCxDQUFDO0lBRU8sWUFBWSxDQUFFLElBQW1CO1FBQ3ZDLFFBQVEsSUFBSSxFQUFFO1lBQ1osS0FBSyxVQUFVO2dCQUNiLE9BQU8scUJBQWEsQ0FBQTtZQUN0QixLQUFLLFdBQVc7Z0JBQ2QsT0FBTyxzQkFBYyxDQUFBO1lBQ3ZCLEtBQUssWUFBWTtnQkFDZixPQUFPLElBQUEsdUJBQWUsR0FBRSxDQUFBO1NBQzNCO0lBQ0gsQ0FBQztDQUNGO0FBbENELGtDQWtDQyJ9
/***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.asyncApi2Rules = exports.messageRules = exports.messageTraitsRules = void 0;

@@ -444,6 +695,6 @@ const jsonschema_1 = __webpack_require__(1);

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXN5bmNhcGkyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3J1bGVzL2FzeW5jYXBpMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2Q0FBOEM7QUFFOUMsdUNBR2tCO0FBRWxCLE1BQU0sa0JBQWtCLEdBQVU7SUFDaEMsR0FBRyxFQUFFLHdCQUFjO0lBQ25CLFdBQVcsRUFBRSx3QkFBYztJQUMzQixjQUFjLEVBQUUsdUJBQWE7Q0F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/* 8 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.jsonDiff = void 0;
const types_1 = __webpack_require__(3);
const classifier_1 = __webpack_require__(9);
const typeOf = (value) => {
if (Array.isArray(value)) {
return "array";
}
return typeof value == null ? "null" : typeof value;
};
const jsonDiff = (before, after, options, path = []) => {
if (typeOf(before) !== typeOf(after)) {
return [(0, classifier_1.classifyDiff)({ path, before, after, action: types_1.ActionType.replace }, options === null || options === void 0 ? void 0 : options.rules)];
}
switch (typeOf(before)) {
case "string":
return stringsDiff(before, after, options, path);
case "object":
return objectsDiff(before, after, options, path);
case "array":
return arrayDiff(before, after, options, path);
default:
return before !== after ? [(0, classifier_1.classifyDiff)({ path, before, after, action: types_1.ActionType.replace }, options === null || options === void 0 ? void 0 : options.rules)] : [];
}
};
exports.jsonDiff = jsonDiff;
const stringsDiff = (before, after, options, path = []) => {
const a = normalizeString(before, options);
const b = normalizeString(after, options);
return a !== b ? [(0, classifier_1.classifyDiff)({ path, before, after, action: types_1.ActionType.replace }, options === null || options === void 0 ? void 0 : options.rules)] : [];
};
const normalizeString = (value, options) => {
value = (options === null || options === void 0 ? void 0 : options.trimStrings) ? value.trim() : value;
value = (options === null || options === void 0 ? void 0 : options.caseSensitive) ? value : value.toLowerCase();
return value;
};
const objectsDiff = (before, after, options, path = []) => {
const diffs = [];
const keys = new Set([...Object.keys(before), ...Object.keys(after)]);
for (const key of keys) {
// skip symbol key
if (typeof key === "symbol") {
continue;
}
if (!before.hasOwnProperty(key)) {
// added key
diffs.push((0, classifier_1.classifyDiff)({
path: [...path, key],
after: after[key],
action: types_1.ActionType.add,
}, options === null || options === void 0 ? void 0 : options.rules));
}
else if (!after.hasOwnProperty(key)) {
// deleted key
diffs.push((0, classifier_1.classifyDiff)({
path: [...path, key],
before: before[key],
action: types_1.ActionType.remove,
}, options === null || options === void 0 ? void 0 : options.rules));
}
else {
// updated value
diffs.push(...(0, exports.jsonDiff)(before[key], after[key], options, [...path, key]));
}
if ((options === null || options === void 0 ? void 0 : options.findFirstDiff) && diffs.length) {
break;
}
}
return diffs;
};
const findEqualItemIndex = (item, array, options) => {
for (let j = 0; j < array.length; j++) {
if (!(0, exports.jsonDiff)(item, array[j], Object.assign(Object.assign({}, options), { findFirstDiff: true })).length) {
return j;
}
}
return -1;
};
const arrayDiff = (before, after, options, path = []) => {
const diffs = [];
const _after = [...after];
for (let i = 0; i < before.length; i++) {
if (options === null || options === void 0 ? void 0 : options.strictArrays) {
if (i >= after.length) {
diffs.push((0, classifier_1.classifyDiff)({
path: [...path, i],
before: before[i],
action: types_1.ActionType.remove,
}, options === null || options === void 0 ? void 0 : options.rules));
}
else {
diffs.push(...(0, exports.jsonDiff)(before[i], after[i], options, [...path, i]));
}
}
else {
const index = findEqualItemIndex(before[i], _after, options);
if (index >= 0) {
_after.splice(index, 1);
}
else {
diffs.push((0, classifier_1.classifyDiff)({
path: [...path, i],
before: before[i],
action: types_1.ActionType.remove,
}, options === null || options === void 0 ? void 0 : options.rules));
}
}
if ((options === null || options === void 0 ? void 0 : options.findFirstDiff) && diffs.length) {
break;
}
}
if (options === null || options === void 0 ? void 0 : options.strictArrays) {
_after.splice(0, before.length);
}
for (let i = 0; i < _after.length; i++) {
diffs.push((0, classifier_1.classifyDiff)({
path: [...path, before.length + i],
after: _after[i],
action: types_1.ActionType.add,
}, options === null || options === void 0 ? void 0 : options.rules));
}
return diffs;
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbi1kaWZmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2pzb24tZGlmZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxtQ0FBK0M7QUFDL0MsNkNBQTJDO0FBVzNDLE1BQU0sTUFBTSxHQUFHLENBQUMsS0FBVSxFQUFFLEVBQUU7SUFDNUIsSUFBSSxLQUFLLENBQUMsT0F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BQUcsTUFBTSxDQUFDLE1BQU0sRUFBRSxDQUFDLEVBQUUsRUFBRTtRQUN0QyxLQUFLLENBQUMsSUFBSSxDQUNSLElBQUEseUJBQVksRUFDVjtZQUNFLElBQUksRUFBRSxDQUFDLEdBQUcsSUFBSSxFQUFFLE1BQU0sQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDO1lBQ2xDLEtBQUssRUFBRSxNQUFNLENBQUMsQ0FBQyxDQUFDO1lBQ2hCLE1BQU0sRUFBRSxrQkFBVSxDQUFDLEdBQUc7U0FDdkIsRUFDRCxPQUFPLGFBQVAsT0FBTyx1QkFBUCxPQUFPLENBQUUsS0FBSyxDQUNmLENBQ0YsQ0FBQTtLQUNGO0lBRUQsT0FBTyxLQUFLLENBQUE7QUFDZCxDQUFDLENBQUEifQ==
/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.classifyDiff = exports.findClassifier = void 0;
const helpers_1 = __webpack_require__(0);
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 helpers_1.allUnclassified;
}
}
return helpers_1.allUnclassified;
};
exports.findClassifier = findClassifier;
const classifyDiff = (diff, rules = {}) => {
const _diff = diff;
const classifier = (0, exports.findClassifier)(rules, diff.path);
const index = ["add", "remove", "replace"].indexOf(diff.action);
const changeType = classifier[index];
_diff.type = typeof changeType === "function"
? changeType(diff.before, diff.after)
: changeType;
return _diff;
};
exports.classifyDiff = classifyDiff;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xhc3NpZmllci5qcyIsInNvdXJjZVJvb3QiOiIi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FBZSxFQUFFLEVBQW1CLEVBQUU7SUFDOUUsTUFBTSxLQUFLLEdBQUcsSUFBdUIsQ0FBQTtJQUVyQyxNQUFNLFVBQVUsR0FBRyxJQUFBLHNCQUFjLEVBQUMsS0FBSyxFQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUVuRCxNQUFNLEtBQUssR0FBRyxDQUFDLEtBQUssRUFBRSxRQUFRLEVBQUUsU0FBUyxDQUFDLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQTtJQUMvRCxNQUFNLFVBQVUsR0FBRyxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUE7SUFFcEMsS0FBSyxDQUFDLElBQUksR0FBRyxPQUFPLFVBQVUsS0FBSyxVQUFVO1FBQzNDLENBQUMsQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsS0FBSyxDQUFDO1FBQ3JDLENBQUMsQ0FBQyxVQUFVLENBQUE7SUFFZCxPQUFPLEtBQUssQ0FBQTtBQUNkLENBQUMsQ0FBQTtBQWJZLFFBQUEsWUFBWSxnQkFheEIifQ==
/***/ })
/******/ ]);

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

/*! api-smart-diff@0.1.0 */
var ApiSmartDiff=function(a){var i={};function r(n){if(i[n])return i[n].exports;var e=i[n]={i:n,l:!1,exports:{}};return a[n].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=a,r.c=i,r.d=function(n,e,a){r.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:a})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)r.d(a,i,function(n){return e[n]}.bind(null,i));return a},r.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(e,"a",e),e},r.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},r.p="",r(r.s=4)}([function(n,a,e){"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=n=>n?a.breaking:a.nonBreaking;a.breakingIfAfterTrue=(n,e)=>(0,a.breakingIf)(e)},function(n,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.jsonSchemaRules=void 0;const i=a(0),r=[i.breaking,i.nonBreaking,(n,e)=>(0,i.breakingIf)(n<e)],o=[i.breaking,i.nonBreaking,(n,e)=>(0,i.breakingIf)(e<n)],t=[i.breakingIfAfterTrue,i.nonBreaking,(n,e)=>(0,i.breakingIf)(n<e)],l=[i.breakingIfAfterTrue,i.nonBreaking,i.breakingIfAfterTrue],s=[i.breaking,i.nonBreaking,(n,e)=>(0,i.breakingIf)(!!(n%e))];e.jsonSchemaRules=(n=i.allUnclassified)=>({"/":n,"/title":i.allAnnotation,"/multipleOf":s,"/maximum":r,"/exclusiveMaximum":t,"/minimum":o,"/exclusiveMinimum":t,"/maxLength":r,"/minLength":o,"/pattern":[i.breaking,i.nonBreaking,i.breaking],"/maxItems":r,"/minItems":o,"/uniqueItems":l,"/maxProperties":r,"/minProperties":o,"/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,e.jsonSchemaRules)(i.allBreaking)},"/allOf":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":()=>(0,e.jsonSchemaRules)(i.allBreaking)},"/oneOf":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":()=>(0,e.jsonSchemaRules)(i.addNonBreaking)},"/anyOf":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":()=>(0,e.jsonSchemaRules)(i.addNonBreaking)},"/items":()=>(0,e.jsonSchemaRules)(),"/properties":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":()=>(0,e.jsonSchemaRules)()},"/additionalProperties":{"/":[i.breaking,i.breaking,i.breakingIfAfterTrue],"/*":()=>(0,e.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(n,e,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(n,e,a,i){void 0===i&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);r&&("get"in r?e.__esModule:!r.writable&&!r.configurable)||(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(n,i,r)}:function(n,e,a,i){n[i=void 0===i?a:i]=e[a]}),r=this&&this.__exportStar||function(n,e){for(var a in n)"default"===a||Object.prototype.hasOwnProperty.call(e,a)||i(e,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(a(6),e),r(a(7),e),r(a(1),e),r(a(0),e)},function(n,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ActionType=void 0,(e=e.ActionType||(e.ActionType={})).add="add",e.remove="remove",e.replace="replace"},function(n,e,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(n,e,a,i){void 0===i&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);r&&("get"in r?e.__esModule:!r.writable&&!r.configurable)||(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(n,i,r)}:function(n,e,a,i){n[i=void 0===i?a:i]=e[a]}),r=this&&this.__exportStar||function(n,e){for(var a in n)"default"===a||Object.prototype.hasOwnProperty.call(e,a)||i(e,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(a(5),e),r(a(2),e),r(a(3),e)},function(n,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.apiDiff=o.syncApiDiff=void 0;const i=e(2),r=e(8);o.syncApiDiff=(n,e,a)=>(a="string"==typeof a?(n=>{switch(n){case"OpenApi3":return i.openapi3Rules;case"AsyncApi2":return i.asyncApi2Rules;case"JsonSchema":return(0,i.jsonSchemaRules)()}})(a):a,(0,r.jsonDiff)(n,e,{rules:a}));o.apiDiff=(a,i,r)=>new Promise((n,e)=>{try{n((0,o.syncApiDiff)(a,i,r))}catch(n){e(n)}})},function(n,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.asyncApi2Rules=e.messageRules=e.messageTraitsRules=void 0;const i=a(1);var a=a(0),r={"/":a.addNonBreaking,"/location":a.addNonBreaking,"/description":a.allAnnotation},o={"/summary":a.allAnnotation,"/tags":a.allAnnotation,"/externalDocs":a.allAnnotation,"/bindings":a.allUnclassified},t=Object.assign({"/":a.addNonBreaking,"/*":a.addNonBreaking,"/operationId":a.addNonBreaking,"/description":a.allAnnotation},o),r=(e.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},o),e.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":e.messageTraitsRules,"/payload":(0,i.jsonSchemaRules)(a.allBreaking)},o),Object.assign({"/":a.addNonBreaking,"/operationId":a.addNonBreaking,"/description":a.allAnnotation,"/traits":t,"/message":e.messageRules},o)),t={"/":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}},o={"/":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}}};e.asyncApi2Rules={"/asyncapi":a.addNonBreaking,"/id":a.allAnnotation,"/defaultContentType":a.allBreaking,"/info":t,"/servers":o,"/channels":{"/":a.addNonBreaking,"/*":r},"/components":a.allNonBreaking,"/tags":a.allAnnotation,"/externalDocs":a.allAnnotation}},function(n,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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}}}},o={"/":[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]}},t={"/":[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":t,"/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,(n,e)=>e?r.breaking:r.nonBreaking]}},l={"/":[r.nonBreaking,r.breaking,r.breaking],"/*":{"/":[r.nonBreaking,r.breaking,r.breaking],"/description":r.allAnnotation,"/headers":t,"/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":o,"/requestBody":s,"/responses":l,"/deprecated":[r.breaking,r.nonBreaking,r.breakingIfAfterTrue],"/security":g,"/servers":a};e.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":o}},"/components":{"/":[r.nonBreaking,r.nonBreaking,r.nonBreaking],"/schemas":{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":(0,i.jsonSchemaRules)(r.addNonBreaking)},"/responses":l,"/parameters":o,"/examples":r.allAnnotation,"/requestBodies":{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":s},"/headers":t,"/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}},function(n,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.jsonDiff=void 0;const g=e(3),k=e(9),r=n=>Array.isArray(n)?"array":null==typeof n?"null":typeof n;s.jsonDiff=(n,e,a,i=[])=>{if(r(n)!==r(e))return[(0,k.classifyDiff)({path:i,before:n,after:e,action:g.ActionType.replace},null==a?void 0:a.rules)];switch(r(n)){case"string":return o(n,e,a,i);case"object":return l(n,e,a,i);case"array":return c(n,e,a,i);default:return n!==e?[(0,k.classifyDiff)({path:i,before:n,after:e,action:g.ActionType.replace},null==a?void 0:a.rules)]:[]}};const o=(n,e,a,i=[])=>{return t(n,a)!==t(e,a)?[(0,k.classifyDiff)({path:i,before:n,after:e,action:g.ActionType.replace},null==a?void 0:a.rules)]:[]},t=(n,e)=>(n=null!=e&&e.trimStrings?n.trim():n,n=null!=e&&e.caseSensitive?n:n.toLowerCase()),l=(n,e,a,i=[])=>{const r=[];for(const o of new Set([...Object.keys(n),...Object.keys(e)]))if("symbol"!=typeof o&&(n.hasOwnProperty(o)?e.hasOwnProperty(o)?r.push(...(0,s.jsonDiff)(n[o],e[o],a,[...i,o])):r.push((0,k.classifyDiff)({path:[...i,o],before:n[o],action:g.ActionType.remove},null==a?void 0:a.rules)):r.push((0,k.classifyDiff)({path:[...i,o],after:e[o],action:g.ActionType.add},null==a?void 0:a.rules)),null!=a&&a.findFirstDiff&&r.length))break;return r},c=(e,a,i,r=[])=>{const o=[],t=[...a];for(let n=0;n<e.length;n++){var l;if(null!=i&&i.strictArrays?n>=a.length?o.push((0,k.classifyDiff)({path:[...r,n],before:e[n],action:g.ActionType.remove},null==i?void 0:i.rules)):o.push(...(0,s.jsonDiff)(e[n],a[n],i,[...r,n])):0<=(l=((e,a,i)=>{for(let n=0;n<a.length;n++)if(!(0,s.jsonDiff)(e,a[n],Object.assign(Object.assign({},i),{findFirstDiff:!0})).length)return n;return-1})(e[n],t,i))?t.splice(l,1):o.push((0,k.classifyDiff)({path:[...r,n],before:e[n],action:g.ActionType.remove},null==i?void 0:i.rules)),null!=i&&i.findFirstDiff&&o.length)break}null!=i&&i.strictArrays&&t.splice(0,e.length);for(let n=0;n<t.length;n++)o.push((0,k.classifyDiff)({path:[...r,e.length+n],after:t[n],action:g.ActionType.add},null==i?void 0:i.rules));return o}},function(n,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.classifyDiff=r.findClassifier=void 0;const o=e(0);r.findClassifier=(n,e)=>{let a=n;for(var i of[...e,""]){if(a.hasOwnProperty("/"+i)&&"number"!=typeof i||(i="*"),!a.hasOwnProperty("/"+i))return o.allUnclassified;{const r=a["/"+i];if(Array.isArray(r))return r;a="function"==typeof r?r():r}}return o.allUnclassified};r.classifyDiff=(n,e={})=>{const a=n;const i=(0,r.findClassifier)(e,n.path)[["add","remove","replace"].indexOf(n.action)];return a.type="function"==typeof i?i(n.before,n.after):i,a}}]);
/*! 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}}]);
{
"name": "api-smart-diff",
"version": "0.1.1",
"version": "0.2.0",
"description": "Generate the diff between two API specifications (OpenAPI, AsyncAPI, JsonSchema)",

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

],
"modulePathIgnorePatterns": ["<rootDir>/dist/"],
"modulePathIgnorePatterns": [
"<rootDir>/dist/"
],
"collectCoverage": true
}
}

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

```SH
npm install api-smart-diff
npm install api-smart-diff --save
```

@@ -29,5 +29,5 @@

```ts
import { syncApiDiff } from 'api-smart-diff'
import { apiDiff } from 'api-smart-diff'
const diff = syncApiDiff(oldSpec, newSpec, "OpenApi3")
const diff = apiDiff(oldSpec, newSpec, { rules: "OpenApi3" })
// {

@@ -53,3 +53,3 @@ // action: "add" | "remove" | "replace",

<script>
var diff = ApiSmartDiff.syncApiDiff (oldSpec, newSpec, "OpenApi3")
var diff = ApiSmartDiff.apiDiff(oldSpec, newSpec, { rules: "OpenApi3" })
</script>

@@ -56,0 +56,0 @@ ```

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