@podium/utils
Advanced tools
Comparing version 4.1.0-next.1 to 4.1.0-next.2
@@ -17,2 +17,3 @@ 'use strict'; | ||
const _media = Symbol('podium:asset:css:media'); | ||
const _type = Symbol('podium:asset:css:type'); | ||
const _rel = Symbol('podium:asset:css:rel'); | ||
@@ -43,2 +44,3 @@ const _as = Symbol('podium:asset:css:as'); | ||
media = '', | ||
type = 'text/css', | ||
rel = 'stylesheet', | ||
@@ -61,2 +63,3 @@ as = '', | ||
this[_media] = media; | ||
this[_type] = type; | ||
this[_rel] = rel; | ||
@@ -116,2 +119,10 @@ this[_as] = as; | ||
get type() { | ||
return this[_type]; | ||
} | ||
set type(value) { | ||
this[_type] = value; | ||
} | ||
get href() { | ||
@@ -149,2 +160,3 @@ return this.value; | ||
media: toUndefined(this.media), | ||
type: this.type, | ||
rel: this.rel, | ||
@@ -184,2 +196,3 @@ as: toUndefined(this.as), | ||
args.push(`type="${this.type}"`); | ||
args.push(`rel="${this.rel}"`); | ||
@@ -186,0 +199,0 @@ |
{ | ||
"name": "@podium/utils", | ||
"version": "4.1.0-next.1", | ||
"version": "4.1.0-next.2", | ||
"description": "Common generic utility methods shared by @podium modules.", | ||
@@ -21,5 +21,7 @@ "license": "MIT", | ||
"files": [ | ||
"lib" | ||
"lib", | ||
"index.d.ts" | ||
], | ||
"main": "./lib/main.js", | ||
"types": "index.d.ts", | ||
"scripts": { | ||
@@ -26,0 +28,0 @@ "lint": "eslint .", |
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
33311
11
741