@stoplight/types
Advanced tools
Comparing version 12.3.0 to 13.0.0-beta.1
@@ -1,9 +0,64 @@ | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
exports.__esModule = true; | ||
__export(require("./http-spec")); | ||
__export(require("./logs")); | ||
__export(require("./diagnostics")); | ||
__export(require("./node")); | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
exports.HttpParamStyles = void 0; | ||
(function (HttpParamStyles) { | ||
HttpParamStyles["Simple"] = "simple"; | ||
HttpParamStyles["Matrix"] = "matrix"; | ||
HttpParamStyles["Label"] = "label"; | ||
HttpParamStyles["Form"] = "form"; | ||
HttpParamStyles["CommaDelimited"] = "commaDelimited"; | ||
HttpParamStyles["SpaceDelimited"] = "spaceDelimited"; | ||
HttpParamStyles["PipeDelimited"] = "pipeDelimited"; | ||
HttpParamStyles["DeepObject"] = "deepObject"; | ||
})(exports.HttpParamStyles || (exports.HttpParamStyles = {})); | ||
/** | ||
* Represents the severity of diagnostics. | ||
*/ | ||
exports.DiagnosticSeverity = void 0; | ||
(function (DiagnosticSeverity) { | ||
/** | ||
* Something not allowed by the rules of a language or other means. | ||
*/ | ||
DiagnosticSeverity[DiagnosticSeverity["Error"] = 0] = "Error"; | ||
/** | ||
* Something suspicious but allowed. | ||
*/ | ||
DiagnosticSeverity[DiagnosticSeverity["Warning"] = 1] = "Warning"; | ||
/** | ||
* Something to inform about but not a problem. | ||
*/ | ||
DiagnosticSeverity[DiagnosticSeverity["Information"] = 2] = "Information"; | ||
/** | ||
* Something to hint to a better way of doing it, like proposing | ||
* a refactoring. | ||
*/ | ||
DiagnosticSeverity[DiagnosticSeverity["Hint"] = 3] = "Hint"; | ||
})(exports.DiagnosticSeverity || (exports.DiagnosticSeverity = {})); | ||
/** | ||
* Stoplight node types | ||
*/ | ||
exports.NodeType = void 0; | ||
(function (NodeType) { | ||
NodeType["Article"] = "article"; | ||
NodeType["HttpService"] = "http_service"; | ||
NodeType["HttpServer"] = "http_server"; | ||
NodeType["HttpOperation"] = "http_operation"; | ||
NodeType["Model"] = "model"; | ||
NodeType["Generic"] = "generic"; | ||
NodeType["Unknown"] = "unknown"; | ||
NodeType["TableOfContents"] = "table_of_contents"; | ||
NodeType["SpectralRuleset"] = "spectral_ruleset"; | ||
})(exports.NodeType || (exports.NodeType = {})); | ||
/** | ||
* Node data formats | ||
*/ | ||
exports.NodeFormat = void 0; | ||
(function (NodeFormat) { | ||
NodeFormat["Json"] = "json"; | ||
NodeFormat["Markdown"] = "markdown"; | ||
NodeFormat["Yaml"] = "yaml"; | ||
})(exports.NodeFormat || (exports.NodeFormat = {})); |
{ | ||
"name": "@stoplight/types", | ||
"version": "12.3.0", | ||
"version": "13.0.0-beta.1", | ||
"description": "Common typings for the Stoplight ecosystem.", | ||
@@ -14,3 +14,9 @@ "keywords": [], | ||
}, | ||
"type": "commonjs", | ||
"main": "dist/index.js", | ||
"module": "dist/index.ejs", | ||
"exports": { | ||
"require": "./dist/index.js", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"license": "Apache-2.0", | ||
@@ -24,3 +30,4 @@ "files": [ | ||
"scripts": { | ||
"build": "tsc -p ./tsconfig.json -d", | ||
"build": "rollup -c && tsc --emitDeclarationOnly", | ||
"postbuild": "cp ./dist/index.mjs ./dist/index.ejs", | ||
"commit": "git-cz", | ||
@@ -40,2 +47,3 @@ "lint": "tslint -c tslint.json 'src/**/*.ts?'", | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "^8.2.1", | ||
"@types/jest": "^25.1.4", | ||
@@ -45,2 +53,3 @@ "@types/node": "^13.9.1", | ||
"lodash": "^4.17.15", | ||
"rollup": "^2.47.0", | ||
"semantic-release": "^17.0.4", | ||
@@ -47,0 +56,0 @@ "ts-jest": "^25.2.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32772
552
11
17
1