Comparing version 2.0.1 to 2.0.2
@@ -6,2 +6,3 @@ #!/usr/bin/env node | ||
const fs = require('fs'); | ||
const process = require('process'); | ||
const minimist = require('minimist'); | ||
@@ -8,0 +9,0 @@ const {description, version} = require('./package.json'); |
@@ -54,3 +54,3 @@ /*! | ||
function oust(src, type, raw) { | ||
function oust(src, type, raw = false) { | ||
if (typeof src !== 'string' || !type) { | ||
@@ -84,3 +84,3 @@ throw new Error('`src` and `type` required'); | ||
if (raw) { | ||
if (raw === true) { | ||
return { | ||
@@ -97,4 +97,4 @@ $el: $element, | ||
module.exports = (src, type) => oust(src, type, false); | ||
module.exports = (src, type) => oust(src, type); | ||
module.exports.raw = (src, type) => oust(src, type, true); |
{ | ||
"name": "oust", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"author": "Addy Osmani <addyosmani@gmail.com> (https://addyosmani.com/)", | ||
@@ -26,4 +26,5 @@ "license": "Apache-2.0", | ||
"fix": "xo --fix", | ||
"uvu": "uvu test --ignore sample", | ||
"test": "npm run lint && npm run uvu", | ||
"uvu": "uvu test --ignore fixtures", | ||
"test": "npm run uvu", | ||
"test:coverage": "c8 npm run uvu", | ||
"xo": "xo" | ||
@@ -36,2 +37,3 @@ }, | ||
"devDependencies": { | ||
"c8": "^7.13.0", | ||
"uvu": "^0.5.6", | ||
@@ -54,3 +56,2 @@ "xo": "^0.52.3" | ||
"capitalized-comments": "off", | ||
"n/prefer-global/process": "off", | ||
"unicorn/prefer-module": "off" | ||
@@ -57,0 +58,0 @@ } |
@@ -96,6 +96,6 @@ # oust [![Build Status](https://github.com/addyosmani/oust/workflows/Tests/badge.svg)](https://github.com/addyosmani/oust/actions?workflow=Tests) | ||
Attribute | Default | Description | ||
--- | --- | --- | ||
`src` | not set | a valid HTML string to parse for references | ||
`type` | not set | one of `stylesheets`, `scripts`, `imports`, `preload`, `styles`, `links`, `images` | ||
Attribute | Default | Description | ||
--- | --- | --- | ||
`src` | not set | a valid HTML string to parse for references | ||
`type` | not set | one of `stylesheets`, `scripts`, `imports`, `preload`, `styles`, `links`, `images` | ||
@@ -102,0 +102,0 @@ ## CLI |
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
18442
115
3