jinbi-utils 1.0.5 → 1.0.7

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 (88) hide show
  1. package/package.json +7 -1
  2. package/.babelrc +0 -19
  3. package/.cz-config.js +0 -55
  4. package/.dockerignore +0 -3
  5. package/.editorconfig +0 -12
  6. package/.eslintignore +0 -8
  7. package/.eslintrc.js +0 -54
  8. package/.versionrc.json +0 -9
  9. package/Dockerfile +0 -3
  10. package/api-extractor.json +0 -15
  11. package/commitlint.config.js +0 -3
  12. package/docs/assets/css/main.css +0 -2679
  13. package/docs/assets/images/icons.png +0 -0
  14. package/docs/assets/images/icons@2x.png +0 -0
  15. package/docs/assets/images/widgets.png +0 -0
  16. package/docs/assets/images/widgets@2x.png +0 -0
  17. package/docs/assets/js/main.js +0 -1
  18. package/docs/assets/js/search.json +0 -1
  19. package/docs/classes/http_apibuilder.apibuilder-1.html +0 -497
  20. package/docs/classes/http_apibuilder.insertbuilder-1.html +0 -448
  21. package/docs/classes/http_apibuilder.querybuilder-1.html +0 -906
  22. package/docs/classes/http_apibuilder.updatebuilder-1.html +0 -543
  23. package/docs/globals.html +0 -181
  24. package/docs/index.html +0 -322
  25. package/docs/interfaces/constant.ifromtype.html +0 -251
  26. package/docs/interfaces/dom.svginfo.html +0 -262
  27. package/docs/interfaces/file.compressimgqualitycallback.html +0 -241
  28. package/docs/interfaces/file.compressimgscalecallback.html +0 -235
  29. package/docs/interfaces/file.exportbyblobparams.html +0 -323
  30. package/docs/interfaces/file.filesizeobject.html +0 -256
  31. package/docs/interfaces/file.genexportbyblobparams.html +0 -266
  32. package/docs/interfaces/http_apibuilder.fieldcatalog-1.html +0 -253
  33. package/docs/interfaces/http_apibuilder.fieldcatalogitem-1.html +0 -363
  34. package/docs/interfaces/http_apibuilder.filter-1.html +0 -309
  35. package/docs/interfaces/http_apibuilder.filters-1.html +0 -295
  36. package/docs/interfaces/http_apibuilder.insertparams-1.html +0 -295
  37. package/docs/interfaces/http_apibuilder.orderby-1.html +0 -295
  38. package/docs/interfaces/http_apibuilder.queryparams-1.html +0 -337
  39. package/docs/interfaces/http_apibuilder.updateitem-1.html +0 -295
  40. package/docs/interfaces/http_apibuilder.updateparams-1.html +0 -295
  41. package/docs/modules/array.html +0 -401
  42. package/docs/modules/color.html +0 -348
  43. package/docs/modules/common.html +0 -957
  44. package/docs/modules/constant.html +0 -234
  45. package/docs/modules/date.html +0 -393
  46. package/docs/modules/dom.html +0 -471
  47. package/docs/modules/file.html +0 -481
  48. package/docs/modules/http.html +0 -679
  49. package/docs/modules/http_apibuilder.html +0 -350
  50. package/docs/modules/iam.html +0 -201
  51. package/docs/modules/middleware.html +0 -209
  52. package/docs/modules/number.html +0 -583
  53. package/docs/modules/object.html +0 -274
  54. package/docs/modules/print.html +0 -212
  55. package/docs/modules/string.html +0 -543
  56. package/docs/modules/validate.html +0 -490
  57. package/jest.config.js +0 -15
  58. package/rollup.config.js +0 -71
  59. package/src/array/index.ts +0 -85
  60. package/src/color/index.ts +0 -58
  61. package/src/common/index.ts +0 -353
  62. package/src/constant/common.constant.ts +0 -13
  63. package/src/date/index.ts +0 -143
  64. package/src/dom/index.ts +0 -198
  65. package/src/file/index.ts +0 -296
  66. package/src/http/apiBuilder/README.md +0 -529
  67. package/src/http/apiBuilder/api-builder.ts +0 -375
  68. package/src/http/apiBuilder/example.ts +0 -243
  69. package/src/http/apiBuilder/index.ts +0 -1
  70. package/src/http/apiBuilder//345/277/253/351/200/237/345/217/202/350/200/203.md +0 -199
  71. package/src/http/http.ts +0 -79
  72. package/src/http/httpEnums.ts +0 -61
  73. package/src/iam/index.ts +0 -46
  74. package/src/index.ts +0 -16
  75. package/src/middleware/requestLogger.middware.ts +0 -61
  76. package/src/number/index.ts +0 -362
  77. package/src/object/index.ts +0 -54
  78. package/src/print/index.ts +0 -102
  79. package/src/string/index.ts +0 -189
  80. package/src/validate/index.ts +0 -100
  81. package/test/common/index.test.ts +0 -19
  82. package/test/date/index.test.ts +0 -107
  83. package/test/file/index.test.ts +0 -104
  84. package/test/number/index.test.ts +0 -108
  85. package/test/object/index.test.ts +0 -20
  86. package/test/string/index.test.ts +0 -82
  87. package/tsconfig.json +0 -39
  88. package/typedoc.json +0 -11
