@muil/muil-javascript
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -28,6 +28,5 @@ export declare type Config = { | ||
}; | ||
export declare class HttpError { | ||
export declare class HttpError extends Error { | ||
private statusCode; | ||
private message; | ||
constructor(statusCode: number, message: string); | ||
} |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HttpError = void 0; | ||
var HttpError = /** @class */ (function () { | ||
var HttpError = /** @class */ (function (_super) { | ||
__extends(HttpError, _super); | ||
function HttpError(statusCode, message) { | ||
this.statusCode = statusCode; | ||
this.message = message; | ||
var _this = _super.call(this, message) || this; | ||
_this.statusCode = statusCode; | ||
return _this; | ||
} | ||
return HttpError; | ||
}()); | ||
}(Error)); | ||
exports.HttpError = HttpError; | ||
//# sourceMappingURL=types.js.map |
@@ -34,3 +34,3 @@ { | ||
}, | ||
"version": "0.0.4" | ||
"version": "0.0.5" | ||
} |
@@ -19,3 +19,3 @@ # JavaScript development for Muil API | ||
First you have to initialize the service with Api Key and project ID | ||
First you have to initialize the service with Api Key and host (if not using our SaaS solution) | ||
@@ -25,3 +25,3 @@ ``` | ||
muil.init({ apiKey: '123456.1234567890.awesomeProject', projectId: 'awesomeProject' }); | ||
muil.init({ host: 'MY_HOST_ADDRESS', apiKey: 'MY_API_KEY' }); | ||
``` | ||
@@ -70,3 +70,3 @@ | ||
## Send Email from Template with Attchment | ||
## Send Email from Template with Attachment | ||
@@ -73,0 +73,0 @@ ``` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14993
234
0