Socket
Socket
Sign inDemoInstall

ts-redis-orm

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-redis-orm - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

package.json
{
"name": "ts-redis-orm",
"version": "0.1.2",
"version": "0.1.3",
"description": "A full functional Redis Orm library written in Typescript.",

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

@@ -14,3 +14,11 @@ import {entityExporter} from "./entityExporter";

// this will init connection
return await metaInstance.getRedis(this);
const redis = await metaInstance.getRedis(this);
// validate the schema
const schemaErrors = await metaInstance.compareSchemas(this);
if (schemaErrors.length) {
throw new RedisOrmSchemaError("Invalid Schemas", schemaErrors);
}
return redis;
}

@@ -17,0 +25,0 @@

@@ -79,3 +79,11 @@ import { assert, expect } from "chai";

// connect will check schemas
try {
await TestingSchema2.connect();
assert.isTrue(false);
} catch (err) {
assert.isTrue(err instanceof RedisOrmSchemaError);
}
try {
const entity2 = new TestingSchema2();

@@ -82,0 +90,0 @@ entity2.id = -1;

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