czapp-shared 1.0.4 → 1.0.6

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 ADDED
@@ -0,0 +1,25 @@
1
+ image: node:18-alpine
2
+
3
+ stages:
4
+ - build
5
+ - test
6
+
7
+ build:
8
+ stage: build
9
+ script:
10
+ - npm install
11
+ cache:
12
+ paths:
13
+ - node_modules/
14
+ artifacts:
15
+ expire_in: 1 days
16
+ when: on_success
17
+ paths:
18
+ - node_modules/
19
+
20
+ unitTest:
21
+ stage: test
22
+ dependencies:
23
+ - build
24
+ script:
25
+ - npm run test:unit
package/README.md CHANGED
@@ -19,9 +19,9 @@ To build:
19
19
  npm run build
20
20
  ```
21
21
 
22
- To test:
22
+ To run unit tests:
23
23
  ```bash
24
- npm run test
24
+ npm run test:unit
25
25
  ```
26
26
 
27
27
  To release new version, and types and then run this...
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "czapp-shared",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "This is a shared library for Czapp projects. It contains common code that is used across multiple projects.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,13 +1,11 @@
1
1
  import { expect } from 'chai';
2
- import { MySQLDate } from '../../lib';
3
2
  import {
4
3
  convertJSDateObjectToMySQLDateString,
5
4
  convertJSDateStringToMySQLDate, dateDifferenceInDays, isClientDateTooFarFromServerDate,
6
5
  isThePreviousDay,
7
- isTheSameDay, isValidJsDateString, isValidMysqlDateString
8
- } from '../../lib/util';
9
-
10
-
6
+ isTheSameDay, isValidJsDateString, isValidMysqlDateString,
7
+ MySQLDate
8
+ } from '../../src';
11
9
  describe('Date', () => {
12
10
  describe('isTheSameDay', () => {
13
11
  it('should return true if both dates are the same calendar day', () => {