Skip to content
Commits on Source (2)
## [0.5.1](https://git.zsinfo.nl/Zandor300/node-net-reconnect/compare/v0.5.0...v0.5.1) (2025-02-04)
### Bug Fixes
* Fix Typescript. ([7b3471f](https://git.zsinfo.nl/Zandor300/node-net-reconnect/commit/7b3471fc0614edc7b0e80356e3a2393504c24bd4))
# [0.5.0](https://git.zsinfo.nl/Zandor300/node-net-reconnect/compare/v0.4.0...v0.5.0) (2025-02-04)
......
{
"name": "@zandor300/node-net-reconnect",
"version": "0.5.0",
"version": "0.5.1",
"description": "Reconnect logic for TCP sockets.",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
......@@ -34,7 +35,7 @@
"@semantic-release/npm": "12.0.1",
"@types/debug": "4.1.12",
"@types/node": "22.13.1",
"mocha": "3.3.0",
"mocha": "11.1.0",
"semantic-release": "24.2.1",
"sinon": "2.1.0",
"typescript": "5.7.3"
......
export { default as NetReconnect } from './NetReconnect';
export type { NetReconnectOptions } from './NetReconnect';
export { default as NetReconnect } from './NetReconnect.js';
export type { NetReconnectOptions } from './NetReconnect.js';
/* global describe, it, beforeEach */
const EventEmitter = require('events')
const sinon = require('sinon')
const Reconnect = require('../dist/NetReconnect').default
// const EventEmitter = require('events')
// const sinon = require('sinon')
import { EventEmitter } from 'events'
import * as sinon from 'sinon'
import { NetReconnect as Reconnect } from "../dist/index.js";
describe('NetReconnect Tests', function () {
let socket
......
......@@ -3,9 +3,9 @@
/* Basic Options */
"target": "es6",
/* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"module": "commonjs",
"module": "ESNext",
/* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */
"lib": ["ESNext"], /* Specify library files to be included in the compilation. */
"allowJs": false,
/* Allow javascript files to be compiled. */
"checkJs": false,
......@@ -15,7 +15,7 @@
/* Generates corresponding '.d.ts' file. */
"declarationMap": true,
/* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true,
"sourceMap": true,
/* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "dist",
......@@ -46,7 +46,7 @@
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
......@@ -68,14 +68,14 @@
/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
"skipLibCheck": true
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": [
"src/**/*",
"types/**/*.ts"
"src/**/*"
],
"exclude": [
"node_modules",
"!node_modules/@types"
"dist"
]
}
source diff could not be displayed: it is too large. Options to address this: view the blob.