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

henrybuilt-js-library

Package Overview
Dependencies
Maintainers
0
Versions
443
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

henrybuilt-js-library - npm Package Compare versions

Comparing version 1.8.318 to 1.8.319

2

package.json
{
"name": "henrybuilt-js-library",
"version": "1.8.318",
"version": "1.8.319",
"description": "",

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

@@ -317,5 +317,28 @@ var libMaterials = require('@src/materials/materials');

}
if (moment(project.pricingDate).isSameOrAfter('2025-1-23')) {
if (material.boxFactorCategory === 'clearVeneer') {
factor = 1.5;
}
if (material.boxFactorCategory === 'stainedVeneer') {
factor = 2;
}
}
}
}
else if (key === 'box' && project.companyKey === 'vp') {
var linerIds = [237];
if (moment(project.pricingDate).isSameOrAfter('2025-1-23')) {
if (material.boxFactorCategory === 'clearVeneer') {
factor = 1.5;
}
if (material.boxFactorCategory === 'stainedVeneer') {
factor = 2;
}
}
}
//02-17-2021 increase material C and pv satin materials 18%

@@ -426,3 +449,4 @@ if (moment(project.pricingDate).isSameOrAfter('2021-02-17')) {

// #accessories, ST projects, and PO's don't get foundation factor
if ((project.companyKey === 'hb' && project.brandKey !== 'po') && !product.isPrimaryObject && !_.includes([60, 74, 76, 61], product.category) && product.id !== 516) {
// foundation factor discontinued as of Jan 23, 2025
if (moment(project.pricingDate).isBefore('2025-01-23') && (project.companyKey === 'hb' && project.brandKey !== 'po') && !product.isPrimaryObject && !_.includes([60, 74, 76, 61], product.category) && product.id !== 516) {
var foundationFactor = project.foundationFactor || 1;

@@ -429,0 +453,0 @@

@@ -75,2 +75,6 @@ var libPrice = require('./price');

},
hb7: {
companyKey: 'hb',
pricingDate: `2025-04-26T04:13:15.000Z`
},
vp: {

@@ -524,2 +528,9 @@ companyKey: 'vp',

expect(lib.price.factorFor(material, {key: 'box', product: products[5], project})).to.equal(1.4);
var material1 = {id: 1, boxFactorCategory: 'clearVeneer', factors: {default: 3, box: 4.5}};
var material2 = {id: 2, boxFactorCategory: 'stainedVeneer', factors: {default: 3, box: 4.5}};
expect(lib.price.factorFor(material1, {key: 'box', product: products[0], project: projects.hb7})).to.equal(1.5);
expect(lib.price.factorFor(material2, {key: 'box', product: products[0], project: projects.hb7})).to.equal(2);
});

@@ -526,0 +537,0 @@

Sorry, the diff of this file is too big to display

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