Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clay-badge

Package Overview
Dependencies
Maintainers
4
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clay-badge - npm Package Compare versions

Comparing version 2.0.0-beta.8 to 2.0.0-rc.0

17

lib/ClayBadge.soy.js

@@ -45,8 +45,3 @@ 'use strict';

/**
* @param {{
* label: (!goog.soy.data.SanitizedContent|string),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }} opt_data
* @param {$render.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -57,3 +52,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
var $render = function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -69,3 +64,3 @@ var $$temp;

var style = soy.asserts.assertType(opt_data.style == null || goog.isString(opt_data.style) || opt_data.style instanceof goog.soy.data.SanitizedContent, 'style', opt_data.style, '!goog.soy.data.SanitizedContent|null|string|undefined');
var attributes__soy8 = function attributes__soy8() {
var attributes__soy23 = function attributes__soy23() {
incrementalDom.attr('class', 'badge badge-' + (($$temp = style) == null ? 'primary' : $$temp) + (elementClasses ? ' ' + elementClasses : ''));

@@ -77,7 +72,7 @@ if (id) {

incrementalDom.elementOpenStart('span');
attributes__soy8();
attributes__soy23();
incrementalDom.elementOpenEnd();
soyIdom.print(label);
incrementalDom.elementClose('span');
}
};
exports.render = $render;

@@ -89,3 +84,3 @@ /**

* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined)
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* }}

@@ -92,0 +87,0 @@ */

{
"name": "clay-badge",
"version": "2.0.0-beta.8",
"version": "2.0.0-rc.0",
"description": "Metal Clay Badge component.",

@@ -43,5 +43,5 @@ "license": "BSD",

"browserslist-config-clay-components": "^1.0.0-alpha.2",
"clay": "^2.0.0-beta.8",
"clay": "^2.0.0-rc.0",
"metal-dom": "^2.13.2",
"metal-tools-soy": "^4.2.1",
"metal-tools-soy": "^5.0.0",
"webpack": "^3.0.0"

@@ -48,0 +48,0 @@ },

@@ -26,8 +26,3 @@ /* jshint ignore:start */

/**
* @param {{
* label: (!goog.soy.data.SanitizedContent|string),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }} opt_data
* @param {$render.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -38,3 +33,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
var $render = function(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -50,3 +45,3 @@ var $$temp;

var style = soy.asserts.assertType(opt_data.style == null || (goog.isString(opt_data.style) || opt_data.style instanceof goog.soy.data.SanitizedContent), 'style', opt_data.style, '!goog.soy.data.SanitizedContent|null|string|undefined');
var attributes__soy8 = function() {
var attributes__soy23 = function() {
incrementalDom.attr('class', 'badge badge-' + (($$temp = style) == null ? 'primary' : $$temp) + (elementClasses ? ' ' + elementClasses : ''));

@@ -58,7 +53,7 @@ if (id) {

incrementalDom.elementOpenStart('span');
attributes__soy8();
attributes__soy23();
incrementalDom.elementOpenEnd();
soyIdom.print(label);
soyIdom.print(label);
incrementalDom.elementClose('span');
}
};
exports.render = $render;

@@ -70,3 +65,3 @@ /**

* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined)
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* }}

@@ -73,0 +68,0 @@ */

Sorry, the diff of this file is not supported yet

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