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

gas-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gas-webpack-plugin - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [2.2.1](https://github.com/fossamagna/gas-webpack-plugin/compare/v2.2.0...v2.2.1) (2022-03-31)
### Bug Fixes
* make sure using slash as path separator of include path pattern on Windows ([e959c1c](https://github.com/fossamagna/gas-webpack-plugin/commit/e959c1c33bc57f1de6be8431f1443506ca6dcac7))
# [2.2.0](https://github.com/fossamagna/gas-webpack-plugin/compare/v2.1.0...v2.2.0) (2022-03-10)

@@ -2,0 +11,0 @@

9

index.js

@@ -8,2 +8,3 @@ 'use strict';

const path = require('path');
const slash = require("slash");

@@ -65,5 +66,9 @@ const defaultOptions = {

match(target, pattern) {
return minimatch(slash(target), slash(pattern));
}
apply(dep, source) {
const module = dep.m;
if (!this.includePatterns.some(file => minimatch(module.resource, file))) {
if (!this.includePatterns.some(file => this.match(module.resource, file))) {
return;

@@ -73,3 +78,3 @@ }

comment: this.comment,
autoGlobalExports: module.resource && this.autoGlobalExportsFilePatterns.some(file => minimatch(module.resource, file)),
autoGlobalExports: module.resource && this.autoGlobalExportsFilePatterns.some(file => this.match(module.resource, file)),
};

@@ -76,0 +81,0 @@

{
"name": "gas-webpack-plugin",
"version": "2.2.0",
"version": "2.2.1",
"description": "Webpack Plugin for Google Apps Script",

@@ -10,2 +10,3 @@ "main": "index.js",

"minimatch": "^5.0.0",
"slash": "^3.0.0",
"webpack-sources": "^3.1.1"

@@ -16,6 +17,6 @@ },

"es3ify-webpack-plugin": "^0.1.0",
"eslint": "8.10.0",
"eslint": "8.12.0",
"memory-fs": "0.5.0",
"nyc": "15.1.0",
"tap": "16.0.0",
"tap": "16.0.1",
"ts-loader": "^9.1.1",

@@ -22,0 +23,0 @@ "typescript": "^4.0.2",

@@ -60,3 +60,3 @@ const webpack = require("webpack");

}`
t.ok(bundle.startsWith(output), bundle);
t.ok(bundle.replace(/\r\n/g, "\n").startsWith(output), bundle);
t.match(bundle, /.*global\.foo = exports\.foo;.*/);

@@ -63,0 +63,0 @@ t.end();

@@ -46,3 +46,3 @@ const webpack = require("webpack");

}`
t.ok(bundle.toString().startsWith(output), 'plugin and expected output match');
t.ok(bundle.replace(/\r\n/g, "\n").startsWith(output), 'plugin and expected output match:' + bundle);
t.match(bundle, /.*global\.foo = exports\.foo;.*/);

@@ -96,3 +96,3 @@ t.end();

}`
t.ok(bundle.toString().startsWith(output), 'plugin and expected output match');
t.ok(bundle.replace(/\r\n/g, "\n").startsWith(output), 'plugin and expected output match');
t.match(bundle, /.*global\.foo = exports\.foo;.*/);

@@ -123,5 +123,5 @@ t.end();

}`
t.ok(bundle.toString().startsWith(output), 'plugin and expected output match');
t.ok(bundle.replace(/\r\n/g, "\n").startsWith(output), 'plugin and expected output match');
t.end();
});
});

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