@toolproof-npm/shared 0.1.30 → 0.1.31

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
@@ -1,56 +1,56 @@
1
- # @toolproof-npm/shared
2
-
3
- Core library utilities for ToolProof.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- pnpm add @toolproof-npm/shared
9
- # or
10
- npm install @toolproof-npm/shared
11
- # or
12
- yarn add @toolproof-npm/shared
13
- ```
14
-
15
- ## Usage
16
-
17
- ### Basic Import
18
-
19
- ```typescript
20
- import { /* your exports */ } from '@toolproof-npm/shared';
21
- ```
22
-
23
- ### Constants
24
-
25
- ```typescript
26
- import { /* constants */ } from '@toolproof-npm/shared/constants';
27
- ```
28
-
29
- ### Types
30
-
31
- ```typescript
32
- import { /* types */ } from '@toolproof-npm/shared/types';
33
- ```
34
-
35
- ### Server Utilities (Node.js only)
36
-
37
- ```typescript
38
- import { /* server utilities */ } from '@toolproof-npm/shared/server';
39
- ```
40
-
41
- ## Features
42
-
43
- - TypeScript support with full type definitions
44
- - ESM module format
45
- - Tree-shakeable exports
46
- - Server-side utilities for Firestore admin operations
47
-
48
- ## Requirements
49
-
50
- - Node.js 16+
51
- - TypeScript 4.5+ (for TypeScript projects)
52
-
53
- ## License
54
-
55
- MIT
56
-
1
+ # @toolproof-npm/shared
2
+
3
+ Core library utilities for ToolProof.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pnpm add @toolproof-npm/shared
9
+ # or
10
+ npm install @toolproof-npm/shared
11
+ # or
12
+ yarn add @toolproof-npm/shared
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ### Basic Import
18
+
19
+ ```typescript
20
+ import { /* your exports */ } from '@toolproof-npm/shared';
21
+ ```
22
+
23
+ ### Constants
24
+
25
+ ```typescript
26
+ import { /* constants */ } from '@toolproof-npm/shared/constants';
27
+ ```
28
+
29
+ ### Types
30
+
31
+ ```typescript
32
+ import { /* types */ } from '@toolproof-npm/shared/types';
33
+ ```
34
+
35
+ ### Server Utilities (Node.js only)
36
+
37
+ ```typescript
38
+ import { /* server utilities */ } from '@toolproof-npm/shared/server';
39
+ ```
40
+
41
+ ## Features
42
+
43
+ - TypeScript support with full type definitions
44
+ - ESM module format
45
+ - Tree-shakeable exports
46
+ - Server-side utilities for Firestore admin operations
47
+
48
+ ## Requirements
49
+
50
+ - Node.js 16+
51
+ - TypeScript 4.5+ (for TypeScript projects)
52
+
53
+ ## License
54
+
55
+ MIT
56
+
@@ -1,5 +1,5 @@
1
1
  import { CONSTANTS } from './constants.js';
2
- import { dbAdmin, storageAdmin } from "./firestoreAdminInit.js";
2
+ import { dbAdmin, storageAdmin } from "./firebaseAdminInit.js";
3
3
  export function getNewId(identifiable) {
4
4
  const base = identifiable.toUpperCase();
5
5
  const normalized = base.endsWith('S') ? base.slice(0, -1) : base;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * as CONSTANTS from './constants.js';
2
2
  export * as TYPES from './types.js';
3
- export * from './firestoreAdminHelpers.js';
3
+ export * from './firebaseAdminHelpers.js';
4
+ export * from './firebaseAdminInit.js';
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * as CONSTANTS from './constants.js';
2
2
  export * as TYPES from './types.js';
3
- export * from './firestoreAdminHelpers.js';
3
+ export * from './firebaseAdminHelpers.js';
4
+ export * from './firebaseAdminInit.js';
package/package.json CHANGED
@@ -1,61 +1,61 @@
1
1
  {
2
- "name": "@toolproof-npm/shared",
3
- "version": "0.1.30",
4
- "description": "Core library utilities for ToolProof",
5
- "keywords": [
6
- "toolproof",
7
- "utilities",
8
- "library"
9
- ],
10
- "author": "ToolProof Team",
11
- "license": "MIT",
12
- "repository": {
13
- "type": "git",
14
- "url": "https://github.com/ToolProof/core.git",
15
- "directory": "packages/_lib"
2
+ "name": "@toolproof-npm/shared",
3
+ "version": "0.1.31",
4
+ "description": "Core library utilities for ToolProof",
5
+ "keywords": [
6
+ "toolproof",
7
+ "utilities",
8
+ "library"
9
+ ],
10
+ "author": "ToolProof Team",
11
+ "license": "MIT",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/ToolProof/core.git",
15
+ "directory": "packages/_lib"
16
+ },
17
+ "homepage": "https://github.com/ToolProof/core#readme",
18
+ "bugs": {
19
+ "url": "https://github.com/ToolProof/core/issues"
20
+ },
21
+ "type": "module",
22
+ "main": "dist/index.js",
23
+ "types": "dist/index.d.ts",
24
+ "sideEffects": false,
25
+ "exports": {
26
+ ".": {
27
+ "import": "./dist/index.js",
28
+ "types": "./dist/index.d.ts"
16
29
  },
17
- "homepage": "https://github.com/ToolProof/core#readme",
18
- "bugs": {
19
- "url": "https://github.com/ToolProof/core/issues"
30
+ "./constants": {
31
+ "import": "./dist/constants.js",
32
+ "types": "./dist/constants.d.ts"
20
33
  },
21
- "type": "module",
22
- "main": "dist/index.js",
23
- "types": "dist/index.d.ts",
24
- "sideEffects": false,
25
- "exports": {
26
- ".": {
27
- "import": "./dist/index.js",
28
- "types": "./dist/index.d.ts"
29
- },
30
- "./constants": {
31
- "import": "./dist/constants.js",
32
- "types": "./dist/constants.d.ts"
33
- },
34
- "./types": {
35
- "import": "./dist/types.js",
36
- "types": "./dist/types.d.ts"
37
- },
38
- "./server": {
39
- "node": "./dist/firestoreAdminHelpers.js",
40
- "types": "./dist/firestoreAdminHelpers.d.ts"
41
- }
34
+ "./types": {
35
+ "import": "./dist/types.js",
36
+ "types": "./dist/types.d.ts"
42
37
  },
43
- "scripts": {
44
- "build": "tsc -b"
45
- },
46
- "files": [
47
- "dist",
48
- "README.md"
49
- ],
50
- "devDependencies": {
51
- "@google-cloud/storage": "^7.17.3",
52
- "@types/node": "^20.19.25",
53
- "json-schema-to-typescript": "^15.0.4",
54
- "ts-node": "^10.9.2",
55
- "typescript": "^5.9.3"
56
- },
57
- "dependencies": {
58
- "@toolproof-npm/schema": "^0.1.26",
59
- "firebase-admin": "^13.6.0"
38
+ "./server": {
39
+ "node": "./dist/firebaseAdminHelpers.js",
40
+ "types": "./dist/firebaseAdminHelpers.d.ts"
60
41
  }
61
- }
42
+ },
43
+ "files": [
44
+ "dist",
45
+ "README.md"
46
+ ],
47
+ "devDependencies": {
48
+ "@google-cloud/storage": "^7.17.3",
49
+ "@types/node": "^20.19.25",
50
+ "json-schema-to-typescript": "^15.0.4",
51
+ "ts-node": "^10.9.2",
52
+ "typescript": "^5.9.3"
53
+ },
54
+ "dependencies": {
55
+ "@toolproof-npm/schema": "^0.1.26",
56
+ "firebase-admin": "^13.6.0"
57
+ },
58
+ "scripts": {
59
+ "build": "tsc -b"
60
+ }
61
+ }