New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@naturalcycles/db-lib

Package Overview
Dependencies
Maintainers
3
Versions
303
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 8.24.0 to 8.24.1

3

dist/adapter/cachedb/cache.db.js

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

const base_common_db_1 = require("../../base.common.db");
const isGAE = !!process.env['GAE_INSTANCE'];
/**

@@ -17,3 +18,3 @@ * CommonDB implementation that proxies requests to downstream CommonDB

this.cfg = {
logger: console,
logger: isGAE ? undefined : console,
...cfg,

@@ -20,0 +21,0 @@ };

@@ -38,3 +38,4 @@ import { CommonLogger, ObjectWithId } from '@naturalcycles/js-lib';

*
* @default console
* Defaults to `console` in dev.
* Default to noop in AppEngine.
*/

@@ -41,0 +42,0 @@ logger?: CommonLogger;

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

const __1 = require("../..");
const isGAE = !!process.env['GAE_INSTANCE'];
/**

@@ -25,3 +26,3 @@ * Provides barebone implementation for "whole file" based CommonDB.

logFinished: true,
logger: console,
logger: isGAE ? undefined : console,
...cfg,

@@ -28,0 +29,0 @@ };

@@ -22,3 +22,4 @@ import { CommonLogger, ObjectWithId } from '@naturalcycles/js-lib';

/**
* @default console
* Defaults to `console` in dev.
* Default to noop in AppEngine.
*/

@@ -25,0 +26,0 @@ logger?: CommonLogger;

@@ -34,3 +34,4 @@ import { JsonSchemaObject, StringMap, JsonSchemaRootObject, ObjectWithId, CommonLogger } from '@naturalcycles/js-lib';

/**
* @default console
* Defaults to `console` in dev.
* Default to noop in AppEngine.
*/

@@ -37,0 +38,0 @@ logger?: CommonLogger;

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

const __1 = require("../..");
const isGAE = !!process.env['GAE_INSTANCE'];
class InMemoryDB {

@@ -22,3 +23,3 @@ constructor(cfg) {

persistentStoragePath: './tmp/inmemorydb',
logger: console,
logger: isGAE ? undefined : console,
...cfg,

@@ -25,0 +26,0 @@ };

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

/* eslint-disable no-dupe-class-members */
const isGAE = !!process.env['GAE_INSTANCE'];
/**

@@ -25,3 +26,3 @@ * Lowest common denominator API between supported Databases.

createdUpdated: true,
logger: console,
logger: isGAE ? undefined : console,
...cfg,

@@ -28,0 +29,0 @@ hooks: {

@@ -59,3 +59,4 @@ import { CommonLogger, ErrorMode, ObjectWithId } from '@naturalcycles/js-lib';

*
* @default console
* Defaults to `console` in dev.
* Default to noop in AppEngine.
*/

@@ -62,0 +63,0 @@ logger?: CommonLogger;

@@ -45,3 +45,3 @@ {

},
"version": "8.24.0",
"version": "8.24.1",
"description": "Lowest Common Denominator API to supported Databases",

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

@@ -45,3 +45,4 @@ import { CommonLogger, ObjectWithId } from '@naturalcycles/js-lib'

*
* @default console
* Defaults to `console` in dev.
* Default to noop in AppEngine.
*/

@@ -48,0 +49,0 @@ logger?: CommonLogger

@@ -19,2 +19,4 @@ import { Readable } from 'stream'

const isGAE = !!process.env['GAE_INSTANCE']
/**

@@ -30,3 +32,3 @@ * CommonDB implementation that proxies requests to downstream CommonDB

this.cfg = {
logger: console,
logger: isGAE ? undefined : console,
...cfg,

@@ -33,0 +35,0 @@ }

@@ -27,3 +27,4 @@ import { CommonLogger, ObjectWithId } from '@naturalcycles/js-lib'

/**
* @default console
* Defaults to `console` in dev.
* Default to noop in AppEngine.
*/

@@ -30,0 +31,0 @@ logger?: CommonLogger

@@ -31,2 +31,4 @@ import {

const isGAE = !!process.env['GAE_INSTANCE']
/**

@@ -48,3 +50,3 @@ * Provides barebone implementation for "whole file" based CommonDB.

logFinished: true,
logger: console,
logger: isGAE ? undefined : console,
...cfg,

@@ -51,0 +53,0 @@ }

@@ -68,3 +68,4 @@ import { Readable } from 'stream'

/**
* @default console
* Defaults to `console` in dev.
* Default to noop in AppEngine.
*/

@@ -74,2 +75,4 @@ logger?: CommonLogger

const isGAE = !!process.env['GAE_INSTANCE']
export class InMemoryDB implements CommonDB {

@@ -83,3 +86,3 @@ constructor(cfg?: Partial<InMemoryDBCfg>) {

persistentStoragePath: './tmp/inmemorydb',
logger: console,
logger: isGAE ? undefined : console,
...cfg,

@@ -86,0 +89,0 @@ }

@@ -76,3 +76,4 @@ import { CommonLogger, ErrorMode, ObjectWithId } from '@naturalcycles/js-lib'

*
* @default console
* Defaults to `console` in dev.
* Default to noop in AppEngine.
*/

@@ -79,0 +80,0 @@ logger?: CommonLogger

@@ -49,2 +49,4 @@ import {

const isGAE = !!process.env['GAE_INSTANCE']
/**

@@ -66,3 +68,3 @@ * Lowest common denominator API between supported Databases.

createdUpdated: true,
logger: console,
logger: isGAE ? undefined : console,
...cfg,

@@ -69,0 +71,0 @@ hooks: {

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