New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ifdef-loader

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ifdef-loader - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

spec/data/simple.doubleslash.in.js

2

package.json
{
"name": "ifdef-loader",
"version": "2.0.1",
"version": "2.0.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "ifdef-loader.js",

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

describe("files spec", function () {
var files = ["simple", "nested", "dfleury", "nested.else"];
var files = ["simple", "nested", "dfleury", "nested.else", "simple.doubleslash"];
var fileSet = files.map(function (fn) { return ({

@@ -32,4 +32,5 @@ input: "spec/data/" + fn + ".in.js",

it("works on " + input, function () {
var tripleSlash = input.indexOf(".doubleslash.") == -1;
var inFile = read(input);
var actualFile = preprocessor_1.parse(inFile, defs);
var actualFile = preprocessor_1.parse(inFile, defs, false, tripleSlash);
var expectedFile = read(output);

@@ -43,4 +44,5 @@ write(actual, actualFile);

it("works on " + input, function () {
var tripleSlash = input.indexOf(".doubleslash.") == -1;
var inFile = removeCR(read(input));
var actualFile = preprocessor_1.parse(inFile, defs);
var actualFile = preprocessor_1.parse(inFile, defs, false, tripleSlash);
var expectedFile = removeCR(read(output));

@@ -47,0 +49,0 @@ write(actualLF, actualFile);

@@ -28,3 +28,3 @@ /// <reference types="jasmine" />

const files = [ "simple", "nested", "dfleury", "nested.else" ];
const files = [ "simple", "nested", "dfleury", "nested.else", "simple.doubleslash" ];

@@ -41,4 +41,5 @@ const fileSet = files.map(fn => ({

it(`works on ${input}`, ()=> {
const inFile = read(input);
const actualFile = parse(inFile, defs);
const tripleSlash = input.indexOf(".doubleslash.")==-1;
const inFile = read(input);
const actualFile = parse(inFile, defs, false, tripleSlash);
const expectedFile = read(output);

@@ -53,4 +54,5 @@ write(actual, actualFile);

it(`works on ${input}`, ()=> {
const tripleSlash = input.indexOf(".doubleslash.")==-1;
const inFile = removeCR(read(input));
const actualFile = parse(inFile, defs);
const actualFile = parse(inFile, defs, false, tripleSlash);
const expectedFile = removeCR(read(output));

@@ -57,0 +59,0 @@ write(actualLF, actualFile);

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