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

@contember/database

Package Overview
Dependencies
Maintainers
5
Versions
268
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contember/database - npm Package Compare versions

Comparing version 0.11.0 to 0.12.0-alpha.0

dist/src/utils/ConstraintHelper.d.ts

2

dist/src/index.d.ts

@@ -12,3 +12,3 @@ import { With } from './builders/internal/With';

export * from './types';
export { wrapIdentifier, retryTransaction } from './utils';
export { wrapIdentifier, retryTransaction, ConstraintHelper } from './utils';
//# sourceMappingURL=index.d.ts.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.retryTransaction = exports.wrapIdentifier = void 0;
exports.ConstraintHelper = exports.retryTransaction = exports.wrapIdentifier = void 0;
__exportStar(require("./client"), exports);

@@ -23,2 +23,3 @@ __exportStar(require("./builders"), exports);

Object.defineProperty(exports, "retryTransaction", { enumerable: true, get: function () { return utils_1.retryTransaction; } });
Object.defineProperty(exports, "ConstraintHelper", { enumerable: true, get: function () { return utils_1.ConstraintHelper; } });
//# sourceMappingURL=index.js.map
export * from './assertNever';
export * from './ConstraintHelper';
export * from './sql';
export * from './retryTransaction';
//# sourceMappingURL=index.d.ts.map

@@ -14,4 +14,5 @@ "use strict";

__exportStar(require("./assertNever"), exports);
__exportStar(require("./ConstraintHelper"), exports);
__exportStar(require("./sql"), exports);
__exportStar(require("./retryTransaction"), exports);
//# sourceMappingURL=index.js.map

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

};
exports.retryTransaction = async (cb, options = {}) => {
const retryTransaction = async (cb, options = {}) => {
var _a, _b, _c;

@@ -44,2 +44,3 @@ let attempt = 0;

};
exports.retryTransaction = retryTransaction;
//# sourceMappingURL=retryTransaction.js.map

@@ -5,4 +5,5 @@ "use strict";

const Literal_1 = require("../Literal");
exports.wrapIdentifier = (value) => '"' + value.replace(/"/g, '""') + '"';
exports.aliasLiteral = (raw, alias) => {
const wrapIdentifier = (value) => '"' + value.replace(/"/g, '""') + '"';
exports.wrapIdentifier = wrapIdentifier;
const aliasLiteral = (raw, alias) => {
if (!alias) {

@@ -13,3 +14,4 @@ return raw;

};
exports.prependSchema = (tableExpression, schema, cteAliases) => {
exports.aliasLiteral = aliasLiteral;
const prependSchema = (tableExpression, schema, cteAliases) => {
if (typeof tableExpression !== 'string') {

@@ -22,2 +24,3 @@ return tableExpression;

};
exports.prependSchema = prependSchema;
//# sourceMappingURL=sql.js.map

@@ -9,5 +9,6 @@ "use strict";

};
exports.SQL = (strings, ...values) => genericTaggedString(strings, ...values)
const SQL = (strings, ...values) => genericTaggedString(strings, ...values)
.replace(/\s+/g, ' ')
.trim();
exports.SQL = SQL;
//# sourceMappingURL=tags.js.map
{
"name": "@contember/database",
"version": "0.11.0",
"version": "0.12.0-alpha.0",
"license": "Apache-2.0",

@@ -11,6 +11,6 @@ "main": "dist/src/index.js",

"dependencies": {
"@contember/queryable": "^0.11.0"
"@contember/queryable": "^0.12.0-alpha.0"
},
"devDependencies": {
"@contember/database-tester": "^0.11.0",
"@contember/database-tester": "^0.12.0-alpha.0",
"@types/node": "^14.6.4",

@@ -17,0 +17,0 @@ "pg": "^8.5.0",

@@ -14,2 +14,2 @@ import { With } from './builders/internal/With'

export * from './types'
export { wrapIdentifier, retryTransaction } from './utils'
export { wrapIdentifier, retryTransaction, ConstraintHelper } from './utils'

@@ -6,3 +6,3 @@ import { Query } from '@contember/queryable'

export abstract class DatabaseQuery<T> implements Query<DatabaseQueryable, T> {
abstract async fetch(queryable: DatabaseQueryable): Promise<T>
abstract fetch(queryable: DatabaseQueryable): Promise<T>

@@ -9,0 +9,0 @@ protected fetchOneOrNull<R>(rows: Array<R>): R | null {

export * from './assertNever'
export * from './ConstraintHelper'
export * from './sql'
export * from './retryTransaction'

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

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