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

@bigcommerce/stencil-paper

Package Overview
Dependencies
Maintainers
2
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bigcommerce/stencil-paper - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

5

index.js

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

var configId = this.settings['theme_config_id'];
var sessionId = this.settings['theme_session_id'];
var protocolMatch = /(.*!?:)/;

@@ -199,2 +200,6 @@

if (sessionId) {
return [cdnUrl, 'stencil', versionId, configId, sessionId, path].join('/');
}
return [cdnUrl, 'stencil', versionId, configId, path].join('/');

@@ -201,0 +206,0 @@ };

2

package.json
{
"name": "@bigcommerce/stencil-paper",
"version": "1.1.0",
"version": "1.1.1",
"description": "A stencil plugin to register partials and helpers from handlebars and returns the compiled version for the stencil platform.",

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

@@ -63,2 +63,31 @@ var Code = require('code'),

describe('cdnify()', function () {
it('should not include session id', function (done) {
var paper = new Paper({
cdn_url: 'http://cdn.example.com/foo',
theme_version_id: '123',
theme_config_id: '234',
});
expect(paper.cdnify('/assets/image.jpg'))
.to.be.equal('http://cdn.example.com/foo/stencil/123/234/image.jpg');
done();
});
it('should use sessionId if available', function (done) {
var paper = new Paper({
cdn_url: 'http://cdn.example.com/foo',
theme_version_id: '123',
theme_config_id: '234',
theme_session_id: '345',
});
expect(paper.cdnify('/assets/image.jpg'))
.to.be.equal('http://cdn.example.com/foo/stencil/123/234/345/image.jpg');
done();
});
});
describe('render()', function() {

@@ -65,0 +94,0 @@ var templates = {

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