@podium/utils
Advanced tools
Comparing version 5.0.0-next.1 to 5.0.0-next.2
@@ -0,1 +1,8 @@ | ||
# [5.0.0-next.2](https://github.com/podium-lib/utils/compare/v5.0.0-next.1...v5.0.0-next.2) (2020-07-15) | ||
### Bug Fixes | ||
* Simplify js and css value validation ([#70](https://github.com/podium-lib/utils/issues/70)) ([05a1ffc](https://github.com/podium-lib/utils/commit/05a1ffc17bce3249b349b218a9b5ea8585db5df8)) | ||
# [5.0.0-next.1](https://github.com/podium-lib/utils/compare/v4.3.0...v5.0.0-next.1) (2020-07-12) | ||
@@ -2,0 +9,0 @@ |
'use strict'; | ||
const { validate } = require('@podium/schemas'); | ||
const { uriIsRelative, pathnameBuilder } = require('./utils'); | ||
@@ -42,3 +41,3 @@ const { buildLinkElement } = require('./html-utils'); | ||
} = {}) { | ||
if (validate.css(value).error) | ||
if (!toUndefined(value)) | ||
throw new Error( | ||
@@ -45,0 +44,0 @@ `Value for argument variable "value", "${value}", is not valid`, |
'use strict'; | ||
const { validate } = require('@podium/schemas'); | ||
const { uriIsRelative, pathnameBuilder } = require('./utils'); | ||
@@ -43,7 +42,7 @@ const { buildScriptElement } = require('./html-utils'); | ||
} = {}) { | ||
if (validate.js(value).error) | ||
if (!toUndefined(value)) | ||
throw new Error( | ||
`Value for argument variable "value", "${value}", is not valid`, | ||
); | ||
this[_pathname] = pathname; | ||
@@ -50,0 +49,0 @@ this[_prefix] = prefix; |
{ | ||
"name": "@podium/utils", | ||
"version": "5.0.0-next.1", | ||
"version": "5.0.0-next.2", | ||
"description": "Common generic utility methods shared by @podium modules.", | ||
@@ -60,2 +60,3 @@ "license": "MIT", | ||
"semantic-release": "17.1.1", | ||
"@podium/schemas": "5.0.0-next.1", | ||
"benchmark": "2.1.4", | ||
@@ -71,3 +72,2 @@ "eslint": "7.3.1", | ||
"dependencies": { | ||
"@podium/schemas": "4.0.2", | ||
"original-url": "1.2.3", | ||
@@ -74,0 +74,0 @@ "camelcase": "6.0.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
36965
2
16
801
- Removed@podium/schemas@4.0.2
- Removed@podium/schemas@4.0.2(transitive)
- Removedajv@6.12.2(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedpunycode@2.3.1(transitive)
- Removeduri-js@4.4.1(transitive)