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

@stylable/core-test-kit

Package Overview
Dependencies
Maintainers
5
Versions
188
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/core-test-kit - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1-alpha.0

3

cjs/diagnostics.js

@@ -81,2 +81,5 @@ "use strict";

const expectedWarning = expectedWarnings[i];
if (!expectedWarning) {
return;
}
const path = expectedWarning.file;

@@ -83,0 +86,0 @@ chai_1.expect(report.message).to.equal(expectedWarning.message);

6

package.json
{
"name": "@stylable/core-test-kit",
"version": "2.4.0",
"version": "2.4.1-alpha.0",
"description": "Stylable core test-kit",

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

"dependencies": {
"@stylable/core": "^2.4.0",
"@stylable/core": "^2.4.1-alpha.0",
"chai": "^4.2.0",

@@ -34,3 +34,3 @@ "flat": "^5.0.0",

"license": "BSD-3-Clause",
"gitHead": "8eff3a9c749f71d4f9a5578e3b57be6034ef1435"
"gitHead": "d6d3e197927e688d6db4a831fb4285ad4c418df3"
}

@@ -66,5 +66,3 @@ import { Diagnostics, process, safeParse, StylableMeta, StylableResults } from '@stylable/core';

report.type,
`diagnostics severity mismatch, expected "${
expectedWarning.severity
}" but received "${report.type}"`
`diagnostics severity mismatch, expected "${expectedWarning.severity}" but received "${report.type}"`
).to.equal(expectedWarning.severity);

@@ -102,16 +100,21 @@ }

const expectedWarning = expectedWarnings[i];
if (!expectedWarning) {
return;
}
const path = expectedWarning.file;
expect(report.message).to.equal(expectedWarning.message);
if (!expectedWarning.skipLocationCheck) {
expect(report.node.source!.start).to.eql(locations[path].start);
}
if (locations[path].word !== null) {
expect(report.options.word).to.eql(locations[path].word);
}
if (expectedWarning.severity) {
expect(
report.type,
`diagnostics severity mismatch, expected ${expectedWarning.severity} but received ${
report.type
}`
`diagnostics severity mismatch, expected ${expectedWarning.severity} but received ${report.type}`
).to.equal(expectedWarning.severity);

@@ -118,0 +121,0 @@ }

Sorry, the diff of this file is not supported yet

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