invariant

WebJar for invariant

Лицензия

Лицензия

MIT
Категории

Категории

Ant Компиляция и сборка
Группа

Группа

org.webjars.bowergithub.zertosh
Идентификатор

Идентификатор

invariant
Последняя версия

Последняя версия

2.2.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

invariant
WebJar for invariant
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/zertosh/invariant

Скачать invariant

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.zertosh/invariant/ -->
<dependency>
    <groupId>org.webjars.bowergithub.zertosh</groupId>
    <artifactId>invariant</artifactId>
    <version>2.2.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.zertosh/invariant/
implementation 'org.webjars.bowergithub.zertosh:invariant:2.2.4'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.zertosh/invariant/
implementation ("org.webjars.bowergithub.zertosh:invariant:2.2.4")
'org.webjars.bowergithub.zertosh:invariant:jar:2.2.4'
<dependency org="org.webjars.bowergithub.zertosh" name="invariant" rev="2.2.4">
  <artifact name="invariant" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.zertosh', module='invariant', version='2.2.4')
)
libraryDependencies += "org.webjars.bowergithub.zertosh" % "invariant" % "2.2.4"
[org.webjars.bowergithub.zertosh/invariant "2.2.4"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.bowergithub.zertosh : loose-envify jar [1.0.0,2)

Модули Проекта

Данный проект не имеет модулей.

invariant

Build Status

A mirror of Facebook's invariant (e.g. React, flux).

A way to provide descriptive errors in development but generic errors in production.

Install

With npm do:

npm install invariant

invariant(condition, message)

var invariant = require('invariant');

invariant(someTruthyVal, 'This will not throw');
// No errors

invariant(someFalseyVal, 'This will throw an error with this message');
// Error: Invariant Violation: This will throw an error with this message

Note: When process.env.NODE_ENV is not production, the message is required. If omitted, invariant will throw regardless of the truthiness of the condition. When process.env.NODE_ENV is production, the message is optional – so they can be minified away.

Browser

When used with browserify, it'll use browser.js (instead of invariant.js) and the envify transform will inline the value of process.env.NODE_ENV.

Node

The node version is optimized around the performance implications of accessing process.env. The value of process.env.NODE_ENV is cached, and repeatedly used instead of reading process.env. See Server rendering is slower with npm react #812

Версии библиотеки

Версия
2.2.4