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

@stamhoofd/structures

Package Overview
Dependencies
Maintainers
1
Versions
267
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stamhoofd/structures - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

1

dist/src/GroupPrices.d.ts

@@ -6,2 +6,3 @@ import { AutoEncoder } from '@simonbackx/simple-encoding';

export declare class GroupPrices extends AutoEncoder {
id: string;
startDate: Date | null;

@@ -8,0 +9,0 @@ price: number;

@@ -6,2 +6,3 @@ "use strict";

const simple_encoding_1 = require("@simonbackx/simple-encoding");
const uuid_1 = require("uuid");
/**

@@ -19,2 +20,5 @@ * A group can have multiple prices, stored in an array. The pricing with the highest date or index is applied.

tslib_1.__decorate([
simple_encoding_1.field({ decoder: simple_encoding_1.StringDecoder, version: 2, defaultValue: () => uuid_1.v4() })
], GroupPrices.prototype, "id", void 0);
tslib_1.__decorate([
simple_encoding_1.field({ decoder: simple_encoding_1.DateDecoder, nullable: true })

@@ -21,0 +25,0 @@ ], GroupPrices.prototype, "startDate", void 0);

@@ -6,2 +6,3 @@ import { AutoEncoder } from '@simonbackx/simple-encoding';

export declare class GroupPrices extends AutoEncoder {
id: string;
startDate: Date | null;

@@ -8,0 +9,0 @@ price: number;

import { __decorate } from "tslib";
import { AutoEncoder, DateDecoder, field, IntegerDecoder } from '@simonbackx/simple-encoding';
import { AutoEncoder, DateDecoder, field, IntegerDecoder, StringDecoder } from '@simonbackx/simple-encoding';
import { v4 as uuidv4 } from "uuid";
/**

@@ -15,2 +16,5 @@ * A group can have multiple prices, stored in an array. The pricing with the highest date or index is applied.

__decorate([
field({ decoder: StringDecoder, version: 2, defaultValue: () => uuidv4() })
], GroupPrices.prototype, "id", void 0);
__decorate([
field({ decoder: DateDecoder, nullable: true })

@@ -17,0 +21,0 @@ ], GroupPrices.prototype, "startDate", void 0);

2

package.json
{
"name": "@stamhoofd/structures",
"version": "1.1.0",
"version": "1.1.1",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "module": "./esm/dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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