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

18f-pages-server

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

18f-pages-server - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

2

lib/site-builder.js

@@ -164,3 +164,3 @@ 'use strict';

branchRegexp = new RegExp('refs/heads/(' + branchPattern + ')');
branchRegexp = new RegExp('refs/heads/(' + branchPattern + ')$');

@@ -167,0 +167,0 @@ handler = function(info) {

{
"name": "18f-pages-server",
"version": "0.3.1",
"version": "0.3.2",
"description": "Static website publishing server for 18F Pages",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -285,2 +285,22 @@ 'use strict';

it('should match the branch exactly, not just a prefix', function() {
var handler = SiteBuilder.makeBuilderListener(webhook, builderConfig),
payload = JSON.parse(JSON.stringify(incomingPayload)),
builder;
payload.ref = 'refs/heads/18f-pages-internal';
captureLogs();
builder = handler(payload);
if (builder) {
return builder.then(function() {
return Promise.reject(new Error('the handler should not have ' +
'matched a longer branch name that contains the target branch ' +
'name as a prefix'));
})
.catch(restoreLogs);
}
return restoreLogs();
});
it('should create a builder that builds the site', function() {

@@ -287,0 +307,0 @@ var handler = SiteBuilder.makeBuilderListener(webhook, builderConfig);

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