iodm 0.0.1

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 ADDED
@@ -0,0 +1,69 @@
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
+
14
+ ```js
15
+ export default tseslint.config([
16
+ globalIgnores(['dist']),
17
+ {
18
+ files: ['**/*.{ts,tsx}'],
19
+ extends: [
20
+ // Other configs...
21
+
22
+ // Remove tseslint.configs.recommended and replace with this
23
+ ...tseslint.configs.recommendedTypeChecked,
24
+ // Alternatively, use this for stricter rules
25
+ ...tseslint.configs.strictTypeChecked,
26
+ // Optionally, add this for stylistic rules
27
+ ...tseslint.configs.stylisticTypeChecked,
28
+
29
+ // Other configs...
30
+ ],
31
+ languageOptions: {
32
+ parserOptions: {
33
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
34
+ tsconfigRootDir: import.meta.dirname,
35
+ },
36
+ // other options...
37
+ },
38
+ },
39
+ ])
40
+ ```
41
+
42
+ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
43
+
44
+ ```js
45
+ // eslint.config.js
46
+ import reactX from 'eslint-plugin-react-x'
47
+ import reactDom from 'eslint-plugin-react-dom'
48
+
49
+ export default tseslint.config([
50
+ globalIgnores(['dist']),
51
+ {
52
+ files: ['**/*.{ts,tsx}'],
53
+ extends: [
54
+ // Other configs...
55
+ // Enable lint rules for React
56
+ reactX.configs['recommended-typescript'],
57
+ // Enable lint rules for React DOM
58
+ reactDom.configs.recommended,
59
+ ],
60
+ languageOptions: {
61
+ parserOptions: {
62
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
63
+ tsconfigRootDir: import.meta.dirname,
64
+ },
65
+ // other options...
66
+ },
67
+ },
68
+ ])
69
+ ```
@@ -0,0 +1,8 @@
1
+ export declare class IModel {
2
+ /**
3
+ * Model find method that overrieds the IQuery find method
4
+ * @returns empty array
5
+ */
6
+ find(): never[];
7
+ }
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Model/index.ts"],"names":[],"mappings":"AAAA,qBAAa,MAAM;IACjB;;;OAGG;IACH,IAAI;CAIL"}
@@ -0,0 +1,3 @@
1
+ export { IModel } from './Model/index';
2
+ export declare const add: (a: number, b: number) => number;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,WAEvC,CAAC"}
@@ -0,0 +1,14 @@
1
+ class r {
2
+ /**
3
+ * Model find method that overrieds the IQuery find method
4
+ * @returns empty array
5
+ */
6
+ find() {
7
+ return console.log("finding with update for browser IModel..."), [];
8
+ }
9
+ }
10
+ const d = (o, e) => o + e;
11
+ export {
12
+ r as IModel,
13
+ d as add
14
+ };
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.52.8"
9
+ }
10
+ ]
11
+ }
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "type": "module",
3
+ "name": "iodm",
4
+ "version": "0.0.1",
5
+ "description": "Object Data Modeling library for IndexedDB",
6
+ "main": "dist/index.es.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "keywords": [
12
+ "odm",
13
+ "indexeddb"
14
+ ],
15
+ "author": "Santhoshkumar",
16
+ "license": "ISC",
17
+ "scripts": {
18
+ "dev": "vite",
19
+ "build": "tsc -b && vite build",
20
+ "api:extractor": "api-extractor run --local --verbose",
21
+ "api:documenter": "api-documenter markdown --input-folder temp --output-folder docs/pages",
22
+ "build:docs": "npm run api:extractor && npm run api:documenter",
23
+ "lint": "eslint .",
24
+ "test": "vitest"
25
+ },
26
+ "dependencies": {
27
+ "iodm-query": "^0.0.1"
28
+ },
29
+ "devDependencies": {
30
+ "@eslint/js": "^9.30.1",
31
+ "@microsoft/api-documenter": "^7.26.29",
32
+ "@microsoft/api-extractor": "^7.52.8",
33
+ "eslint": "^9.30.1",
34
+ "globals": "^16.3.0",
35
+ "typescript": "~5.8.3",
36
+ "typescript-eslint": "^8.35.1",
37
+ "vite": "^7.0.4",
38
+ "vite-plugin-dts": "^4.5.4",
39
+ "vitest": "^3.2.4"
40
+ }
41
+ }