pg-error-enum
Advanced tools
Comparing version 0.4.0 to 0.5.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PostgresError = void 0; | ||
var PostgresError_1 = require("./PostgresError"); | ||
Object.defineProperty(exports, "PostgresError", { enumerable: true, get: function () { return PostgresError_1.PostgresError; } }); |
@@ -446,2 +446,4 @@ export declare enum PostgresError { | ||
DATABASE_DROPPED = "57P04", | ||
/** Class 57 - Operator Intervention: [E] idle_session_timeout */ | ||
IDLE_SESSION_TIMEOUT = "57P05", | ||
/** Class 58 - System Error (errors external to PostgreSQL itself): [E] system_error */ | ||
@@ -448,0 +450,0 @@ SYSTEM_ERROR = "58000", |
@@ -451,2 +451,4 @@ "use strict"; | ||
PostgresError["DATABASE_DROPPED"] = "57P04"; | ||
/** Class 57 - Operator Intervention: [E] idle_session_timeout */ | ||
PostgresError["IDLE_SESSION_TIMEOUT"] = "57P05"; | ||
/** Class 58 - System Error (errors external to PostgreSQL itself): [E] system_error */ | ||
@@ -453,0 +455,0 @@ PostgresError["SYSTEM_ERROR"] = "58000"; |
{ | ||
"name": "pg-error-enum", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "TypeScript Enum for Postgres Errors with no runtime dependencies", | ||
@@ -8,9 +8,12 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"sync": "ts-node --transpile-only src/sync.ts", | ||
"clean": "rm -fR ./dist/", | ||
"sync": "ts-node --transpile-only bin/sync.ts", | ||
"clean": "rm -rf ./dist/", | ||
"typecheck": "tsc --noEmit --project tsconfig.json && tsc --noEmit --project tsconfig.build.json", | ||
"build": "tsc --build tsconfig.build.json", | ||
"lint": "eslint './src/**/*.ts'", | ||
"format": "eslint './src/**/*.ts' --fix", | ||
"test": "exit 0", | ||
"prepare": "npm run build" | ||
"lint:check": "eslint ./src/ ./bin/ --ext .js,.ts", | ||
"lint:write": "eslint ./src/ ./bin/ --ext .js,.ts --fix", | ||
"format:check": "prettier . --check", | ||
"format:write": "prettier . --write", | ||
"test": "node bin/test.js", | ||
"prepublishOnly": "npm run build && npm run test" | ||
}, | ||
@@ -31,15 +34,14 @@ "files": [ | ||
"devDependencies": { | ||
"@types/isomorphic-fetch": "0.0.35", | ||
"@types/lodash.flatten": "^4.4.6", | ||
"@types/node": "^14.0.0", | ||
"@typescript-eslint/eslint-plugin": "^2.6.1", | ||
"@typescript-eslint/parser": "^2.6.1", | ||
"eslint": "^6.6.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"isomorphic-fetch": "^2.2.1", | ||
"lodash.flatten": "^4.4.0", | ||
"ts-node": "^8.4.1", | ||
"typescript": "^3.7.2" | ||
"@types/node": "^14.14.37", | ||
"@typescript-eslint/eslint-plugin": "^4.20.0", | ||
"@typescript-eslint/parser": "^4.20.0", | ||
"cross-fetch": "^3.1.2", | ||
"eslint": "^7.23.0", | ||
"eslint-config-airbnb-typescript": "^12.3.1", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"prettier": "^2.2.1", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.2.3" | ||
} | ||
} |
@@ -53,3 +53,3 @@ # pg-error-enum | ||
```ts | ||
/^Section:\s(?<description>.*)$/ | ||
const sectionRegex = /^Section:\s(?<description>.*)$/; | ||
``` | ||
@@ -60,3 +60,3 @@ | ||
```ts | ||
/^(?<sqlstate>[A-Z0-9]*)\s*(?<severity>[EWS])\s*ERRCODE_(?<constant>[A-Z_]*)\s*(?<code>[a-z_]*)$/ | ||
const errorLineRegex = /^(?<sqlstate>[A-Z0-9]*)\s*(?<severity>[EWS])\s*ERRCODE_(?<constant>[A-Z_]*)\s*(?<code>[a-z_]*)$/; | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71518
11
1075