package/package.json CHANGED
@@ -1,10 +1,16 @@
1
1
  {
2
2
  "name": "jinbi-utils",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "dist/index.umd.min.js",
6
6
  "module": "dist/index.esm.min.js",
7
7
  "typings": "types/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "types",
11
+ "README.md",
12
+ "CHANGELOG.md"
13
+ ],
8
14
  "exports": {
9
15
  ".": {
10
16
  "types": "./types/index.d.ts",
package/.babelrc DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-env",
5
- {
6
- "modules": false,
7
- "targets": {
8
- "node": "current"
9
- }
10
- }
11
- ],
12
- "@babel/preset-typescript"
13
- ],
14
- "env": {
15
- "test": {
16
- "plugins": ["@babel/plugin-transform-modules-commonjs"]
17
- }
18
- }
19
- }
package/.cz-config.js DELETED
@@ -1,55 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
-
5
- types: [
6
- {value: 'feat', name: 'feat: 新特性或功能'},
7
- {value: 'fix', name: 'fix: 修复Bug'},
8
- {value: 'docs', name: 'docs: 文档的变更'},
9
- {value: 'style', name: 'style: 不影响代码运行的风格更改(空白、格式、缺少分号等)'},
10
- {value: 'refactor', name: 'refactor: 代码重构, 注意和feat、fix区分'},
11
- {value: 'perf', name: 'perf: 提高性能'},
12
- {value: 'test', name: 'test: 添加测试'},
13
- {value: 'chore', name: 'chore: 开发工具(构建、脚手架工具等)和库(如文档生成)的更改'},
14
- {value: 'revert', name: 'revert: 代码回滚'},
15
- {value: 'WIP', name: 'WIP: 进行中开发'}
16
- ],
17
-
18
- // list of Function Modules
19
- scopes: [
20
- {name: '模块1'},
21
- {name: '模块2'},
22
- ],
23
-
24
- // it needs to match the value for field type. Eg.: 'fix'
25
- /*
26
- scopeOverrides: {
27
- fix: [
28
- {name: 'merge'},
29
- {name: 'style'},
30
- {name: 'e2eTest'},
31
- {name: 'unitTest'}
32
- ]
33
- },
34
- */
35
- // override the messages, defaults are as follows
36
- messages: {
37
- type: '选择一种提交类型:',
38
- scope: '选择一个scope (可选):',
39
- // used if allowCustomScopes is true
40
- customScope: 'Denote the SCOPE of this change:',
41
- subject: '简短说明:\n',
42
- body: '长说明,使用"|"换行(可选):\n',
43
- breaking: '非兼容性说明 (可选):\n',
44
- footer: '关联关闭的issue,例如:#31, #34(可选):\n',
45
- confirmCommit: '确定提交说明?'
46
- },
47
-
48
-
49
- allowCustomScopes: true,
50
- allowBreakingChanges: ['feat', 'fix'],
51
-
52
- // limit subject length
53
- subjectLimit: 100
54
-
55
- };
package/.dockerignore DELETED
@@ -1,3 +0,0 @@
1
- .git
2
- node_modules
3
- npm-debug.log
package/.editorconfig DELETED
@@ -1,12 +0,0 @@
1
- # http://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- charset = utf-8
8
- trim_trailing_whitespace = true
9
- insert_final_newline = true
10
-
11
- [*.md]
12
- trim_trailing_whitespace = false
package/.eslintignore DELETED
@@ -1,8 +0,0 @@
1
- /.git
2
- /.vscode
3
- node_modules
4
- dist
5
- test
6
- rollup.config.js
7
- types
8
- *
package/.eslintrc.js DELETED
@@ -1,54 +0,0 @@
1
- module.exports = {
2
- "env": {
3
- "browser": true,
4
- "commonjs": true,
5
- "es6": true,
6
- "node": true
7
- },
8
- "extends": [
9
- "eslint:recommended",
10
- "plugin:@typescript-eslint/recommended"
11
- ],
12
- "parser": "@typescript-eslint/parser",
13
- "plugins": ["@typescript-eslint"],
14
- "parserOptions": {
15
- "ecmaVersion": 2015,
16
- "sourceType": "module",
17
- "project": "./tsconfig.json"
18
- },
19
- "rules": {
20
- 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
21
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
22
- 'prefer-promise-reject-errors': 'off', // 要求使用 Error 对象作为 Promise 拒绝的原因
23
- 'linebreak-style': 'off', // 回车换行风格
24
- 'no-trailing-spaces': 1, // 允许在空行、在注释块中使用空白符
25
- 'import/prefer-default-export': 'off', //
26
- 'object-curly-newline': 'off', // 不强制花括号内换行
27
- 'import/named': 'off', // 停用 import/named 校验
28
- 'no-underscore-dangle': 'off', // 禁止标识符中有悬空下划线
29
- 'import/order': 'off',
30
- 'prefer-object-spread': 1, // 禁止使用以对象字面量作为第一个参数的 Object.assign,优先使用对象扩展。
31
- 'arrow-parens': [2, "as-needed", { "requireForBlockBody": true }], // 要求箭头函数的参数使用圆括号
32
- "comma-dangle": ["error", "always-multiline"], // 要求或禁止使用拖尾逗号
33
- "semi": 2, // 要求或禁止使用分号代替 ASI
34
- "keyword-spacing": 2, // 强制关键字周围空格的一致性
35
- "@typescript-eslint/explicit-function-return-type": "off",
36
- "@typescript-eslint/interface-name-prefix": "off",
37
- "@typescript-eslint/no-empty-function": "off",
38
- "@typescript-eslint/no-inferrable-types": "off",
39
- "@typescript-eslint/no-empty-interface": "off",
40
- "@typescript-eslint/no-non-null-assertion": "off",
41
- "@typescript-eslint/no-explicit-any": "off",
42
- "@typescript-eslint/explicit-module-boundary-types": "off",
43
- "@typescript-eslint/member-delimiter-style": ["error", {
44
- "multiline": {
45
- "delimiter": "semi",
46
- "requireLast": true
47
- },
48
- "singleline": {
49
- "delimiter": "semi",
50
- "requireLast": true
51
- }
52
- }]
53
- }
54
- };
package/.versionrc.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "types": [
3
- { "type": "feat", "section": "✨ Features" },
4
- { "type": "fix", "section": "🐞 Bug Fixes" },
5
- { "type": "docs", "section": "📖 Documentation" },
6
- { "type": "style", "section": "🎨 Style" }
7
- ],
8
- "releaseCommitMessageFormat": "chore(release): 发布版本 v{{currentTag}}"
9
- }
package/Dockerfile DELETED
@@ -1,3 +0,0 @@
1
- FROM nginx
2
-
3
- COPY docs /usr/share/nginx/html/
@@ -1,15 +0,0 @@
1
- {
2
- "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "mainEntryPointFilePath": "./types/index.d.ts",
4
- "bundledPackages": [ ],
5
- "dtsRollup": {
6
- "enabled": true,
7
- "untrimmedFilePath": "./types/index.d.ts"
8
- },
9
- "docModel": {
10
- "enabled": true
11
- },
12
- "apiReport": {
13
- "enabled": true
14
- }
15
- }
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: ['@commitlint/config-conventional'],
3
- };