Socket
Socket
Sign inDemoInstall

stylable

Package Overview
Dependencies
Maintainers
4
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylable - npm Package Compare versions

Comparing version 5.4.0 to 5.4.1

10

dist/tests/utils/ast-matchers.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
function matchRuleAndDeclaration(parent, selectorIndex, selector, decl, msg) {
var rule = parent.nodes[selectorIndex];
chai_1.expect(rule.selector, (msg ? msg + ' ' : '') + "selector " + selectorIndex).to.equal(selector);
chai_1.expect(rule.nodes.map(function (x) { return x.toString(); }).join(';'), (msg ? msg + ' ' : '') + "selector " + selectorIndex + " first declaration").to.equal(decl);
if (rule.selector !== selector) {
throw new Error((msg ? msg + ' ' : '') + "selector " + selectorIndex);
}
// expect(rule.selector, `${msg ? msg + ' ' : ''}selector ${selectorIndex}`).to.equal(selector);
if (rule.nodes.map(function (x) { return x.toString(); }).join(';') !== decl) {
throw new Error((msg ? msg + ' ' : '') + "selector " + selectorIndex + " first declaration");
}
}

@@ -9,0 +13,0 @@ exports.matchRuleAndDeclaration = matchRuleAndDeclaration;

{
"name": "stylable",
"version": "5.4.0",
"version": "5.4.1",
"description": "CSS for Components",

@@ -46,3 +46,3 @@ "main": "./dist/src/index.js",

"license": "BSD-3-Clause",
"gitHead": "e2680fc7fdb08a07faf1d9573ec8733dac125251"
"gitHead": "487bea06faa86af76632b27a689bde70edc889f8"
}

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