Socket
Socket
Sign inDemoInstall

metal

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metal - npm Package Compare versions

Comparing version 2.4.4 to 2.4.5

11

lib/core.js

@@ -84,4 +84,5 @@ 'use strict';

* - renderers {Array} the template renderers that should be in
* compatibility mode. By default, all the ones that extend from
* IncrementalDomRenderer.
* compatibility mode, either their constructors or strings
* representing them (e.g. 'soy' or 'jsx'). By default, all the ones
* that extend from IncrementalDomRenderer.
* @type {Object}

@@ -107,2 +108,8 @@ */

value: function getCompatibilityModeData() {
// Compatibility mode can be set via the __METAL_COMPATIBILITY__ global var.
if (!compatibilityModeData_) {
if (typeof window !== 'undefined' && window.__METAL_COMPATIBILITY__) {
core.enableCompatibilityMode(window.__METAL_COMPATIBILITY__);
}
}
return compatibilityModeData_;

@@ -109,0 +116,0 @@ }

2

package.json
{
"name": "metal",
"version": "2.4.4",
"version": "2.4.5",
"description": "Core functions from Metal.js, with utilities for dealing with arrays, objects and others.",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

@@ -60,4 +60,5 @@ 'use strict';

* - renderers {Array} the template renderers that should be in
* compatibility mode. By default, all the ones that extend from
* IncrementalDomRenderer.
* compatibility mode, either their constructors or strings
* representing them (e.g. 'soy' or 'jsx'). By default, all the ones
* that extend from IncrementalDomRenderer.
* @type {Object}

@@ -75,2 +76,8 @@ */

static getCompatibilityModeData() {
// Compatibility mode can be set via the __METAL_COMPATIBILITY__ global var.
if (!compatibilityModeData_) {
if (typeof window !== 'undefined' && window.__METAL_COMPATIBILITY__) {
core.enableCompatibilityMode(window.__METAL_COMPATIBILITY__);
}
}
return compatibilityModeData_;

@@ -77,0 +84,0 @@ }

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