@litusarchieve18/agricore-utils 1.0.10 → 1.0.11

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/README.md CHANGED
@@ -129,6 +129,8 @@ Run the publish command:
129
129
  Bash
130
130
  npm publish --access public
131
131
  📝 Version History
132
+ V1.0.11 — add userName and userEmail to AgriCoreSession
133
+
132
134
  V1.0.10 — add an explicit exports map
133
135
 
134
136
  V1.0.9 — added jwt function
package/dist/index.d.mts CHANGED
@@ -23,6 +23,8 @@ interface ResourceOverrides {
23
23
  */
24
24
  interface AgriCoreSession {
25
25
  userId: string;
26
+ userName: string;
27
+ userEmail: string;
26
28
  companyId: string;
27
29
  activeScopeId: string | null;
28
30
  companyConfig: CompanyConfig;
package/dist/index.d.ts CHANGED
@@ -23,6 +23,8 @@ interface ResourceOverrides {
23
23
  */
24
24
  interface AgriCoreSession {
25
25
  userId: string;
26
+ userName: string;
27
+ userEmail: string;
26
28
  companyId: string;
27
29
  activeScopeId: string | null;
28
30
  companyConfig: CompanyConfig;
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
- {
2
- "name": "@litusarchieve18/agricore-utils",
3
- "version": "1.0.10",
4
- "description": "Canonical Backend Utility Library for AgriCore",
5
- "main": "./dist/index.js",
6
- "module": "./dist/index.mjs",
7
- "types": "./dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.mjs",
12
- "require": "./dist/index.js",
13
- "default": "./dist/index.mjs"
14
- }
15
- },
16
- "files": [
17
- "dist"
18
- ],
19
- "scripts": {
20
- "build": "tsup src/index.ts --format cjs,esm --dts --clean",
21
- "prepublishOnly": "npm run build"
22
- },
23
- "keywords": [
24
- "agricore",
25
- "utils",
26
- "backend"
27
- ],
28
- "author": "Vincent",
29
- "license": "ISC",
30
- "devDependencies": {
31
- "tsup": "^8.0.0",
32
- "typescript": "^5.0.0"
33
- },
34
- "dependencies": {
35
- "jose": "^6.2.2"
36
- }
37
- }
1
+ {
2
+ "name": "@litusarchieve18/agricore-utils",
3
+ "version": "1.0.11",
4
+ "description": "Canonical Backend Utility Library for AgriCore",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js",
13
+ "default": "./dist/index.mjs"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsup src/index.ts --format cjs,esm --dts --clean",
21
+ "prepublishOnly": "npm run build"
22
+ },
23
+ "keywords": [
24
+ "agricore",
25
+ "utils",
26
+ "backend"
27
+ ],
28
+ "author": "Vincent",
29
+ "license": "ISC",
30
+ "devDependencies": {
31
+ "tsup": "^8.0.0",
32
+ "typescript": "^5.0.0"
33
+ },
34
+ "dependencies": {
35
+ "jose": "^6.2.2"
36
+ }
37
+ }