@eik/common
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,8 @@ | ||
## [2.0.1](https://github.com/eik-lib/common/compare/v2.0.0...v2.0.1) (2021-02-09) | ||
### Bug Fixes | ||
* correctly return default type from eik-config class ([fadaea7](https://github.com/eik-lib/common/commit/fadaea794346c77ce60b07fb8efd3684fc2c3911)) | ||
# [2.0.0](https://github.com/eik-lib/common/compare/v1.6.0...v2.0.0) (2021-02-08) | ||
@@ -2,0 +9,0 @@ |
@@ -6,3 +6,3 @@ const { promisify } = require('util'); | ||
const SingleDestMultipleSourcesError = require('./single-dest-multiple-source-error'); | ||
const { validate, assert } = require('../schemas'); | ||
const { assert, schema } = require('../schemas'); | ||
@@ -34,4 +34,3 @@ const _config = Symbol('config'); | ||
get type() { | ||
const valid = validate.type(this[_config].type); | ||
return valid.value; | ||
return this[_config].type || schema.properties.type.default; | ||
} | ||
@@ -38,0 +37,0 @@ |
{ | ||
"name": "@eik/common", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Common utilities for Eik modules", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
28957
593