Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nav-frontend-alertstriper

Package Overview
Dependencies
Maintainers
19
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nav-frontend-alertstriper - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

22

lib/alertstripe.js

@@ -29,14 +29,12 @@ "use strict";

var ikonKind = function ikonKind(type) {
var kindMap = {
'info-sirkel-fyll': type === 'info',
'ok-sirkel-fyll': type === 'suksess',
'advarsel-sirkel-fyll': type === 'advarsel',
'feil-sirkel-fyll': type === 'feil'
};
return Object.keys(kindMap).map(function (key) {
return { key: key, predicate: kindMap[key] };
}).find(function (_ref) {
var predicate = _ref.predicate;
return predicate;
}).key;
switch (type) {
case 'suksess':
return 'ok-sirkel-fyll';
case 'advarsel':
return 'advarsel-sirkel-fyll';
case 'feil':
return 'feil-sirkel-fyll';
default:
return 'info-sirkel-fyll';
}
};

@@ -43,0 +41,0 @@

{
"name": "nav-frontend-alertstriper",
"version": "3.0.8",
"version": "3.0.9",
"main": "lib/alertstripe.js",

@@ -16,3 +16,2 @@ "types": "lib/alertstripe.d.ts",

"peerDependencies": {
"babel-polyfill": "^6.26.0",
"classnames": "^2.2.5",

@@ -19,0 +18,0 @@ "nav-frontend-alertstriper-style": "^2.0.7",

@@ -6,3 +6,3 @@ # react-module: nav-frontend-alertstriper

```
npm install babel-polyfill classnames nav-frontend-alertstriper nav-frontend-alertstriper-style nav-frontend-core nav-frontend-ikoner-assets nav-frontend-paneler-style nav-frontend-typografi nav-frontend-typografi-style prop-types react --save
npm install classnames nav-frontend-alertstriper nav-frontend-alertstriper-style nav-frontend-core nav-frontend-ikoner-assets nav-frontend-paneler-style nav-frontend-typografi nav-frontend-typografi-style prop-types react --save
```

@@ -9,0 +9,0 @@ <!-- AUTO-GENERATED-CONTENT:END *-->

Sorry, the diff of this file is not supported yet

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