Socket
Socket
Sign inDemoInstall

@jamashita/anden-object

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jamashita/anden-object - npm Package Compare versions

Comparing version 2.17.0 to 2.18.0

2

dist/cjs/ValueObject.d.ts
import { Objet } from './Objet';
export declare abstract class ValueObject extends Objet {
private hash?;
protected $$hash?: string;
abstract serialize(): string;

@@ -5,0 +5,0 @@ hashCode(): string;

@@ -7,9 +7,9 @@ "use strict";

class ValueObject extends Objet_1.Objet {
hash;
$$hash;
hashCode() {
if (!anden_type_1.Kind.isUndefined(this.hash)) {
return this.hash;
if (!anden_type_1.Kind.isUndefined(this.$$hash)) {
return this.$$hash;
}
this.hash = super.hashCode();
return this.hash;
this.$$hash = super.hashCode();
return this.$$hash;
}

@@ -16,0 +16,0 @@ }

import { Objet } from './Objet';
export declare abstract class ValueObject extends Objet {
private hash?;
protected $$hash?: string;
abstract serialize(): string;

@@ -5,0 +5,0 @@ hashCode(): string;

import { Kind } from '@jamashita/anden-type';
import { Objet } from './Objet';
export class ValueObject extends Objet {
hash;
$$hash;
hashCode() {
if (!Kind.isUndefined(this.hash)) {
return this.hash;
if (!Kind.isUndefined(this.$$hash)) {
return this.$$hash;
}
this.hash = super.hashCode();
return this.hash;
this.$$hash = super.hashCode();
return this.$$hash;
}
}
//# sourceMappingURL=ValueObject.js.map
{
"name": "@jamashita/anden-object",
"version": "2.17.0",
"version": "2.18.0",
"private": false,

@@ -28,3 +28,3 @@ "repository": {

"dependencies": {
"@jamashita/anden-error": "^2.14.0",
"@jamashita/anden-error": "^2.15.0",
"@jamashita/anden-type": "^2.8.0",

@@ -31,0 +31,0 @@ "object-hash": "3.0.0"

@@ -5,3 +5,3 @@ import { Kind } from '@jamashita/anden-type';

export abstract class ValueObject extends Objet {
private hash?: string;
protected $$hash?: string;

@@ -11,10 +11,10 @@ public abstract override serialize(): string;

public override hashCode(): string {
if (!Kind.isUndefined(this.hash)) {
return this.hash;
if (!Kind.isUndefined(this.$$hash)) {
return this.$$hash;
}
this.hash = super.hashCode();
this.$$hash = super.hashCode();
return this.hash;
return this.$$hash;
}
}

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

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