baja-lite 1.6.2 → 1.6.4

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.
Files changed (73) hide show
  1. package/.eslintignore +7 -0
  2. package/.eslintrc.cjs +89 -0
  3. package/.prettierrc +7 -0
  4. package/.vscode/settings.json +9 -0
  5. package/ci.js +33 -0
  6. package/package-cjs.json +17 -0
  7. package/package.json +80 -80
  8. package/pnpm-lock.yaml +2840 -0
  9. package/pnpm-workspace.yaml +2 -0
  10. package/{boot-remote.js → src/boot-remote.ts} +64 -63
  11. package/{boot.js → src/boot.ts} +170 -163
  12. package/{code.js → src/code.ts} +526 -517
  13. package/{convert-xml.js → src/convert-xml.ts} +460 -410
  14. package/src/error.ts +11 -0
  15. package/src/event.ts +34 -0
  16. package/src/fn.ts +295 -0
  17. package/{index.d.ts → src/index.ts} +11 -10
  18. package/src/math.ts +405 -0
  19. package/src/object.ts +342 -0
  20. package/{snowflake.js → src/snowflake.ts} +127 -108
  21. package/src/sql.ts +5529 -0
  22. package/{sqlite.js → src/sqlite.ts} +157 -156
  23. package/src/string.ts +111 -0
  24. package/src/test-mysql.ts +148 -0
  25. package/{test-postgresql.js → src/test-postgresql.ts} +80 -91
  26. package/{test-sqlite.js → src/test-sqlite.ts} +80 -90
  27. package/{test-xml.js → src/test-xml.ts} +70 -70
  28. package/{test.js → src/test.ts} +3 -2
  29. package/src/wx/base.ts +77 -0
  30. package/src/wx/mini.ts +147 -0
  31. package/src/wx/organ.ts +290 -0
  32. package/{wx/types.d.ts → src/wx/types.ts} +549 -560
  33. package/{wx.d.ts → src/wx.ts} +3 -3
  34. package/tsconfig.cjs.json +42 -0
  35. package/tsconfig.json +44 -0
  36. package/xml/event-report.xml +13 -0
  37. package/yarn.lock +1977 -0
  38. package/boot-remote.d.ts +0 -2
  39. package/boot.d.ts +0 -2
  40. package/code.d.ts +0 -2
  41. package/convert-xml.d.ts +0 -10
  42. package/error.d.ts +0 -5
  43. package/error.js +0 -13
  44. package/event.d.ts +0 -10
  45. package/event.js +0 -38
  46. package/fn.d.ts +0 -128
  47. package/fn.js +0 -172
  48. package/index.js +0 -10
  49. package/math.d.ts +0 -83
  50. package/math.js +0 -451
  51. package/object.d.ts +0 -126
  52. package/object.js +0 -321
  53. package/snowflake.d.ts +0 -12
  54. package/sql.d.ts +0 -2148
  55. package/sql.js +0 -5372
  56. package/sqlite.d.ts +0 -32
  57. package/string.d.ts +0 -17
  58. package/string.js +0 -105
  59. package/test-mysql.d.ts +0 -2
  60. package/test-mysql.js +0 -114
  61. package/test-postgresql.d.ts +0 -2
  62. package/test-sqlite.d.ts +0 -1
  63. package/test-xml.d.ts +0 -1
  64. package/test.d.ts +0 -1
  65. package/wx/base.d.ts +0 -11
  66. package/wx/base.js +0 -78
  67. package/wx/mini.d.ts +0 -52
  68. package/wx/mini.js +0 -112
  69. package/wx/organ.d.ts +0 -65
  70. package/wx/organ.js +0 -171
  71. package/wx/types.js +0 -1
  72. package/wx.js +0 -3
  73. /package/{README.md → Readme.md} +0 -0
@@ -1,3 +1,3 @@
1
- export * from './wx/mini.js';
2
- export * from './wx/organ.js';
3
- export * from './wx/types.js';
1
+ export * from './wx/mini.js';
2
+ export * from './wx/organ.js';
3
+ export * from './wx/types.js';
@@ -0,0 +1,42 @@
1
+ {
2
+ "include": [
3
+ "src/**/*"
4
+ ],
5
+ "exclude": [
6
+ "node_modules",
7
+ "dist",
8
+ "test/**/*",
9
+ "*.spec.ts"
10
+ ],
11
+ "compilerOptions": {
12
+ "target": "ES2020",
13
+ "baseUrl": "./src",
14
+ "rootDir": "./src",
15
+ "sourceMap": false,
16
+ "moduleResolution": "node",
17
+ "allowJs": false,
18
+ "strict": true,
19
+ "declaration": true,
20
+ "noUnusedLocals": true,
21
+ "emitDecoratorMetadata": true,
22
+ "strictNullChecks": true,
23
+ "composite": true,
24
+ "experimentalDecorators": true,
25
+ "resolveJsonModule": true,
26
+ "allowSyntheticDefaultImports": true,
27
+ "noPropertyAccessFromIndexSignature": true,
28
+ "useUnknownInCatchVariables": false,
29
+ "noUncheckedIndexedAccess": true,
30
+ "noImplicitAny": false,
31
+ "esModuleInterop": true,
32
+ "removeComments": false,
33
+ "types": [],
34
+ "paths": {
35
+ "@element-plus/*": [
36
+ "packages/*"
37
+ ]
38
+ },
39
+ "module": "commonjs",
40
+ "outDir": "./dist-cjs"
41
+ }
42
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "include": [
3
+ "src/**/*"
4
+ ],
5
+ "exclude": [
6
+ "node_modules",
7
+ "dist",
8
+ "test/**/*",
9
+ "*.spec.ts"
10
+ ],
11
+ "compilerOptions": {
12
+ "target": "ES2020",
13
+ "module": "esnext",
14
+ "baseUrl": "./src",
15
+ "rootDir": "./src",
16
+ "sourceMap": false,
17
+ "moduleResolution": "node",
18
+ "allowJs": false,
19
+ "strict": true,
20
+ "declaration": true,
21
+ "noUnusedLocals": true,
22
+ "emitDecoratorMetadata": true,
23
+ "strictNullChecks": true,
24
+ "composite": true,
25
+ "experimentalDecorators": true,
26
+ "resolveJsonModule": true,
27
+ "allowSyntheticDefaultImports": true,
28
+ "noPropertyAccessFromIndexSignature": true,
29
+ "useUnknownInCatchVariables": false,
30
+ "noUncheckedIndexedAccess": true,
31
+ "noImplicitAny": false,
32
+ "esModuleInterop": true,
33
+ "removeComments": false,
34
+ "paths": {
35
+ "@element-plus/*": [
36
+ "packages/*"
37
+ ]
38
+ },
39
+ "lib": ["ESNext"],
40
+ "types": ["node"],
41
+ "skipLibCheck": true,
42
+ "outDir": "./dist"
43
+ }
44
+ }
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+ <mapper namespace="org.jeecg.modules.system.mapper.SysUserDataPermissionMapper">
4
+ <insert id="addDataPermissionByDataId">
5
+ insert into sys_user_data_permission (eventh_user_id,data_id,user_id,data_type)
6
+ <foreach collection="dataPermission.userIds" open="(" close=")" item="userId" separator="),(" >
7
+ UUID_SHORT(),#{dataPermission.dataId},#{userId},#{dataPermission.dataType}
8
+ </foreach>
9
+ </insert>
10
+ <select id="getDataPermissionByDataId" resultType="java.lang.String">
11
+ select user_id from sys_user_data_permission where #{dataId}
12
+ </select>
13
+ </mapper>