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

@stylable/custom-value

Package Overview
Dependencies
Maintainers
5
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/custom-value - npm Package Compare versions

Comparing version 2.3.3-alpha.0 to 2.3.3-alpha.1

34

cjs/st-border.js
"use strict";
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@stylable/core");
const core_1 = require("@stylable/core");
exports.stBorder = core_1.createCustomValue({
processArgs: function (node, customTypes) {
processArgs: (node, customTypes) => {
return core_1.CustomValueStrategy.args(node, customTypes);
},
createValue: function (_a) {
var _b = __read(_a, 3), size = _b[0], style = _b[1], color = _b[2];
createValue: ([size, style, color]) => {
return {
size: size,
style: style,
color: color
size,
style,
color
};
},
getValue: function (value, index) {
getValue: (value, index) => {
return value[index];
},
flattenValue: function (_a) {
var _b = _a.value, size = _b.size, style = _b.style, color = _b.color;
flattenValue: ({ value: { size, style, color } }) => {
return {

@@ -38,0 +20,0 @@ delimiter: ' ',

{
"name": "@stylable/custom-value",
"version": "2.3.3-alpha.0",
"version": "2.3.3-alpha.1",
"description": "Custom values (variables) for Stylable",

@@ -14,3 +14,3 @@ "main": "./cjs/index.js",

"dependencies": {
"@stylable/core": "^2.3.3-alpha.0"
"@stylable/core": "^2.3.3-alpha.1"
},

@@ -31,3 +31,3 @@ "files": [

"license": "BSD-3-Clause",
"gitHead": "a8fb880ad95147f02bfe18631167e0e9d6abd942"
"gitHead": "9dfdbda11e88cfd20459ec0e3fbdca24f2e2223b"
}

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