Socket
Socket
Sign inDemoInstall

@tediousjs/connection-string

Package Overview
Dependencies
0
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.1 to 0.4.2

0

lib/index.d.ts

@@ -0,0 +0,0 @@ import parseConnectionString from './parser/connection-string';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export interface CollectionConfig {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare enum SchemaTypes {

3

lib/parser/sql-connection-string.js

@@ -217,3 +217,4 @@ "use strict";

}
if (!Number.isNaN(parseInt(value, 10))) {
const asNum = parseInt(value, 10);
if (!Number.isNaN(asNum) && asNum.toString() === value) {
return SchemaTypes.NUMBER;

@@ -220,0 +221,0 @@ }

{
"name": "@tediousjs/connection-string",
"version": "0.4.1",
"version": "0.4.2",
"description": "SQL ConnectionString parser",

@@ -5,0 +5,0 @@ "repository": {

@@ -42,7 +42,7 @@ # Connection String Parser

```js
const { parseMssqlConnectionString } = require('@tediousjs/connection-string');
const { parseSqlConnectionString } = require('@tediousjs/connection-string');
const connectionString = 'User ID=user;Password=password;Initial Catalog=AdventureWorks;Server=MySqlServer';
const parsed = parseConnectionString(connectionString, true);
const parsed = parseSqlConnectionString(connectionString, true);

@@ -49,0 +49,0 @@ console.log(parsed);

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc