beavuck-time 2.1.21 → 2.2.0

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.
package/.gitlab-ci.yml CHANGED
@@ -61,7 +61,7 @@ include:
61
61
 
62
62
  - component: "$CI_SERVER_FQDN/beavuck-services/ci-cd-catalog/docker-publisher/docker-publisher@main"
63
63
  inputs:
64
- job_name: "publish"
64
+ job_name: "publish_to_docker"
65
65
  stage_config: "deploy"
66
66
  image_name: "beavuck/time"
67
67
  publish_to_dockerhub: true
@@ -79,7 +79,7 @@ format:
79
79
  rules:
80
80
  - if: "$CI_PIPELINE_SOURCE == 'merge_request_event'"
81
81
 
82
- publish:
82
+ publish_to_docker:
83
83
  rules:
84
84
  - if: "$CI_COMMIT_TAG"
85
85
  when: manual
@@ -147,3 +147,12 @@ analyze:
147
147
  optional: true
148
148
  - job: coverage
149
149
  artifacts: true
150
+
151
+ publish_to_npm:
152
+ stage: deploy
153
+ before_script:
154
+ - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
155
+ script: npm publish --access public
156
+ rules:
157
+ - if: "$CI_COMMIT_TAG"
158
+ when: manual
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "info": {
34
34
  "title": "beavuck-time",
35
- "version": "2.1.21",
35
+ "version": "2.2.0",
36
36
  "description": "Get time in ISO format, in UTC timezone, from a simple, lightweight node server",
37
37
  "license": {
38
38
  "name": "Unlicense"
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "beavuck-time",
3
- "version": "2.1.21",
3
+ "version": "2.2.0",
4
4
  "description": "Get time in ISO format, in UTC timezone, from a simple, lightweight node server",
5
- "keywords": [],
5
+ "keywords": [
6
+ "time",
7
+ "iso",
8
+ "high-performance",
9
+ "microservice",
10
+ "open source"
11
+ ],
6
12
  "homepage": "https://gitlab.com/beavuck-services/time",
7
13
  "bugs": {
8
14
  "url": "https://gitlab.com/beavuck-services/time/-/issues"
package/build/api.js DELETED
@@ -1,20 +0,0 @@
1
- "use strict";
2
- // src/api.ts
3
- var __importDefault = (this && this.__importDefault) || function (mod) {
4
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.api = void 0;
8
- const express_1 = __importDefault(require("express"));
9
- const corsMiddleware_1 = require("./middlewares/corsMiddleware");
10
- const errorHandler_1 = require("./middlewares/errorHandler");
11
- const rateLimiter_1 = require("./middlewares/rateLimiter");
12
- const notFoundHandler_1 = require("./middlewares/notFoundHandler");
13
- const routes_1 = require("./routes/routes");
14
- exports.api = (0, express_1.default)();
15
- exports.api.disable('x-powered-by');
16
- exports.api.use(corsMiddleware_1.corsMiddleware);
17
- exports.api.use(errorHandler_1.errorHandler);
18
- exports.api.use(rateLimiter_1.rateLimiter);
19
- (0, routes_1.RegisterRoutes)(exports.api);
20
- exports.api.use(notFoundHandler_1.notFoundHandler);