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

@amplience/dc-integration-middleware

Package Overview
Dependencies
Maintainers
13
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplience/dc-integration-middleware - npm Package Compare versions

Comparing version 2.2.0 to 2.3.1

.github/workflows/app.yml

14

CHANGELOG.md

@@ -5,2 +5,16 @@ # Changelog

## [2.3.1](https://github.com/amplience/dc-integration-middleware/compare/v2.3.0...v2.3.1) (2024-05-08)
### Bug Fixes
* adding release please step id ([d1a46a4](https://github.com/amplience/dc-integration-middleware/commit/d1a46a4e789d377a13a2947e8549ae7989d8afa3))
## [2.3.0](https://github.com/amplience/dc-integration-middleware/compare/v2.2.0...v2.3.0) (2024-05-08)
### Features
* commercetools product description ([#9](https://github.com/amplience/dc-integration-middleware/issues/9)) ([c69ac01](https://github.com/amplience/dc-integration-middleware/commit/c69ac014a2b67fac78c8d4ccc6a4ae1dabb22228))
## [2.2.0](https://github.com/amplience/dc-integration-middleware/compare/v2.1.0...v2.2.0) (2023-09-12)

@@ -7,0 +21,0 @@

2

dist/codec/codecs/commerce/commercetools/index.js

@@ -132,2 +132,4 @@ "use strict";

name: localize(product.name, args),
longDescription: product.description && localize(product.description, args),
shortDescription: product.description && localize(product.description, args),
slug: localize(product.slug, args),

@@ -134,0 +136,0 @@ variants: lodash_1.default.isEmpty(product.variants) ? [product.masterVariant].map(mapVariant(args)) : product.variants.map(mapVariant(args)),

@@ -50,2 +50,4 @@ export declare const exampleCustomerGroups: {

id: string;
longDescription: string;
shortDescription: string;
name: string;

@@ -52,0 +54,0 @@ slug: string;

@@ -79,2 +79,4 @@ "use strict";

id: id,
longDescription: 'Example description.\n\n',
shortDescription: 'Example description.\n\n',
name: 'DECIEM PUMP (FOR HIGHER-VISCOSITY NIOD SERUMS, 30ML BOTTLE) - 1PC (P)',

@@ -81,0 +83,0 @@ slug: 'pump-for-higher-viscosity-niod-serums-30ml-bottle-1pc-p',

@@ -38,2 +38,3 @@ export interface CTCategory {

name: Localizable;
description: Localizable;
categories: CTType[];

@@ -40,0 +41,0 @@ categoryOrderHints: CategoryOrderHints;

15

dist/codec/codecs/pagination.test.js

@@ -247,13 +247,18 @@ "use strict";

test('get a page containing the whole input array', () => __awaiter(this, void 0, void 0, function* () {
expect((0, pagination_1.getListPage)([1, 2, 3])(0, 5)).resolves.toEqual({ data: [1, 2, 3], total: 3 });
const result = yield (0, pagination_1.getListPage)([1, 2, 3])(0, 5);
expect(result).toEqual({ data: [1, 2, 3], total: 3 });
}));
test('get the second page of a 3 page spanning input array', () => __awaiter(this, void 0, void 0, function* () {
expect((0, pagination_1.getListPage)([1, 2, 3, 4, 5, 6, 7, 8, 9])(1, 3)).resolves.toEqual({ data: [4, 5, 6], total: 9 });
const result = yield (0, pagination_1.getListPage)([1, 2, 3, 4, 5, 6, 7, 8, 9])(1, 3);
expect(result).toEqual({ data: [4, 5, 6], total: 9 });
}));
test('get a page from an empty array', () => __awaiter(this, void 0, void 0, function* () {
expect((0, pagination_1.getListPage)([])(0, 5)).resolves.toEqual({ data: [], total: 3 });
const result = yield (0, pagination_1.getListPage)([])(0, 5);
expect(result).toEqual({ data: [], total: 0 });
}));
test('get an out of bounds page', () => __awaiter(this, void 0, void 0, function* () {
expect((0, pagination_1.getListPage)([1, 2, 3])(5, 5)).resolves.toEqual({ data: [], total: 3 });
expect((0, pagination_1.getListPage)([1, 2, 3])(-1, 5)).resolves.toEqual({ data: [], total: 3 });
const result = yield (0, pagination_1.getListPage)([1, 2, 3])(5, 5);
expect(result).toEqual({ data: [], total: 3 });
const outOfBoundsResult = yield (0, pagination_1.getListPage)([1, 2, 3])(-1, 5);
expect(outOfBoundsResult).toEqual({ data: [], total: 3 });
}));

@@ -260,0 +265,0 @@ });

{
"name": "@amplience/dc-integration-middleware",
"version": "2.2.0",
"version": "2.3.1",
"types": "dist/index.d.ts",

@@ -13,9 +13,3 @@ "typings": "dist/index.d.ts",

"server": "nodemon src/server.ts",
"test": "jest --silent --verbose",
"version:patch": "standard-version --release-as patch",
"version:minor": "standard-version --release-as minor",
"version:major": "standard-version --release-as major",
"prepare-patch-release": "run-s build version:patch",
"prepare-minor-release": "run-s build version:minor",
"prepare-major-release": "run-s build version:major"
"test": "jest --silent --verbose"
},

@@ -56,4 +50,2 @@ "exports": {

"nodemon": "^2.0.19",
"npm-run-all": "^4.1.5",
"standard-version": "^9.5.0",
"ts-jest": "^29.0.5",

@@ -60,0 +52,0 @@ "ts-node": "^10.8.1",

@@ -20,3 +20,2 @@ # @amplience/dc-integration-middleware

- Node version `16.x`
- NPM version `8.x`

@@ -136,3 +135,3 @@ ## ⚙️ Features

Copyright 2023 Amplience
Copyright 2024 Amplience

@@ -139,0 +138,0 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

@@ -149,2 +149,4 @@ import {

name: localize(product.name, args),
longDescription: product.description && localize(product.description, args),
shortDescription: product.description && localize(product.description, args),
slug: localize(product.slug, args),

@@ -151,0 +153,0 @@ variants: _.isEmpty(product.variants) ? [product.masterVariant].map(mapVariant(args)) : product.variants.map(mapVariant(args)),

@@ -79,2 +79,4 @@ export const exampleCustomerGroups = [

id: id,
longDescription: 'Example description.\n\n',
shortDescription: 'Example description.\n\n',
name: 'DECIEM PUMP (FOR HIGHER-VISCOSITY NIOD SERUMS, 30ML BOTTLE) - 1PC (P)',

@@ -81,0 +83,0 @@ slug: 'pump-for-higher-viscosity-niod-serums-30ml-bottle-1pc-p',

@@ -46,2 +46,3 @@ // Generated by https://quicktype.io

name: Localizable;
description: Localizable;
categories: CTType[];

@@ -48,0 +49,0 @@ categoryOrderHints: CategoryOrderHints;

@@ -283,16 +283,21 @@ import axios from 'axios'

test('get a page containing the whole input array', async () => {
expect(getListPage([1, 2, 3])(0, 5)).resolves.toEqual({ data: [1, 2, 3], total: 3 })
const result = await getListPage([1, 2, 3])(0, 5)
expect(result).toEqual({ data: [1, 2, 3], total: 3 })
})
test('get the second page of a 3 page spanning input array', async () => {
expect(getListPage([1, 2, 3, 4, 5, 6, 7, 8, 9])(1, 3)).resolves.toEqual({ data: [4, 5, 6], total: 9 })
const result = await getListPage([1, 2, 3, 4, 5, 6, 7, 8, 9])(1, 3)
expect(result).toEqual({ data: [4, 5, 6], total: 9 })
})
test('get a page from an empty array', async () => {
expect(getListPage([])(0, 5)).resolves.toEqual({ data: [], total: 3 })
const result = await getListPage([])(0, 5)
expect(result).toEqual({ data: [], total: 0 })
})
test('get an out of bounds page', async () => {
expect(getListPage([1, 2, 3])(5, 5)).resolves.toEqual({ data: [], total: 3 })
expect(getListPage([1, 2, 3])(-1, 5)).resolves.toEqual({ data: [], total: 3 })
const result = await getListPage([1, 2, 3])(5, 5)
expect(result).toEqual({ data: [], total: 3 })
const outOfBoundsResult = await getListPage([1, 2, 3])(-1, 5)
expect(outOfBoundsResult).toEqual({ data: [], total: 3 })
})

@@ -299,0 +304,0 @@ })

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