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

@naturalcycles/db-lib

Package Overview
Dependencies
Maintainers
3
Versions
301
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naturalcycles/db-lib - npm Package Compare versions

Comparing version 1.10.2 to 1.10.3

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.10.3](https://github.com/NaturalCycles/db-lib/compare/v1.10.2...v1.10.3) (2019-09-15)
### Bug Fixes
* id to use stringSchema instead of idSchema ([bd0047a](https://github.com/NaturalCycles/db-lib/commit/bd0047a))
## [1.10.2](https://github.com/NaturalCycles/db-lib/compare/v1.10.1...v1.10.2) (2019-08-23)

@@ -2,0 +9,0 @@

4

dist/common.dao.js

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

this.dbmSavedSchema = this.cfg.dbmUnsavedSchema.keys({
id: cfg.idSchema || nodejs_lib_1.idSchema,
id: cfg.idSchema || nodejs_lib_1.stringSchema,
created: nodejs_lib_1.unixTimestampSchema,

@@ -44,3 +44,3 @@ updated: nodejs_lib_1.unixTimestampSchema,

this.bmSavedSchema = this.cfg.bmUnsavedSchema.keys({
id: cfg.idSchema || nodejs_lib_1.idSchema,
id: cfg.idSchema || nodejs_lib_1.stringSchema,
created: nodejs_lib_1.unixTimestampSchema,

@@ -47,0 +47,0 @@ updated: nodejs_lib_1.unixTimestampSchema,

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

exports.baseDBEntitySchema = nodejs_lib_1.objectSchema({
id: nodejs_lib_1.idSchema,
id: nodejs_lib_1.stringSchema,
created: nodejs_lib_1.unixTimestampSchema,

@@ -22,3 +22,3 @@ updated: nodejs_lib_1.unixTimestampSchema,

exports.unsavedDBEntitySchema = nodejs_lib_1.objectSchema({
id: nodejs_lib_1.idSchema.optional(),
id: nodejs_lib_1.stringSchema.optional(),
created: nodejs_lib_1.unixTimestampSchema.optional(),

@@ -25,0 +25,0 @@ updated: nodejs_lib_1.unixTimestampSchema.optional(),

@@ -39,3 +39,3 @@ {

},
"version": "1.10.2",
"version": "1.10.3",
"description": "Lowest Common Denominator API to supported Databases",

@@ -42,0 +42,0 @@ "keywords": [

@@ -5,6 +5,6 @@ import {

getValidationResult,
idSchema,
JoiValidationError,
ObjectSchemaTyped,
stringId,
stringSchema,
unixTimestampSchema,

@@ -83,3 +83,3 @@ verSchema,

this.dbmSavedSchema = this.cfg.dbmUnsavedSchema.keys({
id: cfg.idSchema || idSchema,
id: cfg.idSchema || stringSchema,
created: unixTimestampSchema,

@@ -94,3 +94,3 @@ updated: unixTimestampSchema,

this.bmSavedSchema = this.cfg.bmUnsavedSchema.keys({
id: cfg.idSchema || idSchema,
id: cfg.idSchema || stringSchema,
created: unixTimestampSchema,

@@ -97,0 +97,0 @@ updated: unixTimestampSchema,

@@ -1,2 +0,7 @@

import { idSchema, objectSchema, unixTimestampSchema, verSchema } from '@naturalcycles/nodejs-lib'
import {
objectSchema,
stringSchema,
unixTimestampSchema,
verSchema,
} from '@naturalcycles/nodejs-lib'
import { Observable } from 'rxjs'

@@ -121,3 +126,3 @@ import { Merge } from 'type-fest'

export const baseDBEntitySchema = objectSchema<BaseDBEntity>({
id: idSchema,
id: stringSchema,
created: unixTimestampSchema,

@@ -129,3 +134,3 @@ updated: unixTimestampSchema,

export const unsavedDBEntitySchema = objectSchema<UnsavedDBEntity>({
id: idSchema.optional(),
id: stringSchema.optional(),
created: unixTimestampSchema.optional(),

@@ -132,0 +137,0 @@ updated: unixTimestampSchema.optional(),

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