@yamato-daiwa/es-extensions 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ var HTTP_StatusCodes;
5
5
  HTTP_StatusCodes[HTTP_StatusCodes["continue"] = 100] = "continue";
6
6
  HTTP_StatusCodes[HTTP_StatusCodes["switchingProtocols"] = 101] = "switchingProtocols";
7
7
  HTTP_StatusCodes[HTTP_StatusCodes["OK"] = 200] = "OK";
8
- HTTP_StatusCodes[HTTP_StatusCodes["created"] = 200] = "created";
8
+ HTTP_StatusCodes[HTTP_StatusCodes["created"] = 201] = "created";
9
9
  HTTP_StatusCodes[HTTP_StatusCodes["nonAuthoritativeInformation"] = 203] = "nonAuthoritativeInformation";
10
10
  HTTP_StatusCodes[HTTP_StatusCodes["noContent"] = 204] = "noContent";
11
11
  HTTP_StatusCodes[HTTP_StatusCodes["resetContent"] = 205] = "resetContent";
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  class Timer {
4
- constructor(parametersObject) {
5
- this.period__seconds = parametersObject.period__seconds;
6
- this.onElapsed = parametersObject.onElapsed;
4
+ constructor(namedParameters) {
5
+ this.period__seconds = namedParameters.period__seconds;
6
+ this.onElapsed = namedParameters.onElapsed;
7
7
  }
8
8
  }
9
9
  exports.default = Timer;
@@ -2,7 +2,7 @@ declare enum HTTP_StatusCodes {
2
2
  continue = 100,
3
3
  switchingProtocols = 101,
4
4
  OK = 200,
5
- created = 200,
5
+ created = 201,
6
6
  nonAuthoritativeInformation = 203,
7
7
  noContent = 204,
8
8
  resetContent = 205,
@@ -3,7 +3,7 @@ var HTTP_StatusCodes;
3
3
  HTTP_StatusCodes[HTTP_StatusCodes["continue"] = 100] = "continue";
4
4
  HTTP_StatusCodes[HTTP_StatusCodes["switchingProtocols"] = 101] = "switchingProtocols";
5
5
  HTTP_StatusCodes[HTTP_StatusCodes["OK"] = 200] = "OK";
6
- HTTP_StatusCodes[HTTP_StatusCodes["created"] = 200] = "created";
6
+ HTTP_StatusCodes[HTTP_StatusCodes["created"] = 201] = "created";
7
7
  HTTP_StatusCodes[HTTP_StatusCodes["nonAuthoritativeInformation"] = 203] = "nonAuthoritativeInformation";
8
8
  HTTP_StatusCodes[HTTP_StatusCodes["noContent"] = 204] = "noContent";
9
9
  HTTP_StatusCodes[HTTP_StatusCodes["resetContent"] = 205] = "resetContent";
@@ -1,7 +1,7 @@
1
1
  export default abstract class Timer {
2
2
  protected readonly period__seconds: number;
3
3
  protected readonly onElapsed: () => unknown;
4
- constructor(parametersObject: {
4
+ constructor(namedParameters: {
5
5
  period__seconds: number;
6
6
  onElapsed: () => unknown;
7
7
  });
@@ -1,6 +1,6 @@
1
1
  export default class Timer {
2
- constructor(parametersObject) {
3
- this.period__seconds = parametersObject.period__seconds;
4
- this.onElapsed = parametersObject.onElapsed;
2
+ constructor(namedParameters) {
3
+ this.period__seconds = namedParameters.period__seconds;
4
+ this.onElapsed = namedParameters.onElapsed;
5
5
  }
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamato-daiwa/es-extensions",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Helper functions and classes aimed to reduce the routine code. Build-in TypeScript type safety.",
5
5
  "keywords": [
6
6
  "typescript",