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

ts-repository-fluent

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-repository-fluent - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

13

dist/BaseRepository.js

@@ -10,4 +10,3 @@ 'use strict';

this._DataType = pDataType;
this._PrimaryIdentifier = 'ID' + this.dataTypeName;
this._PrimaryGUID = 'GUID' + this.dataTypeName;
this._DataTypeName = this._DataType.name;
}

@@ -34,9 +33,9 @@ createEntity() {

get dataTypeName() {
return this._DataType.name;
return this._DataTypeName;
}
get primaryIdentifier() {
return this._PrimaryIdentifier;
return 'ID' + this._DataTypeName;
}
get primaryGUID() {
return this._PrimaryGUID;
return 'GUID' + this._DataTypeName;
}

@@ -68,3 +67,3 @@ /** Create a new query, in context of this request and data type

return this.query(pRequestContext)
.where(this._PrimaryIdentifier, pIDRecord)
.where(this.primaryIdentifier, pIDRecord)
.read();

@@ -97,2 +96,2 @@ }

exports.BaseRepository = BaseRepository;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFzZVJlcG9zaXRvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zb3VyY2UvQmFzZVJlcG9zaXRvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsWUFBWSxDQUFBOztBQUVaLCtDQUE0QztBQUk1Qzs7R0FFRztBQUNILE1BQXNCLGNBQWM7SUFNaEMsWUFBWSxTQUF5QjtRQUVqQyxJQUFJLENBQUMsU0FBUyxHQUFHLFNBQVMsQ0FBQztRQUMzQixJQUFJLENBQUMsa0JBQWtCLEdBQUcsSUFBSSxHQUFHLElBQUksQ0FBQyxZQUFZLENBQUM7UUFDbkQsSUFBSSxDQUFDLFlBQVksR0FBRyxNQUFNLEdBQUcsSUFBSSxD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yxJQUFJLENBQUMsS0FBSyxDQUFDLGVBQWUsQ0FBQzthQUM3QixLQUFLLENBQUMsSUFBSSxDQUFDLGlCQUFpQixFQUFFLFVBQVUsQ0FBQzthQUN6QyxHQUFHLENBQUMsS0FBSyxDQUFDO2FBQ1YsS0FBSyxFQUFFLENBQUM7SUFDakIsQ0FBQztJQUVEOztNQUVFO0lBQ0YsS0FBSyxDQUFDLFVBQVUsQ0FBQyxXQUFtQixFQUFFLGVBQW9CO1FBRXRELElBQUksQ0FBQyxXQUFXO1lBQ1osT0FBTyxJQUFJLENBQUM7UUFFaEIsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLGVBQWUsQ0FBQzthQUM3QixLQUFLLENBQUMsSUFBSSxDQUFDLFdBQVcsRUFBRSxXQUFXLENBQUM7YUFDcEMsSUFBSSxFQUFFLENBQUM7SUFDaEIsQ0FBQztDQUtKO0FBdEhELHdDQXNIQyJ9
{
"name": "ts-repository-fluent",
"version": "0.0.7",
"version": "0.0.8",
"description": "A basic data repository framework for Typescript. Includes a fluent-style query interface.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -13,4 +13,3 @@ 'use strict'

protected _DataType: constructor<T>;
protected _PrimaryIdentifier: string;
protected _PrimaryGUID: string;
protected _DataTypeName: string;

@@ -20,4 +19,3 @@ constructor(pDataType: constructor<T>)

this._DataType = pDataType;
this._PrimaryIdentifier = 'ID' + this.dataTypeName;
this._PrimaryGUID = 'GUID' + this.dataTypeName;
this._DataTypeName = this._DataType.name;
}

@@ -53,11 +51,11 @@

{
return this._DataType.name;
return this._DataTypeName;
}
get primaryIdentifier(): string
{
return this._PrimaryIdentifier;
return 'ID' + this._DataTypeName;
}
get primaryGUID(): string
{
return this._PrimaryGUID;
return 'GUID' + this._DataTypeName;
}

@@ -96,3 +94,3 @@

return this.query(pRequestContext)
.where(this._PrimaryIdentifier, pIDRecord)
.where(this.primaryIdentifier, pIDRecord)
.read();

@@ -99,0 +97,0 @@ }

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