Comparing version 6.0.13 to 6.0.14
@@ -5,4 +5,4 @@ "use strict"; | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./plugin"), exports); | ||
tslib_1.__exportStar(require("./provider"), exports); | ||
(0, tslib_1.__exportStar)(require("./plugin"), exports); | ||
(0, tslib_1.__exportStar)(require("./provider"), exports); | ||
var injection_key_1 = require("./injection-key"); | ||
@@ -9,0 +9,0 @@ Object.defineProperty(exports, "intlKey", { enumerable: true, get: function () { return injection_key_1.intlKey; } }); |
{ | ||
"name": "vue-intl", | ||
"version": "6.0.13", | ||
"version": "6.0.14", | ||
"description": "formatjs intl binding for vue", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@formatjs/intl": "1.14.3", | ||
"@formatjs/intl": "1.15.0", | ||
"tslib": "^2.1.0" | ||
@@ -23,0 +23,0 @@ }, |
@@ -11,3 +11,3 @@ "use strict"; | ||
} | ||
var intl = intl_1.createIntl(options); | ||
var intl = (0, intl_1.createIntl)(options); | ||
app.config.globalProperties.$intl = intl; | ||
@@ -14,0 +14,0 @@ app.config.globalProperties.$formatMessage = intl.formatMessage; |
@@ -7,7 +7,7 @@ "use strict"; | ||
function provideIntl(intl) { | ||
vue_1.provide(injection_key_1.intlKey, intl); | ||
(0, vue_1.provide)(injection_key_1.intlKey, intl); | ||
} | ||
exports.provideIntl = provideIntl; | ||
function useIntl() { | ||
var intl = vue_1.inject(injection_key_1.intlKey); | ||
var intl = (0, vue_1.inject)(injection_key_1.intlKey); | ||
if (!intl) { | ||
@@ -14,0 +14,0 @@ throw new Error("An intl object was not injected. Install the plugin or use provideIntl."); |
8381
+ Added@formatjs/icu-messageformat-parser@2.0.14(transitive)
+ Added@formatjs/icu-skeleton-parser@1.3.1(transitive)
+ Added@formatjs/intl@1.15.0(transitive)
+ Addedintl-messageformat@9.9.4(transitive)
- Removed@formatjs/icu-messageformat-parser@2.0.13(transitive)
- Removed@formatjs/icu-skeleton-parser@1.3.0(transitive)
- Removed@formatjs/intl@1.14.3(transitive)
- Removedintl-messageformat@9.9.3(transitive)
Updated@formatjs/intl@1.15.0