@othree.io/auditor 2.1.0 → 3.0.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/package.json CHANGED
@@ -1,16 +1,28 @@
1
1
  {
2
2
  "name": "@othree.io/auditor",
3
- "version": "2.1.0",
4
- "description": "Auditor",
3
+ "version": "3.0.0",
4
+ "description": "A functional validation library built on Zod that returns Optional<T> instead of throwing exceptions",
5
5
  "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
7
+ "files": [
8
+ "lib"
9
+ ],
6
10
  "scripts": {
7
11
  "test": "vitest run",
8
12
  "build": "tsc",
9
13
  "semantic-release": "semantic-release"
10
14
  },
11
15
  "keywords": [
12
- "auditor"
16
+ "validation",
17
+ "zod",
18
+ "functional",
19
+ "optional",
20
+ "typescript"
13
21
  ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://gitlab.com/othree.oss/auditor.git"
25
+ },
14
26
  "author": "othree",
15
27
  "license": "ISC",
16
28
  "peerDependencies": {
package/.gitlab-ci.yml DELETED
@@ -1,29 +0,0 @@
1
- image: node:22-alpine
2
-
3
- cache:
4
- key: ${CI_PIPELINE_ID}
5
- paths:
6
- - node_modules/
7
- - lib/
8
-
9
- build:
10
- stage: build
11
- script:
12
- - npm install && npm run build
13
-
14
- test:
15
- stage: test
16
- script:
17
- - npm test
18
-
19
- deploy:
20
- image: node:22
21
- stage: deploy
22
- variables:
23
- NPM_CONFIG_USERCONFIG: '$CI_PROJECT_DIR/.npmrc'
24
- script:
25
- - cat $NPM > .npmrc
26
- - npx semantic-release
27
- only:
28
- refs:
29
- - main
package/release.config.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- plugins: ['@semantic-release/commit-analyzer', '@semantic-release/release-notes-generator', '@semantic-release/npm'],
3
- branches: ['master', 'main']
4
- }
package/vitest.config.mts DELETED
@@ -1,20 +0,0 @@
1
- import {defineConfig} from 'vitest/config'
2
-
3
- export default defineConfig({
4
- test: {
5
- coverage: {
6
- include: ['src/**/*'],
7
- enabled: true,
8
- provider: 'istanbul',
9
- all: true,
10
- thresholds: {
11
- branches: 100,
12
- functions: 100,
13
- lines: 100,
14
- statements: 100,
15
- },
16
- reporter: ['text','html'],
17
- reportOnFailure: true
18
- },
19
- },
20
- })