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

@bedrock/account

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bedrock/account - npm Package Compare versions

Comparing version 7.0.0 to 8.0.0

8

CHANGELOG.md
# bedrock-account ChangeLog
## 8.0.0 - 2022-04-29
### Changed
- **BREAKING**: Update peer deps:
- `@bedrock/core@6`
- `@bedrock/mongodb@10`
- `@bedrock/validation@7`.
## 7.0.0 - 2022-04-06

@@ -4,0 +12,0 @@

10

lib/index.js

@@ -7,7 +7,7 @@ /*!

import assert from 'assert-plus';
import {createAccountSchema} from '../schemas/bedrock-account.js';
import {klona} from 'klona';
import jsonpatch from 'fast-json-patch';
import {schema as accountSchema} from '../schemas/bedrock-account.js';
import {validateInstance} from '@bedrock/validation';
const accountSchema = createAccountSchema();
const {util: {BedrockError}} = bedrock;

@@ -85,3 +85,3 @@

// emit `insertEvent` with clone of `account`
account = bedrock.util.clone(account);
account = klona(account);
const eventData = {

@@ -133,4 +133,4 @@ account,

// emit `postInsert` event with updated record data
eventData.account = bedrock.util.clone(record.account);
eventData.meta = bedrock.util.clone(record.meta);
eventData.account = klona(record.account);
eventData.meta = klona(record.meta);
await bedrock.events.emit('bedrock-account.postInsert', eventData);

@@ -137,0 +137,0 @@

{
"name": "@bedrock/account",
"version": "7.0.0",
"version": "8.0.0",
"type": "module",

@@ -30,8 +30,9 @@ "description": "User accounts for Bedrock applications",

"assert-plus": "^1.0.0",
"fast-json-patch": "^3.1.0"
"fast-json-patch": "^3.1.1",
"klona": "^2.0.5"
},
"peerDependencies": {
"@bedrock/core": "^5.0.0",
"@bedrock/mongodb": "^9.0.0",
"@bedrock/validation": "^6.0.0"
"@bedrock/core": "^6.0.0",
"@bedrock/mongodb": "^10.0.0",
"@bedrock/validation": "^7.0.0"
},

@@ -38,0 +39,0 @@ "directories": {

/*!
* Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
*/
import * as bedrock from '@bedrock/core';
const schema = {
export const schema = {
title: 'User Account',

@@ -23,8 +21,1 @@ required: [

};
export function createAccountSchema(extend) {
if(extend) {
return bedrock.util.extend(true, bedrock.util.clone(schema), extend);
}
return schema;
}
/*!
* Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
*/
import * as bedrock from '@bedrock/core';
import * as brAccount from '@bedrock/account';
import * as database from '@bedrock/mongodb';
import {v4 as uuid} from 'uuid';
const {util: {uuid}} = bedrock;
export function createAccount(email) {

@@ -11,0 +9,0 @@ const newAccount = {

@@ -14,10 +14,11 @@ {

"dependencies": {
"@bedrock/core": "^5.0.0",
"@bedrock/account": "file:..",
"@bedrock/mongodb": "^9.0.0",
"@bedrock/test": "^7.0.0",
"@bedrock/validation": "^6.0.0",
"@bedrock/core": "^6.0.0",
"@bedrock/mongodb": "^10.0.0",
"@bedrock/test": "^8.0.0",
"@bedrock/validation": "^7.0.0",
"c8": "^7.11.0",
"cross-env": "^7.0.2",
"fast-json-patch": "^2.0.6"
"fast-json-patch": "^2.0.6",
"uuid": "^8.3.2"
},

@@ -24,0 +25,0 @@ "c8": {

@@ -5,4 +5,4 @@ /*!

import {config} from '@bedrock/core';
import {fileURLToPath} from 'url';
import path from 'path';
import {fileURLToPath} from 'node:url';
import path from 'node:path';

@@ -9,0 +9,0 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));

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