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

@qrvey/data-persistence

Package Overview
Dependencies
Maintainers
11
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qrvey/data-persistence - npm Package Compare versions

Comparing version 0.0.3-Rev-1-ds-support-array-v2 to 0.0.3-Rev-1-ds-support-array-v3

39

dist/cjs/services/crudFactory.service.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CrudFactory = void 0;
const cruds_1 = require("./cruds");
class CrudFactory {
static async databaseClientService(crudSchema) {
static databaseClientService(crudSchema) {
var _a;
const isMultiPlatformMode = ((_a = process.env.PLATFORM_TYPE) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'container';
let DatabaseCrudService;
if (isMultiPlatformMode) {
const { PostgreSqlCrudService } = await Promise.resolve().then(() => __importStar(require('./cruds')));
DatabaseCrudService = PostgreSqlCrudService;
}
else {
const { DynamoDbCrudService } = await Promise.resolve().then(() => __importStar(require('./cruds')));
DatabaseCrudService = DynamoDbCrudService;
}
return new DatabaseCrudService(crudSchema);
if (isMultiPlatformMode)
return new cruds_1.PostgreSqlCrudService(crudSchema);
return new cruds_1.DynamoDbCrudService(crudSchema);
}

@@ -42,0 +13,0 @@ }

2

package.json

@@ -5,3 +5,3 @@ {

"main": "dist/cjs/index.js",
"version": "0.0.3-Rev-1-ds-support-array-v2",
"version": "0.0.3-Rev-1-ds-support-array-v3",
"license": "MIT",

@@ -8,0 +8,0 @@ "exports": {

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