@appnest/lit-util
Advanced tools
Comparing version 0.0.11 to 0.0.12
export * from "./custom-element"; | ||
export declare const testDec: () => (proto: any, name: string) => void; |
export * from "./custom-element"; | ||
export const testDec = () => (proto, name) => { | ||
console.log(proto, name); | ||
}; | ||
// export const testDec = () => | ||
// (proto: any, name: string) => { | ||
// console.log(proto, name); | ||
// }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@appnest/lit-util", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "A collection of useful functions for projects based on lit-html", | ||
"license": "MIT", | ||
@@ -31,8 +32,10 @@ "author": "Appnest", | ||
"scripts": { | ||
"b:demo:dev": "webpack --mode=development", | ||
"b:demo:prod": "webpack --mode=production --optimize-minimize ", | ||
"s": "node_modules/.bin/webpack-dev-server --open --hot --inline --config webpack.config.js --mode=development", | ||
"start": "npm run s", | ||
"ncu": "ncu -u -a && npm update && npm install", | ||
"test": "karma start", | ||
"b:dev": "rollup -c --environment NODE_ENV:dev", | ||
"b:prod": "rollup -c --environment NODE_ENV:prod", | ||
"s:dev": "rollup -c --watch --environment NODE_ENV:dev", | ||
"s:prod": "rollup -c --watch --environment NODE_ENV:prod", | ||
"s": "npm run s:dev", | ||
"start": "npm run s", | ||
"b:lib": "node pre-build.js && tsc -p tsconfig.build.json", | ||
@@ -49,22 +52,7 @@ "publish": "cd dist && npm publish --access=public && cd ..", | ||
"dependencies": { | ||
"@polymer/lit-element": "^0.6.2", | ||
"lit-html": "^0.12.0" | ||
"@polymer/lit-element": "^0.6.2" | ||
}, | ||
"devDependencies": { | ||
"@appnest/web-config": "0.0.36", | ||
"@types/chai": "^4.1.6", | ||
"@types/mocha": "^5.2.5", | ||
"chai": "^4.2.0", | ||
"chromedriver": "^2.42.0", | ||
"copy-webpack-plugin": "^4.5.3", | ||
"karma": "^3.0.0", | ||
"karma-babel-preprocessor": "^7.0.0", | ||
"karma-chai": "^0.1.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-firefox-launcher": "^1.1.0", | ||
"karma-mocha": "^1.3.0", | ||
"karma-safari-launcher": "^1.0.0", | ||
"karma-webpack": "^3.0.5", | ||
"mocha": "^5.2.0" | ||
"@appnest/web-config": "0.1.27" | ||
} | ||
} |
# @appnest/lit-util | ||
<a href="https://npmcharts.com/compare/@appnest/lit-util?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/@appnest/lit-util.svg" height="20"></img></a> | ||
<a href="https://david-dm.org/andreasbm/lit-util"><img alt="Dependencies" src="https://img.shields.io/david/andreasbm/lit-util.svg" height="20"></img></a> | ||
<a href="https://www.npmjs.com/package/@appnest/lit-util"><img alt="NPM Version" src="https://img.shields.io/npm/v/@appnest/lit-util.svg" height="20"></img></a> | ||
<a href="https://github.com/andreasbm/lit-util/graphs/contributors"><img alt="Contributors" src="https://img.shields.io/github/contributors/andreasbm/lit-util.svg" height="20"></img></a> | ||
<a href="https://opensource.org/licenses/MIT"><img alt="MIT License" src="https://img.shields.io/badge/License-MIT-yellow.svg" height="20"></img></a> | ||
## 🤔 What is this? | ||
@@ -7,3 +13,2 @@ | ||
## 🎉 Install the dependency | ||
@@ -10,0 +15,0 @@ |
@@ -33,3 +33,2 @@ /** | ||
container.remove(); | ||
container = null; | ||
} | ||
@@ -36,0 +35,0 @@ /** |
@@ -37,3 +37,3 @@ import { HEX_PATTERN } from "../constant/pattern"; | ||
if (typeof color === "string") { | ||
color = hexToRGB(color); | ||
color = hexToRGB(color) || { r: 0, g: 0, b: 0, a: 0 }; | ||
} | ||
@@ -40,0 +40,0 @@ const yiq = ((color.r * 299) + (color.g * 587) + (color.b * 114)) / 1000; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
36478
1
1
41
669
- Removedlit-html@^0.12.0
- Removedlit-html@0.12.0(transitive)