babel-plugin-formatjs
Advanced tools
Comparing version 10.5.17 to 10.5.18
{ | ||
"name": "babel-plugin-formatjs", | ||
"version": "10.5.17", | ||
"version": "10.5.18", | ||
"description": "Extracts string messages for translation from modules that use formatjs.", | ||
@@ -14,13 +14,13 @@ "repository": { | ||
"dependencies": { | ||
"@babel/core": "^7.10.4", | ||
"@babel/helper-plugin-utils": "^7.10.4", | ||
"@babel/plugin-syntax-jsx": "7", | ||
"@babel/traverse": "7", | ||
"@babel/types": "^7.12.11", | ||
"@types/babel__core": "^7.1.7", | ||
"@types/babel__helper-plugin-utils": "^7.10.0", | ||
"@types/babel__traverse": "^7.1.7", | ||
"tslib": "^2.4.0", | ||
"@formatjs/icu-messageformat-parser": "2.7.9", | ||
"@formatjs/ts-transformer": "3.13.15" | ||
"@babel/core": "^7.25.0", | ||
"@babel/helper-plugin-utils": "^7.25.0", | ||
"@babel/plugin-syntax-jsx": "^7.25.0", | ||
"@babel/traverse": "^7.25.0", | ||
"@babel/types": "^7.25.0", | ||
"@types/babel__core": "^7.20.5", | ||
"@types/babel__helper-plugin-utils": "^7.10.3", | ||
"@types/babel__traverse": "^7.20.6", | ||
"tslib": "^2.7.0", | ||
"@formatjs/icu-messageformat-parser": "2.7.10", | ||
"@formatjs/ts-transformer": "3.13.16" | ||
}, | ||
@@ -27,0 +27,0 @@ "keywords": [ |
13
utils.js
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.storeMessage = exports.wasExtracted = exports.tagAsExtracted = exports.evaluateMessageDescriptor = exports.createMessageDescriptor = exports.getMessageDescriptorKey = void 0; | ||
exports.getMessageDescriptorKey = getMessageDescriptorKey; | ||
exports.createMessageDescriptor = createMessageDescriptor; | ||
exports.evaluateMessageDescriptor = evaluateMessageDescriptor; | ||
exports.tagAsExtracted = tagAsExtracted; | ||
exports.wasExtracted = wasExtracted; | ||
exports.storeMessage = storeMessage; | ||
const icu_messageformat_parser_1 = require("@formatjs/icu-messageformat-parser"); | ||
@@ -24,3 +29,2 @@ const ts_transformer_1 = require("@formatjs/ts-transformer"); | ||
} | ||
exports.getMessageDescriptorKey = getMessageDescriptorKey; | ||
function getMessageDescriptorValue(path, isMessageNode) { | ||
@@ -54,3 +58,2 @@ if (!path) { | ||
} | ||
exports.createMessageDescriptor = createMessageDescriptor; | ||
function evaluateMessageDescriptor(descriptorPath, isJSXSource = false, filename, idInterpolationPattern, overrideIdFn, preserveWhitespace) { | ||
@@ -83,3 +86,2 @@ let id = getMessageDescriptorValue(descriptorPath.id); | ||
} | ||
exports.evaluateMessageDescriptor = evaluateMessageDescriptor; | ||
function getICUMessageValue(messagePath, { isJSXSource = false } = {}, preserveWhitespace) { | ||
@@ -125,3 +127,2 @@ if (!messagePath) { | ||
} | ||
exports.tagAsExtracted = tagAsExtracted; | ||
/** | ||
@@ -134,3 +135,2 @@ * Check if a node was extracted | ||
} | ||
exports.wasExtracted = wasExtracted; | ||
/** | ||
@@ -157,2 +157,1 @@ * Store a message in our global messages | ||
} | ||
exports.storeMessage = storeMessage; |
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
23432
519
+ Added@formatjs/ecma402-abstract@2.2.0(transitive)
+ Added@formatjs/fast-memoize@2.2.1(transitive)
+ Added@formatjs/icu-messageformat-parser@2.7.10(transitive)
+ Added@formatjs/icu-skeleton-parser@1.8.4(transitive)
+ Added@formatjs/intl-localematcher@0.5.5(transitive)
+ Added@formatjs/ts-transformer@3.13.16(transitive)
+ Added@types/node@18.19.70(transitive)
+ Addedundici-types@5.26.5(transitive)
- Removed@formatjs/ecma402-abstract@2.1.0(transitive)
- Removed@formatjs/fast-memoize@2.2.0(transitive)
- Removed@formatjs/icu-messageformat-parser@2.7.9(transitive)
- Removed@formatjs/icu-skeleton-parser@1.8.3(transitive)
- Removed@formatjs/intl-localematcher@0.5.4(transitive)
- Removed@formatjs/ts-transformer@3.13.15(transitive)
- Removed@types/node@17.0.45(transitive)
Updated@babel/core@^7.25.0
Updated@babel/traverse@^7.25.0
Updated@babel/types@^7.25.0
Updated@types/babel__core@^7.20.5
Updatedtslib@^2.7.0