@appsignal/javascript
Advanced tools
Comparing version 1.3.27-rc.2 to 1.3.27
# AppSignal for JavaScript changelog | ||
## 1.3.27-rc.2 | ||
## 1.3.27 | ||
### Fixed | ||
- [9bd47d6](https://github.com/appsignal/appsignal-javascript/commit/9bd47d685e3919167fb8b5bbd39d8c35093f38b3) patch - Emit a warning if NodeTransport is used but the HTTPS module is not available | ||
- [96f46fc](https://github.com/appsignal/appsignal-javascript/commit/96f46fc19edf03e521fa2ab9aebc53977c0526da) patch - Attempt to import the `http` and `https` module dynamically. This fixes | ||
an issue with Electron, which does not expose the `https` module. | ||
Emit a warning if `NodeTransport` is used but the `https` module fails to be imported. | ||
This allows Electron users to use the AppSignal integration alongside | ||
with the `electron-fetch` library. | ||
## 1.3.27-rc.1 | ||
### Fixed | ||
- [b9be691](https://github.com/appsignal/appsignal-javascript/commit/b9be69158507c88007fa5da33007464ba652eaa4) patch - Fix attempt to use HTTPS in Electron | ||
## 1.3.26 | ||
@@ -16,0 +16,0 @@ |
import { Transport } from "../interfaces/transport"; | ||
export declare class NodeTransport implements Transport { | ||
url: string; | ||
private https; | ||
constructor(url: string); | ||
@@ -5,0 +6,0 @@ send(data: string): Promise<any>; |
@@ -30,2 +30,3 @@ "use strict"; | ||
this.url = url; | ||
this.https = Promise.resolve().then(function () { return __importStar(require("https")); }); | ||
} | ||
@@ -42,3 +43,4 @@ NodeTransport.prototype.send = function (data) { | ||
return new Promise(function (resolve, reject) { | ||
Promise.resolve().then(function () { return __importStar(require("https")); }).then(function (https) { | ||
_this.https | ||
.then(function (https) { | ||
var req = https | ||
@@ -45,0 +47,0 @@ .request(_this.url, options, function () { }) |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.3.27-rc.1"; | ||
export declare const VERSION = "1.3.26"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = "1.3.27-rc.1"; | ||
exports.VERSION = "1.3.26"; | ||
//# sourceMappingURL=version.js.map |
import { Transport } from "../interfaces/transport"; | ||
export declare class NodeTransport implements Transport { | ||
url: string; | ||
private https; | ||
constructor(url: string); | ||
@@ -5,0 +6,0 @@ send(data: string): Promise<any>; |
var NodeTransport = (function () { | ||
function NodeTransport(url) { | ||
this.url = url; | ||
this.https = import("https"); | ||
} | ||
@@ -15,3 +16,3 @@ NodeTransport.prototype.send = function (data) { | ||
return new Promise(function (resolve, reject) { | ||
import("https") | ||
_this.https | ||
.then(function (https) { | ||
@@ -18,0 +19,0 @@ var req = https |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.3.27-rc.1"; | ||
export declare const VERSION = "1.3.26"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export var VERSION = "1.3.27-rc.1"; | ||
export var VERSION = "1.3.26"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@appsignal/javascript", | ||
"version": "1.3.27-rc.2", | ||
"version": "1.3.27", | ||
"main": "dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
156916
1439
1