New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

x18n

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

x18n - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

16

lib/x18n.js

@@ -285,8 +285,8 @@ (function() {

x18n.globalEval = function(src) {
return (window.execScript || function(src) {
return eval.call(window, src);
return ((typeof window !== "undefined" && window !== null ? window.execScript : void 0) || function(src) {
return eval.call(typeof window !== "undefined" && window !== null, src);
})(src);
};
oldT = window.t;
oldT = typeof window !== "undefined" && window !== null ? window.t : void 0;

@@ -328,7 +328,11 @@ x18n.t = function() {

x18n.t.noConflict = function() {
window.t = oldT;
if (typeof window !== "undefined" && window !== null) {
window.t = oldT;
}
return x18n.t;
};
window.t = x18n.t;
if (typeof window !== "undefined" && window !== null) {
window.t = x18n.t;
}

@@ -344,3 +348,3 @@ x18n.on('dict:change', function() {

if (typeof module !== "undefined" && module !== null) {
if ((typeof module !== "undefined" && module !== null) && (module.exports != null)) {
Observable = require('observable_js');

@@ -347,0 +351,0 @@ module.exports = base(Observable);

{
"name": "x18n",
"version": "1.0.6",
"version": "1.0.7",
"description": "A JavaScript internationalisation library",

@@ -5,0 +5,0 @@ "github": "https://github.com/florian/x18n",

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