@silexpert/core 2.0.127 → 2.0.128-legacy-beta.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,117 +1,39 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "2.0.127",
3
+ "version": "2.0.128-legacy-beta.0",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
- "keywords": [
6
- "accounting",
7
- "api-client",
8
- "esm",
9
- "nuxt",
10
- "silex",
11
- "typescript",
12
- "vue"
13
- ],
5
+ "license": "ISC",
6
+ "author": "Silex",
14
7
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
15
8
  "bugs": {
16
9
  "url": "https://gitlab.compta-clementine.fr/dev/silex-api/-/issues"
17
10
  },
18
- "license": "ISC",
19
- "author": "Silex",
20
11
  "repository": {
21
12
  "type": "git",
22
13
  "url": "git@gitlab.compta-clementine.fr:dev/next-core-clementine.git"
23
14
  },
24
- "files": [
25
- "dist"
26
- ],
27
- "type": "module",
28
- "sideEffects": false,
29
- "main": "./dist/index.mjs",
30
- "module": "./dist/index.mjs",
31
- "browser": {
32
- "debug": false
33
- },
34
- "types": "./dist/index.d.mts",
35
- "imports": {
36
- "#utils/*": "./dist/utils/*",
37
- "#types/*": "./dist/types/*",
38
- "#server/*": "./dist/server/*",
39
- "#api/*": "./dist/api/*"
40
- },
15
+ "main": "./index.cjs",
16
+ "types": "./index.d.cts",
41
17
  "exports": {
42
18
  ".": {
43
- "types": "./dist/index.d.mts",
44
- "import": "./dist/index.mjs"
45
- },
46
- "./server": {
47
- "types": "./dist/server/index.d.mts",
48
- "import": "./dist/server/index.mjs"
49
- },
50
- "./client": {
51
- "types": "./dist/index.d.mts",
52
- "import": "./dist/client/index.mjs"
53
- },
54
- "./client/server": {
55
- "types": "./dist/server/index.d.mts",
56
- "import": "./dist/client/server/index.mjs"
57
- }
58
- },
59
- "dependencies": {
60
- "@types/sanitize-html": "^2.16.2",
61
- "axios": "1.20.0",
62
- "dayjs": "1.11.23",
63
- "ejs": "6.0.1",
64
- "libphonenumber-js": "^1.13.14",
65
- "lodash-es": "^4.18.1",
66
- "sanitize-html": "^2.17.7",
67
- "sms-length": "^0.2.2"
68
- },
69
- "devDependencies": {
70
- "@types/bluebird": "^3.5.42",
71
- "@types/lodash-es": "^4.17.12",
72
- "@types/node": "^24.19.0",
73
- "@types/validator": "^13.15.10",
74
- "class-transformer": "^0.5.1",
75
- "class-validator": "^0.15.1",
76
- "oxlint": "^1.89.0",
77
- "rimraf": "^6.1.3",
78
- "standard-version": "^9.5.0",
79
- "stripe": "22.6.1",
80
- "tsdown": "^0.23.0",
81
- "typescript": "6.0.3"
82
- },
83
- "peerDependencies": {
84
- "@types/bluebird": "^3.5.28",
85
- "class-transformer": "^0.5.1",
86
- "class-validator": "^0.15.1",
87
- "stripe": "22.6.1"
88
- },
89
- "peerDependenciesMeta": {
90
- "class-transformer": {
91
- "optional": true
92
- },
93
- "class-validator": {
94
- "optional": true
95
- },
96
- "stripe": {
97
- "optional": true
19
+ "types": "./index.d.cts",
20
+ "require": "./index.cjs",
21
+ "default": "./index.cjs"
98
22
  }
99
23
  },
24
+ "sideEffects": false,
25
+ "files": [
26
+ "index.cjs",
27
+ "index.cjs.map",
28
+ "index.d.cts",
29
+ "index.d.cts.map"
30
+ ],
100
31
  "engines": {
101
- "node": ">=20"
32
+ "node": ">=12.15.0"
102
33
  },
