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.0.5 to 1.0.6

dist/src/KeyConstants.d.ts

2

dist/index.d.ts

@@ -8,5 +8,5 @@ export * from "./src/OrganizationMetaData";

export * from "./src/KeychainItem";
export * from "./src/EncryptedPrivateKeyBox";
export * from "./src/KeyConstants";
export * from "./src/endpoints/CreateOrganization";
export declare const Version = 1;
//# sourceMappingURL=index.d.ts.map

@@ -13,3 +13,3 @@ "use strict";

tslib_1.__exportStar(require("./src/KeychainItem"), exports);
tslib_1.__exportStar(require("./src/EncryptedPrivateKeyBox"), exports);
tslib_1.__exportStar(require("./src/KeyConstants"), exports);
// Endpoints

@@ -16,0 +16,0 @@ tslib_1.__exportStar(require("./src/endpoints/CreateOrganization"), exports);

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

/**
* The private key associated with the public key, encrypted with the user's key
* The private key associated with the public key, encrypted with the user's public encryption key AND authenticated using the user's private encryption key
*/

@@ -15,0 +15,0 @@ encryptedPrivateKey: string;

import { AutoEncoder } from '@simonbackx/simple-encoding';
import { EncryptedPrivateKeyBox } from './EncryptedPrivateKeyBox';
import { KeyConstants } from './KeyConstants';
export declare class User extends AutoEncoder {

@@ -11,9 +11,8 @@ id: string;

}
/**
* Variant of user when updating the current user password or when creating a new user
*/
export declare class NewUser extends User {
encryptedPrivateKey: EncryptedPrivateKeyBox;
password: string;
publicAuthSignKey: string;
authSignKeyConstants: KeyConstants;
authEncryptionKeyConstants: KeyConstants;
encryptedPrivateKey: string;
}
//# sourceMappingURL=User.d.ts.map

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

const uuid_1 = require("uuid");
const EncryptedPrivateKeyBox_1 = require("./EncryptedPrivateKeyBox");
const KeyConstants_1 = require("./KeyConstants");
class User extends simple_encoding_1.AutoEncoder {

@@ -21,14 +21,17 @@ }

exports.User = User;
/**
* Variant of user when updating the current user password or when creating a new user
*/
class NewUser extends User {
}
tslib_1.__decorate([
simple_encoding_1.field({ decoder: EncryptedPrivateKeyBox_1.EncryptedPrivateKeyBox })
], NewUser.prototype, "encryptedPrivateKey", void 0);
simple_encoding_1.field({ decoder: simple_encoding_1.StringDecoder })
], NewUser.prototype, "publicAuthSignKey", void 0);
tslib_1.__decorate([
simple_encoding_1.field({ decoder: KeyConstants_1.KeyConstants })
], NewUser.prototype, "authSignKeyConstants", void 0);
tslib_1.__decorate([
simple_encoding_1.field({ decoder: KeyConstants_1.KeyConstants })
], NewUser.prototype, "authEncryptionKeyConstants", void 0);
tslib_1.__decorate([
simple_encoding_1.field({ decoder: simple_encoding_1.StringDecoder })
], NewUser.prototype, "password", void 0);
], NewUser.prototype, "encryptedPrivateKey", void 0);
exports.NewUser = NewUser;
//# sourceMappingURL=User.js.map

@@ -8,5 +8,5 @@ export * from "./src/OrganizationMetaData";

export * from "./src/KeychainItem";
export * from "./src/EncryptedPrivateKeyBox";
export * from "./src/KeyConstants";
export * from "./src/endpoints/CreateOrganization";
export declare const Version = 1;
//# sourceMappingURL=index.d.ts.map

@@ -9,3 +9,3 @@ // General

export * from "./src/KeychainItem";
export * from "./src/EncryptedPrivateKeyBox";
export * from "./src/KeyConstants";
// Endpoints

@@ -12,0 +12,0 @@ export * from "./src/endpoints/CreateOrganization";

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

/**
* The private key associated with the public key, encrypted with the user's key
* The private key associated with the public key, encrypted with the user's public encryption key AND authenticated using the user's private encryption key
*/

@@ -15,0 +15,0 @@ encryptedPrivateKey: string;

import { AutoEncoder } from '@simonbackx/simple-encoding';
import { EncryptedPrivateKeyBox } from './EncryptedPrivateKeyBox';
import { KeyConstants } from './KeyConstants';
export declare class User extends AutoEncoder {

@@ -11,9 +11,8 @@ id: string;

}
/**
* Variant of user when updating the current user password or when creating a new user
*/
export declare class NewUser extends User {
encryptedPrivateKey: EncryptedPrivateKeyBox;
password: string;
publicAuthSignKey: string;
authSignKeyConstants: KeyConstants;
authEncryptionKeyConstants: KeyConstants;
encryptedPrivateKey: string;
}
//# sourceMappingURL=User.d.ts.map
import { __decorate } from "tslib";
import { AutoEncoder, EmailDecoder, field, StringDecoder } from '@simonbackx/simple-encoding';
import { v4 as uuidv4 } from "uuid";
import { EncryptedPrivateKeyBox } from './EncryptedPrivateKeyBox';
import { KeyConstants } from './KeyConstants';
export class User extends AutoEncoder {

@@ -16,13 +16,16 @@ }

], User.prototype, "publicKey", void 0);
/**
* Variant of user when updating the current user password or when creating a new user
*/
export class NewUser extends User {
}
__decorate([
field({ decoder: EncryptedPrivateKeyBox })
], NewUser.prototype, "encryptedPrivateKey", void 0);
field({ decoder: StringDecoder })
], NewUser.prototype, "publicAuthSignKey", void 0);
__decorate([
field({ decoder: KeyConstants })
], NewUser.prototype, "authSignKeyConstants", void 0);
__decorate([
field({ decoder: KeyConstants })
], NewUser.prototype, "authEncryptionKeyConstants", void 0);
__decorate([
field({ decoder: StringDecoder })
], NewUser.prototype, "password", void 0);
], NewUser.prototype, "encryptedPrivateKey", void 0);
//# sourceMappingURL=User.js.map
{
"name": "@stamhoofd/structures",
"version": "1.0.5",
"version": "1.0.6",
"main": "./dist/index.js",

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

"scripts": {
"build": "tsc -p . && tsc -p ./esm",
"build": " tsc -b . esm",
"build:full": "rm -r ./dist && rm -r ./esm/dist && tsc -b . esm",
"test": "jest",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"

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

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

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