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

nav-frontend-skjema

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nav-frontend-skjema - npm Package Compare versions

Comparing version 0.1.14 to 0.1.15

24

lib/skjemaelement-feilmelding.js

@@ -1,2 +0,2 @@

"use strict";
'use strict';

@@ -10,6 +10,10 @@ Object.defineProperty(exports, "__esModule", {

var _react = require("react");
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -33,7 +37,7 @@

_createClass(SkjemaelementFeilmelding, [{
key: "renderFeil",
key: 'renderFeil',
value: function renderFeil() {
return _react2.default.createElement(
"div",
{ className: "skjemaelement__feilmelding" },
'div',
{ className: 'skjemaelement__feilmelding' },
this.props.feil.feilmelding

@@ -43,3 +47,3 @@ );

}, {
key: "render",
key: 'render',
value: function render() {

@@ -49,4 +53,4 @@ var feil = this.props.feil;

return _react2.default.createElement(
"div",
{ role: "alert", "aria-live": "assertive" },
'div',
{ role: 'alert', 'aria-live': 'assertive' },
feil && this.renderFeil()

@@ -60,4 +64,4 @@ );

var skjemaelementFeilmeldingShape = exports.skjemaelementFeilmeldingShape = _react.PropTypes.shape({
feilmelding: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.node // For å slippe igjennom FormattedMessage fra react-intl
var skjemaelementFeilmeldingShape = exports.skjemaelementFeilmeldingShape = _propTypes2.default.shape({
feilmelding: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node // For å slippe igjennom FormattedMessage fra react-intl
]).isRequired

@@ -64,0 +68,0 @@ });

{
"name": "nav-frontend-skjema",
"version": "0.1.14",
"version": "0.1.15",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "jsnext:main": "src/index.js",

@@ -1,2 +0,3 @@

import React, { Component, PropTypes as PT } from 'react';
import React, { Component } from 'react';
import PT from 'prop-types';

@@ -3,0 +4,0 @@ class SkjemaelementFeilmelding extends Component {

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