103
- "scripts": {
104
- "clean": "rimraf ./es ./js ./dist",
105
- "lint": "oxlint",
106
- "lint:fix": "oxlint --fix",
107
- "format": "oxfmt",
108
- "format:check": "oxfmt --check",
109
- "check-types": "tsc -p tsconfig.json --noEmit",
110
- "build": "pnpm run clean && tsdown",
111
- "compile": "pnpm run build",
112
- "compile:watch": "tsdown --watch",
113
- "prepublish": "pnpm run compile",
114
- "release": "standard-version",
115
- "pre-commit": "pnpm lint"
34
+ "dependencies": {
35
+ "axios": "^1.20.0",
36
+ "dayjs": "^1.11.23",
37
+ "sms-length": "^0.2.2"
116
38
  }
117
39
  }
package/README.md DELETED
@@ -1,90 +0,0 @@
1
- <h1 align="center">Welcome to @silexpert/core 👋</h1>
2
- <p>
3
- <img alt="Version" src="https://img.shields.io/badge/version-0.0.1-blue.svg?cacheSeconds=2592000" />
4
- <img src="https://img.shields.io/badge/node-%3E%3D12.15.0-blue.svg" />
5
- <a href="https://gitlab.compta-clementine.fr/dev/silex-api/-/blob/dev/README.md" target="_blank">
6
- <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
7
- </a>
8
- <a href="#" target="_blank">
9
- <img alt="License: ISC" src="https://img.shields.io/badge/License-ISC-yellow.svg" />
10
- </a>
11
- </p>
12
-
13
- > Silex Core permet de réaliser des requêtes HTTP depuis les applications front-end et de retourner des objets consistants entre les deux couches applicatives.
14
-
15
- ### 🏠 [Homepage](https://gitlab.compta-clementine.fr/dev/silex-api/)
16
-
17
- ## Prerequisites
18
-
19
- - node >=24
20
-
21
- ## Install
22
-
23
- ```sh
24
- pnpm install
25
- ```
26
-
27
- ## Usage
28
-
29
- Pour commencer à utiliser le CORE avec l'API/APP, celui-ci doit être associé dans les dossiers respectifs.<br><br>
30
- Pour ce faire, nous n'allons pas utiliser yarn mais un package (https://www.npmjs.com/package/yalc) qui va nous permettre de nous assurer qu'avant de publier une nouvelle version du core, nous n'avons pas introduit des problèmes liés aux dépendances.<br>
31
-
32
- <br>Pour installer yalc globalement:<br>
33
-
34
- ```sh
35
- yarn global add yalc
36
- ```
37
-
38
- Ensuite dans le core, il suffit d'exécuter cette commande:
39
-
40
- ```sh
41
- yalc publish
42
- ```
43
-
44
- Une version du CORE local sera ainsi déployé, en simulant un déploiement npm.<br><br>
45
- Pour pouvoir utiliser le core dans l'API/APP, il faut se rendre dans les dossiers des applications respectifs et saisir la commande:<br>
46
-
47
- ```sh
48
- yalc link @silexpert/core
49
- ```
50
-
51
- Un lien symbolique vers le repository local est créé.<br><br>
52
- Lorsqu'une modification du core a été réalisé, l'ajout d'une nouvelle interface par exemple, il faut se rendre dans le CORE est lancé la commande suivante: <br>
53
-
54
- ```sh
55
- yalc push (ne met pas à jour automatiquement le CORE dans l'api)
56
- ```
57
-
58
- ou alors
59
-
60
- ```sh
61
- yalc publish --push (met pas à jour automatiquement le CORE dans l'api)
62
- ```
63
-
64
- Dans l'API/APP il faut ensuite pull les modifications à l'aide de la commande suivante:
65
-
66
- ```sh
67
- yalc update
68
- ```
69
-
70
- ## Run tests
71
-
72
- ```sh
73
- pnpm run test
74
- ```
75
-
76
- ## Author
77
-
78
- 👤 **Silex**
79
-
80
- ## 🤝 Contributing
81
-
82
- Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://gitlab.compta-clementine.fr/dev/silex-core/-/issues). You can also take a look at the [contributing guide](git@gitlab.compta-clementine.fr:dev/next-core-clementine/blob/master/CONTRIBUTING.md).
83
-
84
- ## Show your support
85
-
86
- Give a ⭐️ if this project helped you!
87
-
88
- ---
89
-
90
- _This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_