baja-lite 1.6.4 → 1.6.5
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/boot-remote.d.ts +2 -0
- package/{src/boot-remote.ts → boot-remote.js} +63 -64
- package/boot.d.ts +2 -0
- package/{src/boot.ts → boot.js} +163 -170
- package/code.d.ts +2 -0
- package/{src/code.ts → code.js} +405 -414
- package/convert-xml.d.ts +10 -0
- package/{src/convert-xml.ts → convert-xml.js} +410 -460
- package/error.d.ts +5 -0
- package/error.js +13 -0
- package/event.d.ts +10 -0
- package/event.js +38 -0
- package/fn.d.ts +128 -0
- package/fn.js +172 -0
- package/{src/index.ts → index.d.ts} +10 -11
- package/index.js +10 -0
- package/math.d.ts +83 -0
- package/math.js +451 -0
- package/object.d.ts +126 -0
- package/object.js +321 -0
- package/package.json +1 -1
- package/snowflake.d.ts +12 -0
- package/{src/snowflake.ts → snowflake.js} +108 -127
- package/sql.d.ts +2148 -0
- package/sql.js +5370 -0
- package/sqlite.d.ts +32 -0
- package/{src/sqlite.ts → sqlite.js} +156 -157
- package/string.d.ts +17 -0
- package/string.js +105 -0
- package/test-mysql.d.ts +2 -0
- package/test-mysql.js +114 -0
- package/test-postgresql.d.ts +2 -0
- package/{src/test-postgresql.ts → test-postgresql.js} +91 -80
- package/test-sqlite.d.ts +1 -0
- package/{src/test-sqlite.ts → test-sqlite.js} +90 -80
- package/test-xml.d.ts +1 -0
- package/{src/test-xml.ts → test-xml.js} +2 -2
- package/test.d.ts +1 -0
- package/{src/test.ts → test.js} +2 -3
- package/wx/base.d.ts +11 -0
- package/wx/base.js +78 -0
- package/wx/mini.d.ts +52 -0
- package/wx/mini.js +112 -0
- package/wx/organ.d.ts +65 -0
- package/wx/organ.js +171 -0
- package/{src/wx/types.ts → wx/types.d.ts} +560 -549
- package/wx/types.js +1 -0
- package/{src/wx.ts → wx.d.ts} +3 -3
- package/wx.js +3 -0
- package/.eslintignore +0 -7
- package/.eslintrc.cjs +0 -89
- package/.prettierrc +0 -7
- package/.vscode/settings.json +0 -9
- package/ci.js +0 -33
- package/package-cjs.json +0 -17
- package/pnpm-lock.yaml +0 -2840
- package/pnpm-workspace.yaml +0 -2
- package/src/error.ts +0 -11
- package/src/event.ts +0 -34
- package/src/fn.ts +0 -295
- package/src/math.ts +0 -405
- package/src/object.ts +0 -342
- package/src/sql.ts +0 -5529
- package/src/string.ts +0 -111
- package/src/test-mysql.ts +0 -148
- package/src/wx/base.ts +0 -77
- package/src/wx/mini.ts +0 -147
- package/src/wx/organ.ts +0 -290
- package/tsconfig.cjs.json +0 -42
- package/tsconfig.json +0 -44
- package/xml/event-report.xml +0 -13
- package/yarn.lock +0 -1977
- /package/{Readme.md → README.md} +0 -0
package/wx/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/{src/wx.ts → wx.d.ts}
RENAMED
|
@@ -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';
|
package/wx.js
ADDED
package/.eslintignore
DELETED
package/.eslintrc.cjs
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
|
|
3
|
-
// This option interrupts the configuration hierarchy at this file
|
|
4
|
-
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
|
|
5
|
-
root: true,
|
|
6
|
-
|
|
7
|
-
// https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
|
|
8
|
-
// Must use parserOptions instead of "parser" to allow vue-eslint-parser to keep working
|
|
9
|
-
// `parser: 'vue-eslint-parser'` is already included with any 'plugin:vue/**' config and should be omitted
|
|
10
|
-
parserOptions: {
|
|
11
|
-
parser: require.resolve('@typescript-eslint/parser'),
|
|
12
|
-
extraFileExtensions: [ '.vue' ]
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
env: {
|
|
16
|
-
browser: true,
|
|
17
|
-
es2021: true,
|
|
18
|
-
node: true
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
// Rules order is important, please avoid shuffling them
|
|
22
|
-
extends: [
|
|
23
|
-
// Base ESLint recommended rules
|
|
24
|
-
// 'eslint:recommended',
|
|
25
|
-
|
|
26
|
-
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#usage
|
|
27
|
-
// ESLint typescript rules
|
|
28
|
-
'plugin:@typescript-eslint/recommended',
|
|
29
|
-
|
|
30
|
-
// Uncomment any of the lines below to choose desired strictness,
|
|
31
|
-
// but leave only one uncommented!
|
|
32
|
-
// See https://eslint.vuejs.org/rules/#available-rules
|
|
33
|
-
'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
|
|
34
|
-
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
|
|
35
|
-
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
|
|
36
|
-
|
|
37
|
-
// https://github.com/prettier/eslint-config-prettier#installation
|
|
38
|
-
// usage with Prettier, provided by 'eslint-config-prettier'.
|
|
39
|
-
'prettier'
|
|
40
|
-
],
|
|
41
|
-
|
|
42
|
-
plugins: [
|
|
43
|
-
// required to apply rules which need type information
|
|
44
|
-
'@typescript-eslint',
|
|
45
|
-
|
|
46
|
-
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
|
|
47
|
-
// required to lint *.vue files
|
|
48
|
-
'vue'
|
|
49
|
-
|
|
50
|
-
// https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674
|
|
51
|
-
// Prettier has not been included as plugin to avoid performance impact
|
|
52
|
-
// add it as an extension for your IDE
|
|
53
|
-
|
|
54
|
-
],
|
|
55
|
-
|
|
56
|
-
globals: {
|
|
57
|
-
ga: 'readonly', // Google Analytics
|
|
58
|
-
cordova: 'readonly',
|
|
59
|
-
__statics: 'readonly',
|
|
60
|
-
__QUASAR_SSR__: 'readonly',
|
|
61
|
-
__QUASAR_SSR_SERVER__: 'readonly',
|
|
62
|
-
__QUASAR_SSR_CLIENT__: 'readonly',
|
|
63
|
-
__QUASAR_SSR_PWA__: 'readonly',
|
|
64
|
-
process: 'readonly',
|
|
65
|
-
Capacitor: 'readonly',
|
|
66
|
-
chrome: 'readonly'
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
// add your custom rules here
|
|
70
|
-
rules: {
|
|
71
|
-
|
|
72
|
-
'prefer-promise-reject-errors': 'off',
|
|
73
|
-
|
|
74
|
-
quotes: ['warn', 'single', { avoidEscape: true }],
|
|
75
|
-
|
|
76
|
-
// this rule, if on, would require explicit return type on the `render` function
|
|
77
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
78
|
-
|
|
79
|
-
// in plain CommonJS modules, you can't use `import foo = require('foo')` to pass this rule, so it has to be disabled
|
|
80
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
81
|
-
|
|
82
|
-
// The core 'no-unused-vars' rules (in the eslint:recommended ruleset)
|
|
83
|
-
// does not work with type definitions
|
|
84
|
-
'no-unused-vars': 'off',
|
|
85
|
-
|
|
86
|
-
// allow debugger during development only
|
|
87
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
|
88
|
-
}
|
|
89
|
-
}
|
package/.prettierrc
DELETED
package/.vscode/settings.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// 控制相关文件嵌套展示
|
|
3
|
-
"explorer.fileNesting.enabled": true,
|
|
4
|
-
"explorer.fileNesting.expand": false,
|
|
5
|
-
"explorer.fileNesting.patterns": {
|
|
6
|
-
"package.json": "ci.js,nest-cli.json,.eslintrc.cjs,.eslintignore,eslint.config.js,package-cjs.json,bun.lockb,baja.code.json,.prettierrc,.eslintrc.js,$(capture).env.*,,pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,README*,.npmrc,.browserslistrc,yarn.lock,verify-commit.mjs,tsconfig.json,nuxt.config.ts,uno.config.ts",
|
|
7
|
-
},
|
|
8
|
-
"vue-vine.dataTrack": false
|
|
9
|
-
}
|
package/ci.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// import { rm, exec, cp } from 'shelljs';
|
|
2
|
-
import fs from 'fs';
|
|
3
|
-
import pkg from 'shelljs';
|
|
4
|
-
import cjs from './package-cjs.json' with { type: "json" };
|
|
5
|
-
import def from './package.json' with { type: "json" };
|
|
6
|
-
const { rm, exec, cp } = pkg;
|
|
7
|
-
|
|
8
|
-
rm('-rf', './dist/');
|
|
9
|
-
rm('-rf', './tsconfig.tsbuildinfo');
|
|
10
|
-
exec('yarn tsc --module esnext');
|
|
11
|
-
rm('-rf', './tsconfig.tsbuildinfo');
|
|
12
|
-
cp('./package.json', './dist/package.json');
|
|
13
|
-
cp('./README.md', './dist/README.md');
|
|
14
|
-
cp('./LICENSE', './dist/LICENSE');
|
|
15
|
-
rm('-rf', './dist/tsconfig.tsbuildinfo');
|
|
16
|
-
|
|
17
|
-
rm('-rf', './dist-cjs/');
|
|
18
|
-
rm('-rf', './tsconfig.cjs.tsbuildinfo');
|
|
19
|
-
exec('yarn tsc -p tsconfig.cjs.json');
|
|
20
|
-
rm('-rf', './tsconfig.cjs.tsbuildinfo');
|
|
21
|
-
fs.writeFileSync('./dist-cjs/package.json', JSON.stringify(Object.assign(def, cjs), null, 2));
|
|
22
|
-
cp('./README.md', './dist-cjs/README.md');
|
|
23
|
-
cp('./LICENSE', './dist-cjs/LICENSE');
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
console.log('build over');
|
|
27
|
-
// cp('-R', './dist/*', '../fast-start/node_modules/baja-lite');
|
|
28
|
-
// console.log('fast-start over');
|
|
29
|
-
// cp('-R', './dist/*', '../attack-service/node_modules/baja-lite');
|
|
30
|
-
// console.log('attack-service over');
|
|
31
|
-
// cp('-R', './dist/*', '../attack-front/node_modules/baja-lite');
|
|
32
|
-
// console.log('attack-front over');
|
|
33
|
-
// console.log('cp over');
|
package/package-cjs.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "baja-lite-cjs",
|
|
3
|
-
"type": "commonjs",
|
|
4
|
-
"exports": {
|
|
5
|
-
".": {
|
|
6
|
-
"require": "./index.js"
|
|
7
|
-
},
|
|
8
|
-
"./boot.js":"./boot.js",
|
|
9
|
-
"./boot-remote.js":"./boot-remote.js",
|
|
10
|
-
"./wx.js": "./wx.js"
|
|
11
|
-
},
|
|
12
|
-
"types": "./index.d.ts",
|
|
13
|
-
"bin": {
|
|
14
|
-
"baja": "./code.js"
|
|
15
|
-
},
|
|
16
|
-
"main": "./index.js"
|
|
17
|
-
}
|