@prismatic-io/spectral
Advanced tools
Comparing version 9.0.2 to 9.0.3
@@ -20,2 +20,3 @@ "use strict"; | ||
const createStaticFiles = (_a) => __awaiter(void 0, [_a], void 0, function* ({ component, dryRun, signature, packageName, dependencies, verbose, sourceDir, destinationDir, registry, }) { | ||
var _b, _c, _d, _e; | ||
if (verbose) { | ||
@@ -56,3 +57,3 @@ console.info("Creating static files..."); | ||
isPublic: Boolean(component.public), | ||
action: Object.keys(component.actions).length | ||
action: Object.keys((_b = component.actions) !== null && _b !== void 0 ? _b : {}).length | ||
? { | ||
@@ -62,3 +63,3 @@ key: Object.keys(component.actions)[0], | ||
: null, | ||
trigger: Object.keys(component.triggers).length | ||
trigger: Object.keys((_c = component.triggers) !== null && _c !== void 0 ? _c : {}).length | ||
? { | ||
@@ -68,3 +69,3 @@ key: Object.keys(component.triggers)[0], | ||
: null, | ||
connection: component.connections.length | ||
connection: ((_d = component.connections) !== null && _d !== void 0 ? _d : []).length | ||
? { | ||
@@ -74,3 +75,3 @@ key: component.connections[0].key, | ||
: null, | ||
dataSource: Object.keys(component.dataSources).length | ||
dataSource: Object.keys((_e = component.dataSources) !== null && _e !== void 0 ? _e : {}).length | ||
? { | ||
@@ -77,0 +78,0 @@ key: Object.keys(component.dataSources)[0], |
{ | ||
"name": "@prismatic-io/spectral", | ||
"version": "9.0.2", | ||
"version": "9.0.3", | ||
"description": "Utility library for building Prismatic components", | ||
@@ -51,2 +51,3 @@ "keywords": ["prismatic"], | ||
"object-sizeof": "^2.6.4", | ||
"prettier": "2.6.2", | ||
"safe-stable-stringify": "2.3.1", | ||
@@ -53,0 +54,0 @@ "serialize-error": "8.1.0", |
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
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
301867
6275
17
+ Addedprettier@2.6.2
+ Addedprettier@2.6.2(transitive)