@vocab/react
Advanced tools
Comparing version 0.0.2 to 0.0.3
# @vocab/react | ||
## 0.0.2 | ||
## 0.0.3 | ||
### Patch Changes | ||
- [`f79c85e`](https://github.com/seek-oss/vocab/commit/f79c85e37c5b927306866961cf6cb3c541d0d6cf) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Add @vocab/types dep | ||
## 0.0.2 | ||
### Patch Changes | ||
- [`9f99ea7`](https://github.com/seek-oss/vocab/commit/9f99ea7c827ec4d7c21a485e17e3adbbd1c49319) Thanks [@jahredhope](https://github.com/jahredhope)! - Remove React as dependency and target node |
@@ -55,3 +55,5 @@ 'use strict'; | ||
function t(key, params) { | ||
if (!translationsObject?.[key]) { | ||
var _translationsObject; | ||
if (!((_translationsObject = translationsObject) === null || _translationsObject === void 0 ? void 0 : _translationsObject[key])) { | ||
trace('useTranslation', 't', 'Missing value', key); | ||
@@ -58,0 +60,0 @@ return null; |
@@ -55,3 +55,5 @@ 'use strict'; | ||
function t(key, params) { | ||
if (!translationsObject?.[key]) { | ||
var _translationsObject; | ||
if (!((_translationsObject = translationsObject) === null || _translationsObject === void 0 ? void 0 : _translationsObject[key])) { | ||
trace('useTranslation', 't', 'Missing value', key); | ||
@@ -58,0 +60,0 @@ return null; |
@@ -47,3 +47,5 @@ import React, { useContext, useReducer } from 'react'; | ||
function t(key, params) { | ||
if (!translationsObject?.[key]) { | ||
var _translationsObject; | ||
if (!((_translationsObject = translationsObject) === null || _translationsObject === void 0 ? void 0 : _translationsObject[key])) { | ||
trace('useTranslation', 't', 'Missing value', key); | ||
@@ -50,0 +52,0 @@ return null; |
{ | ||
"name": "@vocab/react", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "dist/vocab-react.cjs.js", | ||
@@ -12,8 +12,9 @@ "module": "dist/vocab-react.esm.js", | ||
"dependencies": { | ||
"@vocab/types": "^0.0.2", | ||
"intl-messageformat": "^9.3.18" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^16.9.56", | ||
"@types/react": "^17.0.0", | ||
"react": "^17.0.1" | ||
} | ||
} |
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
10534
272
3
+ Added@vocab/types@^0.0.2
+ Added@vocab/types@0.0.2(transitive)