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.7.2 to 1.0.0-alpha.0

dist/esm/api.d.ts

45

dist/esm/constants.d.ts

@@ -1,24 +0,23 @@

import { Rule } from "./types";
import { ClassifyRule } from "./types";
export declare const DIFF_META_KEY = "$diff";
export declare enum DiffAction {
add = "add",
remove = "remove",
replace = "replace",
rename = "rename",
test = "test"
}
export declare enum ClassifierType {
breaking = "breaking",
nonBreaking = "non-breaking",
annotation = "annotation",
unclassified = "unclassified",
deprecated = "deprecated"
}
export declare const breaking: ClassifierType, nonBreaking: ClassifierType, unclassified: ClassifierType, annotation: ClassifierType, deprecated: ClassifierType;
export declare const allNonBreaking: Rule;
export declare const allBreaking: Rule;
export declare const onlyAddBreaking: Rule;
export declare const addNonBreaking: Rule;
export declare const allUnclassified: Rule;
export declare const allAnnotation: Rule;
export declare const allDeprecated: Rule;
export declare const DiffAction: {
readonly add: "add";
readonly remove: "remove";
readonly replace: "replace";
readonly rename: "rename";
};
export declare const ClassifierType: {
readonly breaking: "breaking";
readonly nonBreaking: "non-breaking";
readonly annotation: "annotation";
readonly unclassified: "unclassified";
readonly deprecated: "deprecated";
};
export declare const breaking: "breaking", nonBreaking: "non-breaking", unclassified: "unclassified", annotation: "annotation", deprecated: "deprecated";
export declare const allNonBreaking: ClassifyRule;
export declare const allBreaking: ClassifyRule;
export declare const onlyAddBreaking: ClassifyRule;
export declare const addNonBreaking: ClassifyRule;
export declare const allUnclassified: ClassifyRule;
export declare const allAnnotation: ClassifyRule;
export declare const allDeprecated: ClassifyRule;

@@ -1,12 +0,7 @@

import { ApiCompare } from "./apiCompare";
export * from "./rules/index";
export * from "./api";
export * from "./compare";
export * from "./constants";
export * from "./jsonSchema";
export * from "./openapi";
export * from "./types";
export * from "./constants";
export * from "./utils";
export * from "./changeDoc";
export * from "./changeDoc/rules";
export { ApiCompare } from "./apiCompare";
export { JsonCompare } from "./jsonCompare";
export declare const apiDiff: typeof ApiCompare.apiDiff;
export declare const apiMerge: typeof ApiCompare.apiMerge;
export declare const apiDiffTree: typeof ApiCompare.apiDiffTree;
{
"name": "api-smart-diff",
"version": "0.7.2",
"version": "1.0.0-alpha.0",
"description": "Generate the diff between two API specifications (OpenAPI, AsyncAPI, JsonSchema)",
"module": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
"module": "dist/index.mjs",
"main": "dist/index.cjs",
"browser": "dist/index.iife.js",
"typings": "dist/index.d.ts",
"files": [
"dist",
"browser"
"dist"
],
"browser": {
"./dist/cjs/index.js": "./browser/api-smart-diff.js"
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"scripts": {
"build": "tsc && tsc --module commonjs --outDir dist/cjs",
"prebuild": "rimraf ./dist",
"build": "rollup -c",
"test": "jest --verbose",
"prepublish": "rm -r dist || true && npm run build && npm run build:web",
"test:coverage": "jest --verbose --coverage",
"build:web": "webpack"
"test:coverage": "jest --verbose --coverage"
},

@@ -37,5 +39,10 @@ "keywords": [

"devDependencies": {
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@types/jest": "^26.0.0",
"@types/js-yaml": "^4.0.5",
"allof-merge": "^0.2.0",
"fast-json-patch": "^3.1.1",

@@ -46,2 +53,6 @@ "gqlapi": "^0.4.6",

"js-yaml": "^4.1.0",
"rimraf": "^5.0.5",
"rollup": "^2.79.1",
"rollup-plugin-filesize": "^9.1.0",
"rollup-plugin-progress": "^1.1.2",
"ts-jest": "^26.1.0",

@@ -51,6 +62,3 @@ "ts-loader": "^8.4.0",

"tslint": "^6.1.2",
"typescript": "^4.6.2",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.12"
"typescript": "^4.6.2"
},

@@ -74,3 +82,7 @@ "jest": {

"collectCoverage": true
},
"dependencies": {
"allof-merge": "^0.5.2",
"json-crawl": "^0.4.2"
}
}
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