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

@web/test-runner-commands

Package Overview
Dependencies
Maintainers
7
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web/test-runner-commands - npm Package Compare versions

Comparing version 0.5.5 to 0.5.6

6

CHANGELOG.md
# @web/test-runner-commands
## 0.5.6
### Patch Changes
- cb693c71: Use block comments in snapshots to make them work in all browsers
## 0.5.5

@@ -4,0 +10,0 @@

6

dist/snapshotPlugin.js

@@ -67,3 +67,3 @@ "use strict";

? await readFile(snapshotPath, 'utf-8')
: 'export const snapshotsVersion = 1;\nexport const snapshots = {};\n\n';
: '/* @web/test-runner snapshot v1 */\nexport const snapshots = {};\n\n';
this.snapshots.set(snapshotPath, content);

@@ -79,3 +79,3 @@ // resolve read promise to let others who are waiting continue

const startMarker = `snapshots[${nameStr}]`;
const endMarker = `// end snapshot ${name}\n\n`;
const endMarker = `/* end snapshot ${name} */\n\n`;
const replacement = updatedSnapshot

@@ -102,3 +102,3 @@ ? `${startMarker} = \n\`${updatedSnapshot}\`;\n${endMarker}`

this.snapshots.set(snapshotPath, updatedContent);
if (updatedContent.includes('// end snapshot')) {
if (updatedContent.includes('/* end snapshot')) {
// update or create snapshot

@@ -105,0 +105,0 @@ const fileDir = path_1.default.dirname(snapshotPath);

{
"name": "@web/test-runner-commands",
"version": "0.5.5",
"version": "0.5.6",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -73,3 +73,3 @@ /* eslint-disable @typescript-eslint/no-empty-function */

? await readFile(snapshotPath, 'utf-8')
: 'export const snapshotsVersion = 1;\nexport const snapshots = {};\n\n';
: '/* @web/test-runner snapshot v1 */\nexport const snapshots = {};\n\n';
this.snapshots.set(snapshotPath, content);

@@ -87,3 +87,3 @@

const startMarker = `snapshots[${nameStr}]`;
const endMarker = `// end snapshot ${name}\n\n`;
const endMarker = `/* end snapshot ${name} */\n\n`;
const replacement = updatedSnapshot

@@ -114,3 +114,3 @@ ? `${startMarker} = \n\`${updatedSnapshot}\`;\n${endMarker}`

this.snapshots.set(snapshotPath, updatedContent);
if (updatedContent.includes('// end snapshot')) {
if (updatedContent.includes('/* end snapshot')) {
// update or create snapshot

@@ -117,0 +117,0 @@ const fileDir = path.dirname(snapshotPath);

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