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

@hmcts/one-per-page

Package Overview
Dependencies
Maintainers
16
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hmcts/one-per-page - npm Package Compare versions

Comparing version 3.3.3 to 3.3.6

examples/test-app/.yarnrc

2

package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/hmcts/one-per-page#readme",
"version": "3.3.3",
"version": "3.3.6",
"main": "./src/main.js",

@@ -8,0 +8,0 @@ "repository": {

@@ -23,2 +23,6 @@ const util = require('util');

}
if (name === 'keys') {
const content = target.getResourceBundle(target.language, `${step.name}`);
return Object.keys(content);
}
const key = `${step.name}:${prefix}`;

@@ -25,0 +29,0 @@ if (toStringKeys.includes(name)) {

@@ -79,2 +79,3 @@ const { fileExists, readJson, glob } = require('../util/fs');

const promises = [
glob('common/*.json').then(loadContents),
glob(`${step.dirname}/content.json`).then(loadContents),

@@ -81,0 +82,0 @@ glob(`${step.dirname}/content.@(*).json`).then(loadContents),

@@ -18,6 +18,6 @@ const expressSession = require('express-session');

const userCookie = userOpts.cookie || {};
const cookie = Object.assign({}, userCookie, {
const cookie = Object.assign({}, {
secure: defaultIfUndefined(userCookie.secure, !isTest),
expires: defaultIfUndefined(userCookie.expires, false)
});
}, userCookie);

@@ -24,0 +24,0 @@ return {

@@ -16,4 +16,9 @@ const util = require('util');

const exists = sinon.stub();
const getResourceBundle = sinon.stub().returns({ key: 'key' });
const fakeStep = { name: 'FakeStep' };
const proxy = new Proxy({ t, exists }, contentProxy(fakeStep));
const proxy = new Proxy({
t,
exists,
getResourceBundle
}, contentProxy(fakeStep));

@@ -99,3 +104,9 @@ beforeEach(() => {

});
describe('#keys (used by one-per-page-test-suite)', () => {
it('returns all keys for properties', () => {
expect(proxy.foo.keys).to.eql(['key']);
});
});
});
});

@@ -73,2 +73,7 @@ const express = require('express');

};
supertestObj.text = assertions => {
return supertestObj.then(res => {
return assertions(res.text);
});
};
supertestObj.session = assertions => {

@@ -75,0 +80,0 @@ return supertestObj.then(res => {

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