New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dalian/component-colors

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dalian/component-colors - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

dist/dalian.component-colors.min.js
// https://www.npmjs.com/package/@dalian/colors v0.0.1 Copyright 2019 Enys Mones
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):((e=e||self).dalian=e.dalian||{},e.dalian.components=e.dalian.components||{},e.dalian.components.Colors=o())}(this,function(){"use strict";return(e,o)=>{(e=e||{})._colors={policy:void 0,mapping:e=>f()};const f=()=>{let e=[];return o=>{let f=e.indexOf(o);return["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999","#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9"][f>-1?f:e.push(o)-1]}};return(o=o||{}).colors=(n=>(e._colors.policy=n,e._colors.mapping=void 0===n?f():"string"==typeof n?()=>n:e=>n[e],o)),{self:e,api:o}}});
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):((e=e||self).dalian=e.dalian||{},e.dalian.components=e.dalian.components||{},e.dalian.components.Colors=o())}(this,function(){"use strict";return(e,o)=>{const f=()=>{let e=[];return o=>{let f=e.indexOf(o);return["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999","#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9"][f>-1?f:e.push(o)-1]}};return(e=e||{})._colors={policy:void 0,mapping:f()},(o=o||{}).colors=(n=>(e._colors.policy=n,e._colors.mapping=void 0===n?f():"string"==typeof n?()=>n:e=>n[e],o)),{self:e,api:o}}});
{
"name": "@dalian/component-colors",
"version": "0.0.1",
"version": "0.0.2",
"description": "Component implementing the color policy functionality.",

@@ -11,3 +11,3 @@ "author": {

"homepage": "https://www.npmjs.com/package/@dalian/colors",
"main": "dist/dalian.colors.min.js",
"main": "dist/dalian.component-colors.min.js",
"module": "src/index.js",

@@ -14,0 +14,0 @@ "license": "MIT",

@@ -11,3 +11,3 @@ import { terser } from 'rollup-plugin-terser'

external: Object.keys(dependencies),
input: 'src/index.js',
input: meta.module,
plugins: [

@@ -18,3 +18,3 @@ terser({output: {preamble: copyright}})

globals: dependencies,
file: `dist/${lib}.component-${name}.min.js`,
file: meta.main,
format: 'umd',

@@ -21,0 +21,0 @@ name: `${lib}.components.${name[0].toUpperCase().concat(name.slice(1))}`,

export default (self, api) => {
// Set default values
self = self || {}
self._colors = {
policy: undefined,
mapping: key => _defaultColors(key)
}

@@ -36,2 +32,6 @@ // Private methods

}
self._colors = {
policy: undefined,
mapping: _defaultColors()
}

@@ -38,0 +38,0 @@ // Public API

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