Socket
Socket
Sign inDemoInstall

@podium/utils

Package Overview
Dependencies
Maintainers
6
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@podium/utils - npm Package Compare versions

Comparing version 5.0.0-next.1 to 5.0.0-next.2

7

CHANGELOG.md

@@ -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 @@

3

lib/asset-css.js
'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"

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