zcw-shared 1.7.0 → 1.9.0
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 +512 -512
- package/assets/logo-colorful.svg +18 -18
- package/assets/logo-name.svg +7 -7
- package/assets/logo-transparent.svg +14 -14
- package/assets/logo.svg +8 -8
- package/dist/constants/softwareConfigs.d.ts +14 -0
- package/dist/constants/softwareConfigs.js +156 -0
- package/dist/constants/softwareConfigs.js.map +1 -0
- package/dist/functions/ag-grid/generateLicense.d.ts +3 -0
- package/dist/functions/ag-grid/generateLicense.js +12 -0
- package/dist/functions/ag-grid/generateLicense.js.map +1 -0
- package/dist/functions/altool/createAltoolClient.d.ts +21 -0
- package/dist/functions/altool/createAltoolClient.js +53 -0
- package/dist/functions/altool/createAltoolClient.js.map +1 -0
- package/dist/functions/altool/getAltoolAuth.d.ts +2 -0
- package/dist/functions/altool/getAltoolAuth.js +8 -0
- package/dist/functions/altool/getAltoolAuth.js.map +1 -0
- package/dist/functions/altool/getAppInfo.d.ts +13 -0
- package/dist/functions/altool/getAppInfo.js +39 -0
- package/dist/functions/altool/getAppInfo.js.map +1 -0
- package/dist/functions/altool/index.d.ts +10 -0
- package/dist/functions/altool/index.js +6 -0
- package/dist/functions/altool/index.js.map +1 -0
- package/dist/functions/altool/isApiKeyAuth.d.ts +2 -0
- package/dist/functions/altool/isApiKeyAuth.js +4 -0
- package/dist/functions/altool/isApiKeyAuth.js.map +1 -0
- package/dist/functions/altool/isCredentialsAuth.d.ts +2 -0
- package/dist/functions/altool/isCredentialsAuth.js +4 -0
- package/dist/functions/altool/isCredentialsAuth.js.map +1 -0
- package/dist/functions/altool/parseAppInfoOutput.d.ts +2 -0
- package/dist/functions/altool/parseAppInfoOutput.js +55 -0
- package/dist/functions/altool/parseAppInfoOutput.js.map +1 -0
- package/dist/functions/altool/parseValidationOutput.d.ts +6 -0
- package/dist/functions/altool/parseValidationOutput.js +21 -0
- package/dist/functions/altool/parseValidationOutput.js.map +1 -0
- package/dist/functions/altool/types.d.ts +26 -0
- package/dist/functions/altool/types.js +7 -0
- package/dist/functions/altool/types.js.map +1 -0
- package/dist/functions/altool/uploadApp.d.ts +6 -0
- package/dist/functions/altool/uploadApp.js +36 -0
- package/dist/functions/altool/uploadApp.js.map +1 -0
- package/dist/functions/altool/validateApp.d.ts +17 -0
- package/dist/functions/altool/validateApp.js +40 -0
- package/dist/functions/altool/validateApp.js.map +1 -0
- package/dist/functions/android/buildProject.d.ts +2 -1
- package/dist/functions/android/buildProject.js +32 -6
- package/dist/functions/android/buildProject.js.map +1 -1
- package/dist/functions/android/modifyGradle.js +10 -10
- package/dist/functions/base64/strToBase64.d.ts +2 -0
- package/dist/functions/base64/strToBase64.js +6 -0
- package/dist/functions/base64/strToBase64.js.map +1 -0
- package/dist/functions/color-converter/COLOR_PATTERNS.d.ts +2 -0
- package/dist/functions/color-converter/COLOR_PATTERNS.js +9 -0
- package/dist/functions/color-converter/COLOR_PATTERNS.js.map +1 -0
- package/dist/functions/color-converter/colorPatterns.d.ts +4 -0
- package/dist/functions/color-converter/colorPatterns.js +41 -0
- package/dist/functions/color-converter/colorPatterns.js.map +1 -0
- package/dist/functions/color-converter/convertColor.d.ts +6 -0
- package/dist/functions/color-converter/convertColor.js +12 -0
- package/dist/functions/color-converter/convertColor.js.map +1 -0
- package/dist/functions/color-converter/createColorReference.d.ts +2 -0
- package/dist/functions/color-converter/createColorReference.js +12 -0
- package/dist/functions/color-converter/createColorReference.js.map +1 -0
- package/dist/functions/color-converter/detectColorFormat.d.ts +2 -0
- package/dist/functions/color-converter/detectColorFormat.js +19 -0
- package/dist/functions/color-converter/detectColorFormat.js.map +1 -0
- package/dist/functions/color-converter/extractColors.d.ts +3 -0
- package/dist/functions/color-converter/extractColors.js +16 -0
- package/dist/functions/color-converter/extractColors.js.map +1 -0
- package/dist/functions/color-converter/extractColorsFromLine.d.ts +2 -0
- package/dist/functions/color-converter/extractColorsFromLine.js +18 -0
- package/dist/functions/color-converter/extractColorsFromLine.js.map +1 -0
- package/dist/functions/color-converter/extractColorsGeneric.d.ts +2 -0
- package/dist/functions/color-converter/extractColorsGeneric.js +12 -0
- package/dist/functions/color-converter/extractColorsGeneric.js.map +1 -0
- package/dist/functions/color-converter/extractCssVariableReferences.d.ts +2 -0
- package/dist/functions/color-converter/extractCssVariableReferences.js +15 -0
- package/dist/functions/color-converter/extractCssVariableReferences.js.map +1 -0
- package/dist/functions/color-converter/extractThirdPartyVariableReferences.d.ts +2 -0
- package/dist/functions/color-converter/extractThirdPartyVariableReferences.js +15 -0
- package/dist/functions/color-converter/extractThirdPartyVariableReferences.js.map +1 -0
- package/dist/functions/color-converter/formatColorOutput.d.ts +5 -0
- package/dist/functions/color-converter/formatColorOutput.js +48 -0
- package/dist/functions/color-converter/formatColorOutput.js.map +1 -0
- package/dist/functions/color-converter/getColorPatterns.d.ts +2 -0
- package/dist/functions/color-converter/getColorPatterns.js +11 -0
- package/dist/functions/color-converter/getColorPatterns.js.map +1 -0
- package/dist/functions/color-converter/getNamedColorMap.d.ts +2 -0
- package/dist/functions/color-converter/getNamedColorMap.js +19 -0
- package/dist/functions/color-converter/getNamedColorMap.js.map +1 -0
- package/dist/functions/color-converter/hexToRgb.d.ts +2 -0
- package/dist/functions/color-converter/hexToRgb.js +42 -0
- package/dist/functions/color-converter/hexToRgb.js.map +1 -0
- package/dist/functions/color-converter/hslToRgb.d.ts +2 -0
- package/dist/functions/color-converter/hslToRgb.js +78 -0
- package/dist/functions/color-converter/hslToRgb.js.map +1 -0
- package/dist/functions/color-converter/hslToRgbInternal.d.ts +2 -0
- package/dist/functions/color-converter/hslToRgbInternal.js +24 -0
- package/dist/functions/color-converter/hslToRgbInternal.js.map +1 -0
- package/dist/functions/color-converter/hueToRgb.d.ts +1 -0
- package/dist/functions/color-converter/hueToRgb.js +14 -0
- package/dist/functions/color-converter/hueToRgb.js.map +1 -0
- package/dist/functions/color-converter/isColorValue.d.ts +2 -0
- package/dist/functions/color-converter/isColorValue.js +79 -0
- package/dist/functions/color-converter/isColorValue.js.map +1 -0
- package/dist/functions/color-converter/isValidColorValue.d.ts +1 -0
- package/dist/functions/color-converter/isValidColorValue.js +4 -0
- package/dist/functions/color-converter/isValidColorValue.js.map +1 -0
- package/dist/functions/color-converter/isValidHslColor.d.ts +2 -0
- package/dist/functions/color-converter/isValidHslColor.js +14 -0
- package/dist/functions/color-converter/isValidHslColor.js.map +1 -0
- package/dist/functions/color-converter/isValidRgbColor.d.ts +2 -0
- package/dist/functions/color-converter/isValidRgbColor.js +14 -0
- package/dist/functions/color-converter/isValidRgbColor.js.map +1 -0
- package/dist/functions/color-converter/normalizeColor.d.ts +1 -0
- package/dist/functions/color-converter/normalizeColor.js +49 -0
- package/dist/functions/color-converter/normalizeColor.js.map +1 -0
- package/dist/functions/color-converter/normalizeColorInput.d.ts +6 -0
- package/dist/functions/color-converter/normalizeColorInput.js +94 -0
- package/dist/functions/color-converter/normalizeColorInput.js.map +1 -0
- package/dist/functions/color-converter/parseColorString.d.ts +12 -0
- package/dist/functions/color-converter/parseColorString.js +89 -0
- package/dist/functions/color-converter/parseColorString.js.map +1 -0
- package/dist/functions/color-converter/parseCssVariables.d.ts +2 -0
- package/dist/functions/color-converter/parseCssVariables.js +19 -0
- package/dist/functions/color-converter/parseCssVariables.js.map +1 -0
- package/dist/functions/color-converter/parseHexColor.d.ts +6 -0
- package/dist/functions/color-converter/parseHexColor.js +42 -0
- package/dist/functions/color-converter/parseHexColor.js.map +1 -0
- package/dist/functions/color-converter/rgbToHex.d.ts +2 -0
- package/dist/functions/color-converter/rgbToHex.js +65 -0
- package/dist/functions/color-converter/rgbToHex.js.map +1 -0
- package/dist/functions/color-converter/rgbToHslInternal.d.ts +2 -0
- package/dist/functions/color-converter/rgbToHslInternal.js +31 -0
- package/dist/functions/color-converter/rgbToHslInternal.js.map +1 -0
- package/dist/functions/color-converter/standardizeColor.d.ts +1 -0
- package/dist/functions/color-converter/standardizeColor.js +147 -0
- package/dist/functions/color-converter/standardizeColor.js.map +1 -0
- package/dist/functions/desensitize/desensitizeName.d.ts +1 -0
- package/dist/functions/desensitize/desensitizeName.js +8 -0
- package/dist/functions/desensitize/desensitizeName.js.map +1 -0
- package/dist/functions/desensitize/desensitizePhone.d.ts +1 -0
- package/dist/functions/desensitize/desensitizePhone.js +8 -0
- package/dist/functions/desensitize/desensitizePhone.js.map +1 -0
- package/dist/functions/dom/getViewportSize.d.ts +5 -0
- package/dist/functions/dom/getViewportSize.js +7 -0
- package/dist/functions/dom/getViewportSize.js.map +1 -0
- package/dist/functions/software/buildPathExecutables.d.ts +1 -0
- package/dist/functions/software/buildPathExecutables.js +14 -0
- package/dist/functions/software/buildPathExecutables.js.map +1 -0
- package/dist/functions/software/buildSoftwarePaths.d.ts +2 -0
- package/dist/functions/software/buildSoftwarePaths.js +22 -0
- package/dist/functions/software/buildSoftwarePaths.js.map +1 -0
- package/dist/functions/software/createConfigGenerator.d.ts +8 -0
- package/dist/functions/software/createConfigGenerator.js +13 -0
- package/dist/functions/software/createConfigGenerator.js.map +1 -0
- package/dist/functions/software/detectPlatform.d.ts +2 -0
- package/dist/functions/software/detectPlatform.js +9 -0
- package/dist/functions/software/detectPlatform.js.map +1 -0
- package/dist/functions/software/find.d.ts +2 -0
- package/dist/functions/software/find.js +12 -0
- package/dist/functions/software/find.js.map +1 -0
- package/dist/functions/software/findSoftware.js.map +1 -1
- package/dist/functions/software/findSoftwareWithGenerator.d.ts +3 -0
- package/dist/functions/software/findSoftwareWithGenerator.js +8 -0
- package/dist/functions/software/findSoftwareWithGenerator.js.map +1 -0
- package/dist/functions/software/getConfigGenerator.d.ts +2 -0
- package/dist/functions/software/getConfigGenerator.js +10 -0
- package/dist/functions/software/getConfigGenerator.js.map +1 -0
- package/dist/functions/software/getEnvironmentSoftwarePath.d.ts +1 -0
- package/dist/functions/software/getEnvironmentSoftwarePath.js +8 -0
- package/dist/functions/software/getEnvironmentSoftwarePath.js.map +1 -0
- package/dist/functions/software/getSupportedSoftware.d.ts +1 -0
- package/dist/functions/software/getSupportedSoftware.js +5 -0
- package/dist/functions/software/getSupportedSoftware.js.map +1 -0
- package/dist/functions/software/parseEnvironmentPaths.d.ts +1 -0
- package/dist/functions/software/parseEnvironmentPaths.js +11 -0
- package/dist/functions/software/parseEnvironmentPaths.js.map +1 -0
- package/dist/functions/software/softwareConfigs.d.ts +2 -0
- package/dist/functions/software/softwareConfigs.js +148 -0
- package/dist/functions/software/softwareConfigs.js.map +1 -0
- package/dist/functions/software/softwareNameMap.d.ts +1 -0
- package/dist/functions/software/softwareNameMap.js +9 -0
- package/dist/functions/software/softwareNameMap.js.map +1 -0
- package/dist/functions/software/types.d.ts +11 -0
- package/dist/functions/software/types.js +2 -0
- package/dist/functions/software/types.js.map +1 -0
- package/dist/functions/string/base64.d.ts +2 -0
- package/dist/functions/string/base64.js +6 -0
- package/dist/functions/string/base64.js.map +1 -0
- package/dist/functions/string/camelCase.d.ts +1 -0
- package/dist/functions/string/camelCase.js +8 -0
- package/dist/functions/string/camelCase.js.map +1 -0
- package/dist/functions/string/capitalize.d.ts +1 -0
- package/dist/functions/string/capitalize.js +6 -0
- package/dist/functions/string/capitalize.js.map +1 -0
- package/dist/functions/string/caseConverter.d.ts +19 -0
- package/dist/functions/string/caseConverter.js +94 -0
- package/dist/functions/string/caseConverter.js.map +1 -0
- package/dist/functions/string/desensitize.d.ts +13 -0
- package/dist/functions/string/desensitize.js +107 -0
- package/dist/functions/string/desensitize.js.map +1 -0
- package/dist/functions/string/escape.d.ts +1 -0
- package/dist/functions/string/escape.js +13 -0
- package/dist/functions/string/escape.js.map +1 -0
- package/dist/functions/string/htmlEscape.d.ts +20 -0
- package/dist/functions/string/htmlEscape.js +80 -0
- package/dist/functions/string/htmlEscape.js.map +1 -0
- package/dist/functions/string/kebabCase.d.ts +1 -0
- package/dist/functions/string/kebabCase.js +10 -0
- package/dist/functions/string/kebabCase.js.map +1 -0
- package/dist/functions/string/levenshtein.d.ts +1 -0
- package/dist/functions/string/levenshtein.js +27 -0
- package/dist/functions/string/levenshtein.js.map +1 -0
- package/dist/functions/string/mask.d.ts +1 -0
- package/dist/functions/string/mask.js +40 -0
- package/dist/functions/string/mask.js.map +1 -0
- package/dist/functions/string/normalize.d.ts +8 -0
- package/dist/functions/string/normalize.js +37 -0
- package/dist/functions/string/normalize.js.map +1 -0
- package/dist/functions/string/pad.d.ts +13 -0
- package/dist/functions/string/pad.js +50 -0
- package/dist/functions/string/pad.js.map +1 -0
- package/dist/functions/string/padEnd.d.ts +1 -0
- package/dist/functions/string/padEnd.js +8 -0
- package/dist/functions/string/padEnd.js.map +1 -0
- package/dist/functions/string/padStart.d.ts +1 -0
- package/dist/functions/string/padStart.js +8 -0
- package/dist/functions/string/padStart.js.map +1 -0
- package/dist/functions/string/palindrome.d.ts +3 -0
- package/dist/functions/string/palindrome.js +15 -0
- package/dist/functions/string/palindrome.js.map +1 -0
- package/dist/functions/string/pascalCase.d.ts +1 -0
- package/dist/functions/string/pascalCase.js +8 -0
- package/dist/functions/string/pascalCase.js.map +1 -0
- package/dist/functions/string/similarity.d.ts +1 -0
- package/dist/functions/string/similarity.js +13 -0
- package/dist/functions/string/similarity.js.map +1 -0
- package/dist/functions/string/snakeCase.d.ts +1 -0
- package/dist/functions/string/snakeCase.js +10 -0
- package/dist/functions/string/snakeCase.js.map +1 -0
- package/dist/functions/string/template.d.ts +4 -0
- package/dist/functions/string/template.js +21 -0
- package/dist/functions/string/template.js.map +1 -0
- package/dist/functions/string/unescape.d.ts +1 -0
- package/dist/functions/string/unescape.js +13 -0
- package/dist/functions/string/unescape.js.map +1 -0
- package/dist/functions/string/wordCount.d.ts +5 -0
- package/dist/functions/string/wordCount.js +11 -0
- package/dist/functions/string/wordCount.js.map +1 -0
- package/dist/functions/tencent-cloud/getSecret.d.ts +6 -0
- package/dist/functions/tencent-cloud/getSecret.js +18 -0
- package/dist/functions/tencent-cloud/getSecret.js.map +1 -0
- package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.d.ts +13 -0
- package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js +175 -0
- package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js.map +1 -0
- package/dist/functions/uniapp/app-plus/androidProjectStrategy.d.ts +19 -0
- package/dist/functions/uniapp/app-plus/androidProjectStrategy.js +55 -0
- package/dist/functions/uniapp/app-plus/androidProjectStrategy.js.map +1 -0
- package/dist/functions/uniapp/app-plus/buildAndroidApp.d.ts +2 -2
- package/dist/functions/uniapp/app-plus/buildAndroidApp.js +1 -0
- package/dist/functions/uniapp/app-plus/buildAndroidApp.js.map +1 -1
- package/dist/functions/uniapp/app-plus/buildAndroidProject.d.ts +3 -0
- package/dist/functions/uniapp/app-plus/buildAndroidProject.js +60 -0
- package/dist/functions/uniapp/app-plus/buildAndroidProject.js.map +1 -0
- package/dist/functions/uniapp/app-plus/configureAndroidManifest.d.ts +5 -0
- package/dist/functions/uniapp/app-plus/configureAndroidManifest.js +51 -0
- package/dist/functions/uniapp/app-plus/configureAndroidManifest.js.map +1 -0
- package/dist/functions/uniapp/app-plus/configureAndroidProject.d.ts +3 -0
- package/dist/functions/uniapp/app-plus/configureAndroidProject.js +63 -0
- package/dist/functions/uniapp/app-plus/configureAndroidProject.js.map +1 -0
- package/dist/functions/uniapp/app-plus/configureBuildGradle.d.ts +9 -0
- package/dist/functions/uniapp/app-plus/configureBuildGradle.js +57 -0
- package/dist/functions/uniapp/app-plus/configureBuildGradle.js.map +1 -0
- package/dist/functions/uniapp/app-plus/configureDcloudControl.d.ts +5 -0
- package/dist/functions/uniapp/app-plus/configureDcloudControl.js +34 -0
- package/dist/functions/uniapp/app-plus/configureDcloudControl.js.map +1 -0
- package/dist/functions/uniapp/app-plus/configureStrings.d.ts +5 -0
- package/dist/functions/uniapp/app-plus/configureStrings.js +42 -0
- package/dist/functions/uniapp/app-plus/configureStrings.js.map +1 -0
- package/dist/functions/uniapp/app-plus/copyAppResources.d.ts +8 -0
- package/dist/functions/uniapp/app-plus/copyAppResources.js +25 -0
- package/dist/functions/uniapp/app-plus/copyAppResources.js.map +1 -0
- package/dist/functions/uniapp/app-plus/copyDirectory.d.ts +2 -0
- package/dist/functions/uniapp/app-plus/copyDirectory.js +18 -0
- package/dist/functions/uniapp/app-plus/copyDirectory.js.map +1 -0
- package/dist/functions/uniapp/app-plus/generateUniAppResources.d.ts +2 -0
- package/dist/functions/uniapp/app-plus/generateUniAppResources.js +35 -0
- package/dist/functions/uniapp/app-plus/generateUniAppResources.js.map +1 -0
- package/dist/functions/uniapp/app-plus/parseManifest.d.ts +14 -0
- package/dist/functions/uniapp/app-plus/parseManifest.js +44 -0
- package/dist/functions/uniapp/app-plus/parseManifest.js.map +1 -0
- package/dist/functions/uniapp/app-plus/validateOptions.d.ts +3 -0
- package/dist/functions/uniapp/app-plus/validateOptions.js +10 -0
- package/dist/functions/uniapp/app-plus/validateOptions.js.map +1 -0
- package/dist/functions/uniapp/waitForPages.d.ts +3 -0
- package/dist/functions/uniapp/waitForPages.js +20 -0
- package/dist/functions/uniapp/waitForPages.js.map +1 -0
- package/dist/functions/utils/compose.d.ts +1 -0
- package/dist/functions/utils/compose.js +10 -0
- package/dist/functions/utils/compose.js.map +1 -0
- package/dist/functions/utils/cond.d.ts +1 -0
- package/dist/functions/utils/cond.js +15 -0
- package/dist/functions/utils/cond.js.map +1 -0
- package/dist/functions/utils/curry.d.ts +1 -0
- package/dist/functions/utils/curry.js +13 -0
- package/dist/functions/utils/curry.js.map +1 -0
- package/dist/functions/utils/debounce.d.ts +1 -0
- package/dist/functions/utils/debounce.js +13 -0
- package/dist/functions/utils/debounce.js.map +1 -0
- package/dist/functions/utils/evolve.d.ts +3 -0
- package/dist/functions/utils/evolve.js +15 -0
- package/dist/functions/utils/evolve.js.map +1 -0
- package/dist/functions/utils/flow.d.ts +1 -0
- package/dist/functions/utils/flow.js +14 -0
- package/dist/functions/utils/flow.js.map +1 -0
- package/dist/functions/utils/generateExports.js +1 -1
- package/dist/functions/utils/generateExports.js.map +1 -1
- package/dist/functions/utils/isType.d.ts +11 -0
- package/dist/functions/utils/isType.js +30 -0
- package/dist/functions/utils/isType.js.map +1 -0
- package/dist/functions/utils/memoize.d.ts +1 -0
- package/dist/functions/utils/memoize.js +13 -0
- package/dist/functions/utils/memoize.js.map +1 -0
- package/dist/functions/utils/once.d.ts +1 -0
- package/dist/functions/utils/once.js +13 -0
- package/dist/functions/utils/once.js.map +1 -0
- package/dist/functions/utils/partial.d.ts +1 -0
- package/dist/functions/utils/partial.js +13 -0
- package/dist/functions/utils/partial.js.map +1 -0
- package/dist/functions/utils/pipe.d.ts +1 -0
- package/dist/functions/utils/pipe.js +10 -0
- package/dist/functions/utils/pipe.js.map +1 -0
- package/dist/functions/utils/retryWithBackoff.d.ts +9 -0
- package/dist/functions/utils/retryWithBackoff.js +30 -0
- package/dist/functions/utils/retryWithBackoff.js.map +1 -0
- package/dist/functions/utils/tap.d.ts +1 -0
- package/dist/functions/utils/tap.js +14 -0
- package/dist/functions/utils/tap.js.map +1 -0
- package/dist/functions/utils/throttle.d.ts +1 -0
- package/dist/functions/utils/throttle.js +11 -0
- package/dist/functions/utils/throttle.js.map +1 -0
- package/dist/functions/utils/until.d.ts +1 -0
- package/dist/functions/utils/until.js +10 -0
- package/dist/functions/utils/until.js.map +1 -0
- package/dist/functions/utils/validate.d.ts +8 -0
- package/dist/functions/utils/validate.js +45 -0
- package/dist/functions/utils/validate.js.map +1 -0
- package/dist/functions/utils/walk.d.ts +11 -0
- package/dist/functions/utils/walk.js +27 -0
- package/dist/functions/utils/walk.js.map +1 -0
- package/dist/functions/vue/checkVueType.d.ts +8 -0
- package/dist/functions/vue/checkVueType.js +29 -0
- package/dist/functions/vue/checkVueType.js.map +1 -0
- package/dist/functions/vue/deduplicateColors.d.ts +2 -0
- package/dist/functions/vue/deduplicateColors.js +13 -0
- package/dist/functions/vue/deduplicateColors.js.map +1 -0
- package/dist/functions/vue/dynamicMount.d.ts +15 -0
- package/dist/functions/vue/dynamicMount.js +25 -0
- package/dist/functions/vue/dynamicMount.js.map +1 -0
- package/dist/functions/vue/filterSections.js +11 -0
- package/dist/functions/vue/filterSections.js.map +1 -0
- package/dist/functions/vue/isVNode.d.ts +2 -0
- package/dist/functions/vue/isVNode.js +6 -0
- package/dist/functions/vue/isVNode.js.map +1 -0
- package/dist/functions/vue/isVueComponent.d.ts +2 -0
- package/dist/functions/vue/isVueComponent.js +6 -0
- package/dist/functions/vue/isVueComponent.js.map +1 -0
- package/dist/functions/vue/parseVueFile.js +53 -0
- package/dist/functions/vue/parseVueFile.js.map +1 -0
- package/dist/functions/vue/processVueFile.d.ts +3 -0
- package/dist/functions/vue/processVueFile.js +26 -0
- package/dist/functions/vue/processVueFile.js.map +1 -0
- package/dist/functions/vue/saveVueSection.d.ts +2 -0
- package/dist/functions/vue/saveVueSection.js +11 -0
- package/dist/functions/vue/saveVueSection.js.map +1 -0
- package/dist/functions/wechat/miniapp/downloadFile.d.ts +2 -0
- package/dist/functions/wechat/miniapp/downloadFile.js +39 -0
- package/dist/functions/wechat/miniapp/downloadFile.js.map +1 -0
- package/dist/hooks/useAi.d.ts +27 -0
- package/dist/hooks/useAi.js +163 -0
- package/dist/hooks/useAi.js.map +1 -0
- package/dist/hooks/useCache.d.ts +18 -0
- package/dist/hooks/useCache.js +82 -0
- package/dist/hooks/useCache.js.map +1 -0
- package/dist/hooks/useFetch.d.ts +3 -0
- package/dist/hooks/useFetch.js +154 -0
- package/dist/hooks/useFetch.js.map +1 -0
- package/dist/hooks/usePluginSystem.d.ts +11 -0
- package/dist/hooks/usePluginSystem.js +34 -0
- package/dist/hooks/usePluginSystem.js.map +1 -0
- package/dist/hooks/useRequest.d.ts +3 -0
- package/dist/hooks/useRequest.js +139 -0
- package/dist/hooks/useRequest.js.map +1 -0
- package/dist/hooks/useStorageWithIndexedDB.d.ts +2 -1
- package/dist/hooks/useStorageWithIndexedDB.js +1 -1
- package/dist/hooks/useStorageWithIndexedDB.js.map +1 -1
- package/dist/hooks/useWASM.d.ts +4 -0
- package/dist/hooks/useWASM.js +263 -0
- package/dist/hooks/useWASM.js.map +1 -0
- package/dist/hooks/useWorkerFunction.js +27 -27
- package/package.json +1 -1
- package/references/arraybuffer.d.ts +108 -108
- package/references/blob.d.ts +36 -36
- package/references/browser.d.ts +69 -69
- package/references/chrome.extension.d.ts +82 -82
- package/references/console.d.ts +24 -24
- package/references/crypto-js.d.ts +57 -57
- package/references/dom.d.ts +40 -40
- package/references/encoding.d.ts +23 -23
- package/references/fetch.d.ts +123 -123
- package/references/indexeddb.d.ts +48 -48
- package/references/json5.d.ts +21 -21
- package/references/location.d.ts +15 -15
- package/references/node.d.ts +121 -115
- package/references/sharp.d.ts +18 -18
- package/references/storage.d.ts +17 -17
- package/references/timer.d.ts +44 -44
- package/references/uniapp.d.ts +50 -50
- package/references/url.d.ts +55 -55
- package/references/vue.d.ts +85 -85
- package/references/webassembly.d.ts +100 -100
- package/references/wechat.d.ts +48 -48
- package/references/worker.d.ts +152 -152
- package/references/xml.d.ts +87 -88
- package/types/android-build.d.ts +60 -60
- package/types/color.d.ts +72 -72
- package/types/geometry.d.ts +28 -28
- package/types/platform.d.ts +3 -3
- package/types/software.d.ts +14 -14
- package/types/storage.d.ts +50 -50
- package/types/uniapp-android-build.d.ts +48 -48
- package/types/vue.d.ts +29 -29
- package/types/worker.d.ts +177 -177
package/references/fetch.d.ts
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
import type { BufferSource } from './arraybuffer.d'
|
|
2
|
-
|
|
3
|
-
type RequestCredentials = 'omit' | 'same-origin' | 'include'
|
|
4
|
-
type RequestCache = 'default' | 'no-store' | 'reload' | 'no-cache' | 'force-cache' | 'only-if-cached'
|
|
5
|
-
type RequestRedirect = 'follow' | 'error' | 'manual'
|
|
6
|
-
type ReferrerPolicy = 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url'
|
|
7
|
-
type RequestMode = 'cors' | 'no-cors' | 'same-origin' | 'navigate'
|
|
8
|
-
type BodyInit = Blob | BufferSource | FormData | URLSearchParams | string
|
|
9
|
-
type HeadersInit = string[][] | Record<string, string> | Headers
|
|
10
|
-
type RequestInfo = Request | string
|
|
11
|
-
type ResponseType = 'basic' | 'cors' | 'default' | 'error' | 'opaque' | 'opaqueredirect'
|
|
12
|
-
|
|
13
|
-
export interface Headers {
|
|
14
|
-
append(name: string, value: string): void
|
|
15
|
-
delete(name: string): void
|
|
16
|
-
get(name: string): string | null
|
|
17
|
-
has(name: string): boolean
|
|
18
|
-
set(name: string, value: string): void
|
|
19
|
-
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void
|
|
20
|
-
[Symbol.iterator](): IterableIterator<[string, string]>
|
|
21
|
-
entries(): IterableIterator<[string, string]>
|
|
22
|
-
keys(): IterableIterator<string>
|
|
23
|
-
values(): IterableIterator<string>
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export declare const Headers: {
|
|
27
|
-
new (init?: HeadersInit): Headers
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface AbortSignal {
|
|
31
|
-
aborted: boolean
|
|
32
|
-
reason?: any
|
|
33
|
-
addEventListener(type: 'abort', listener: () => void): void
|
|
34
|
-
removeEventListener(type: 'abort', listener: () => void): void
|
|
35
|
-
throwIfAborted(): void
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface AbortController {
|
|
39
|
-
signal: AbortSignal
|
|
40
|
-
abort(reason?: any): void
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export declare const AbortController: {
|
|
44
|
-
new (): AbortController
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface RequestInit {
|
|
48
|
-
method?: string
|
|
49
|
-
headers?: HeadersInit
|
|
50
|
-
body?: BodyInit | null
|
|
51
|
-
signal?: AbortSignal
|
|
52
|
-
credentials?: RequestCredentials
|
|
53
|
-
cache?: RequestCache
|
|
54
|
-
redirect?: RequestRedirect
|
|
55
|
-
referrer?: string
|
|
56
|
-
referrerPolicy?: ReferrerPolicy
|
|
57
|
-
integrity?: string
|
|
58
|
-
keepalive?: boolean
|
|
59
|
-
mode?: RequestMode
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface Request {
|
|
63
|
-
readonly url: string
|
|
64
|
-
readonly method: string
|
|
65
|
-
readonly headers: Headers
|
|
66
|
-
readonly body: ReadableStream<Uint8Array> | null
|
|
67
|
-
readonly bodyUsed: boolean
|
|
68
|
-
readonly cache: RequestCache
|
|
69
|
-
readonly credentials: RequestCredentials
|
|
70
|
-
readonly destination: string
|
|
71
|
-
readonly integrity: string
|
|
72
|
-
readonly keepalive: boolean
|
|
73
|
-
readonly mode: RequestMode
|
|
74
|
-
readonly redirect: RequestRedirect
|
|
75
|
-
readonly referrer: string
|
|
76
|
-
readonly referrerPolicy: ReferrerPolicy
|
|
77
|
-
readonly signal: AbortSignal
|
|
78
|
-
|
|
79
|
-
clone(): Request
|
|
80
|
-
arrayBuffer(): Promise<ArrayBuffer>
|
|
81
|
-
blob(): Promise<Blob>
|
|
82
|
-
formData(): Promise<FormData>
|
|
83
|
-
json(): Promise<any>
|
|
84
|
-
text(): Promise<string>
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export declare const Request: {
|
|
88
|
-
new (input: RequestInfo, init?: RequestInit): Request
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface Response {
|
|
92
|
-
readonly ok: boolean
|
|
93
|
-
readonly status: number
|
|
94
|
-
readonly statusText: string
|
|
95
|
-
readonly headers: Headers
|
|
96
|
-
readonly body: ReadableStream<Uint8Array> | null
|
|
97
|
-
readonly bodyUsed: boolean
|
|
98
|
-
readonly redirected: boolean
|
|
99
|
-
readonly type: ResponseType
|
|
100
|
-
readonly url: string
|
|
101
|
-
|
|
102
|
-
clone(): Response
|
|
103
|
-
arrayBuffer(): Promise<ArrayBuffer>
|
|
104
|
-
blob(): Promise<Blob>
|
|
105
|
-
formData(): Promise<FormData>
|
|
106
|
-
json(): Promise<any>
|
|
107
|
-
text(): Promise<string>
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export declare const Response: {
|
|
111
|
-
new (body?: BodyInit | null, init?: ResponseInit): Response
|
|
112
|
-
error(): Response
|
|
113
|
-
redirect(url: string, status?: number): Response
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export interface ResponseInit {
|
|
117
|
-
status?: number
|
|
118
|
-
statusText?: string
|
|
119
|
-
headers?: HeadersInit
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>
|
|
123
|
-
|
|
1
|
+
import type { BufferSource } from './arraybuffer.d'
|
|
2
|
+
|
|
3
|
+
type RequestCredentials = 'omit' | 'same-origin' | 'include'
|
|
4
|
+
type RequestCache = 'default' | 'no-store' | 'reload' | 'no-cache' | 'force-cache' | 'only-if-cached'
|
|
5
|
+
type RequestRedirect = 'follow' | 'error' | 'manual'
|
|
6
|
+
type ReferrerPolicy = 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url'
|
|
7
|
+
type RequestMode = 'cors' | 'no-cors' | 'same-origin' | 'navigate'
|
|
8
|
+
type BodyInit = Blob | BufferSource | FormData | URLSearchParams | string
|
|
9
|
+
type HeadersInit = string[][] | Record<string, string> | Headers
|
|
10
|
+
type RequestInfo = Request | string
|
|
11
|
+
type ResponseType = 'basic' | 'cors' | 'default' | 'error' | 'opaque' | 'opaqueredirect'
|
|
12
|
+
|
|
13
|
+
export interface Headers {
|
|
14
|
+
append(name: string, value: string): void
|
|
15
|
+
delete(name: string): void
|
|
16
|
+
get(name: string): string | null
|
|
17
|
+
has(name: string): boolean
|
|
18
|
+
set(name: string, value: string): void
|
|
19
|
+
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void
|
|
20
|
+
[Symbol.iterator](): IterableIterator<[string, string]>
|
|
21
|
+
entries(): IterableIterator<[string, string]>
|
|
22
|
+
keys(): IterableIterator<string>
|
|
23
|
+
values(): IterableIterator<string>
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export declare const Headers: {
|
|
27
|
+
new (init?: HeadersInit): Headers
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface AbortSignal {
|
|
31
|
+
aborted: boolean
|
|
32
|
+
reason?: any
|
|
33
|
+
addEventListener(type: 'abort', listener: () => void): void
|
|
34
|
+
removeEventListener(type: 'abort', listener: () => void): void
|
|
35
|
+
throwIfAborted(): void
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface AbortController {
|
|
39
|
+
signal: AbortSignal
|
|
40
|
+
abort(reason?: any): void
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare const AbortController: {
|
|
44
|
+
new (): AbortController
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface RequestInit {
|
|
48
|
+
method?: string
|
|
49
|
+
headers?: HeadersInit
|
|
50
|
+
body?: BodyInit | null
|
|
51
|
+
signal?: AbortSignal
|
|
52
|
+
credentials?: RequestCredentials
|
|
53
|
+
cache?: RequestCache
|
|
54
|
+
redirect?: RequestRedirect
|
|
55
|
+
referrer?: string
|
|
56
|
+
referrerPolicy?: ReferrerPolicy
|
|
57
|
+
integrity?: string
|
|
58
|
+
keepalive?: boolean
|
|
59
|
+
mode?: RequestMode
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface Request {
|
|
63
|
+
readonly url: string
|
|
64
|
+
readonly method: string
|
|
65
|
+
readonly headers: Headers
|
|
66
|
+
readonly body: ReadableStream<Uint8Array> | null
|
|
67
|
+
readonly bodyUsed: boolean
|
|
68
|
+
readonly cache: RequestCache
|
|
69
|
+
readonly credentials: RequestCredentials
|
|
70
|
+
readonly destination: string
|
|
71
|
+
readonly integrity: string
|
|
72
|
+
readonly keepalive: boolean
|
|
73
|
+
readonly mode: RequestMode
|
|
74
|
+
readonly redirect: RequestRedirect
|
|
75
|
+
readonly referrer: string
|
|
76
|
+
readonly referrerPolicy: ReferrerPolicy
|
|
77
|
+
readonly signal: AbortSignal
|
|
78
|
+
|
|
79
|
+
clone(): Request
|
|
80
|
+
arrayBuffer(): Promise<ArrayBuffer>
|
|
81
|
+
blob(): Promise<Blob>
|
|
82
|
+
formData(): Promise<FormData>
|
|
83
|
+
json(): Promise<any>
|
|
84
|
+
text(): Promise<string>
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export declare const Request: {
|
|
88
|
+
new (input: RequestInfo, init?: RequestInit): Request
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface Response {
|
|
92
|
+
readonly ok: boolean
|
|
93
|
+
readonly status: number
|
|
94
|
+
readonly statusText: string
|
|
95
|
+
readonly headers: Headers
|
|
96
|
+
readonly body: ReadableStream<Uint8Array> | null
|
|
97
|
+
readonly bodyUsed: boolean
|
|
98
|
+
readonly redirected: boolean
|
|
99
|
+
readonly type: ResponseType
|
|
100
|
+
readonly url: string
|
|
101
|
+
|
|
102
|
+
clone(): Response
|
|
103
|
+
arrayBuffer(): Promise<ArrayBuffer>
|
|
104
|
+
blob(): Promise<Blob>
|
|
105
|
+
formData(): Promise<FormData>
|
|
106
|
+
json(): Promise<any>
|
|
107
|
+
text(): Promise<string>
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export declare const Response: {
|
|
111
|
+
new (body?: BodyInit | null, init?: ResponseInit): Response
|
|
112
|
+
error(): Response
|
|
113
|
+
redirect(url: string, status?: number): Response
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface ResponseInit {
|
|
117
|
+
status?: number
|
|
118
|
+
statusText?: string
|
|
119
|
+
headers?: HeadersInit
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>
|
|
123
|
+
|
|
124
124
|
export type FetchFunction = typeof fetch
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
// IndexedDB 相关类型声明
|
|
2
|
-
|
|
3
|
-
export interface IDBFactory {
|
|
4
|
-
open(name: string, version?: number): IDBOpenDBRequest
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface IDBOpenDBRequest {
|
|
8
|
-
result: IDBDatabase
|
|
9
|
-
error: DOMException | null
|
|
10
|
-
onsuccess: ((event: Event) => void) | null
|
|
11
|
-
onerror: ((event: Event) => void) | null
|
|
12
|
-
onupgradeneeded: ((event: IDBVersionChangeEvent) => void) | null
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface IDBDatabase {
|
|
16
|
-
objectStoreNames: DOMStringList
|
|
17
|
-
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore
|
|
18
|
-
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IDBObjectStore {
|
|
22
|
-
get(key: IDBValidKey): IDBRequest
|
|
23
|
-
put(value: any, key?: IDBValidKey): IDBRequest
|
|
24
|
-
delete(key: IDBValidKey): IDBRequest
|
|
25
|
-
clear(): IDBRequest
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface IDBTransaction {
|
|
29
|
-
objectStore(name: string): IDBObjectStore
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface IDBRequest {
|
|
33
|
-
result: any
|
|
34
|
-
error: DOMException | null
|
|
35
|
-
onsuccess: ((event: Event) => void) | null
|
|
36
|
-
onerror: ((event: Event) => void) | null
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface IDBVersionChangeEvent {
|
|
40
|
-
target: IDBOpenDBRequest
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type IDBValidKey = string | number | Date | ArrayBuffer | IDBValidKey[]
|
|
44
|
-
export type IDBTransactionMode = 'readonly' | 'readwrite' | 'versionchange'
|
|
45
|
-
|
|
46
|
-
export interface IDBObjectStoreParameters {
|
|
47
|
-
keyPath?: string | string[]
|
|
48
|
-
autoIncrement?: boolean
|
|
1
|
+
// IndexedDB 相关类型声明
|
|
2
|
+
|
|
3
|
+
export interface IDBFactory {
|
|
4
|
+
open(name: string, version?: number): IDBOpenDBRequest
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface IDBOpenDBRequest {
|
|
8
|
+
result: IDBDatabase
|
|
9
|
+
error: DOMException | null
|
|
10
|
+
onsuccess: ((event: Event) => void) | null
|
|
11
|
+
onerror: ((event: Event) => void) | null
|
|
12
|
+
onupgradeneeded: ((event: IDBVersionChangeEvent) => void) | null
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface IDBDatabase {
|
|
16
|
+
objectStoreNames: DOMStringList
|
|
17
|
+
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore
|
|
18
|
+
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface IDBObjectStore {
|
|
22
|
+
get(key: IDBValidKey): IDBRequest
|
|
23
|
+
put(value: any, key?: IDBValidKey): IDBRequest
|
|
24
|
+
delete(key: IDBValidKey): IDBRequest
|
|
25
|
+
clear(): IDBRequest
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface IDBTransaction {
|
|
29
|
+
objectStore(name: string): IDBObjectStore
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface IDBRequest {
|
|
33
|
+
result: any
|
|
34
|
+
error: DOMException | null
|
|
35
|
+
onsuccess: ((event: Event) => void) | null
|
|
36
|
+
onerror: ((event: Event) => void) | null
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface IDBVersionChangeEvent {
|
|
40
|
+
target: IDBOpenDBRequest
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type IDBValidKey = string | number | Date | ArrayBuffer | IDBValidKey[]
|
|
44
|
+
export type IDBTransactionMode = 'readonly' | 'readwrite' | 'versionchange'
|
|
45
|
+
|
|
46
|
+
export interface IDBObjectStoreParameters {
|
|
47
|
+
keyPath?: string | string[]
|
|
48
|
+
autoIncrement?: boolean
|
|
49
49
|
}
|
package/references/json5.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JSON5 解析器类型定义
|
|
3
|
-
* JSON5 是 JSON 的扩展,支持注释、尾随逗号等特性
|
|
4
|
-
*/
|
|
5
|
-
export interface JSON5Parser {
|
|
6
|
-
/**
|
|
7
|
-
* 解析 JSON5 字符串
|
|
8
|
-
* @param text 要解析的 JSON5 字符串
|
|
9
|
-
* @returns 解析后的对象
|
|
10
|
-
*/
|
|
11
|
-
parse(text: string): any
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* 将对象序列化为 JSON5 字符串
|
|
15
|
-
* @param value 要序列化的值
|
|
16
|
-
* @param replacer 替换函数或属性数组
|
|
17
|
-
* @param space 缩进空格数
|
|
18
|
-
* @returns JSON5 字符串
|
|
19
|
-
*/
|
|
20
|
-
stringify(value: any, replacer?: any, space?: string | number): string
|
|
21
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* JSON5 解析器类型定义
|
|
3
|
+
* JSON5 是 JSON 的扩展,支持注释、尾随逗号等特性
|
|
4
|
+
*/
|
|
5
|
+
export interface JSON5Parser {
|
|
6
|
+
/**
|
|
7
|
+
* 解析 JSON5 字符串
|
|
8
|
+
* @param text 要解析的 JSON5 字符串
|
|
9
|
+
* @returns 解析后的对象
|
|
10
|
+
*/
|
|
11
|
+
parse(text: string): any
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* 将对象序列化为 JSON5 字符串
|
|
15
|
+
* @param value 要序列化的值
|
|
16
|
+
* @param replacer 替换函数或属性数组
|
|
17
|
+
* @param space 缩进空格数
|
|
18
|
+
* @returns JSON5 字符串
|
|
19
|
+
*/
|
|
20
|
+
stringify(value: any, replacer?: any, space?: string | number): string
|
|
21
|
+
}
|
package/references/location.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
// 位置信息相关类型声明
|
|
2
|
-
|
|
3
|
-
export interface Location {
|
|
4
|
-
search: string
|
|
5
|
-
href: string
|
|
6
|
-
origin: string
|
|
7
|
-
pathname: string
|
|
8
|
-
hash: string
|
|
9
|
-
protocol: string
|
|
10
|
-
host: string
|
|
11
|
-
hostname: string
|
|
12
|
-
port: string
|
|
13
|
-
assign(url: string): void
|
|
14
|
-
reload(forcedReload?: boolean): void
|
|
15
|
-
replace(url: string): void
|
|
1
|
+
// 位置信息相关类型声明
|
|
2
|
+
|
|
3
|
+
export interface Location {
|
|
4
|
+
search: string
|
|
5
|
+
href: string
|
|
6
|
+
origin: string
|
|
7
|
+
pathname: string
|
|
8
|
+
hash: string
|
|
9
|
+
protocol: string
|
|
10
|
+
host: string
|
|
11
|
+
hostname: string
|
|
12
|
+
port: string
|
|
13
|
+
assign(url: string): void
|
|
14
|
+
reload(forcedReload?: boolean): void
|
|
15
|
+
replace(url: string): void
|
|
16
16
|
}
|
package/references/node.d.ts
CHANGED
|
@@ -1,116 +1,122 @@
|
|
|
1
|
-
// Node.js 环境类型声明 - 统一的Global接口
|
|
2
|
-
import type { Console } from './console.d'
|
|
3
|
-
import type { TextDecoderConstructor, TextEncoderConstructor } from './encoding.d'
|
|
4
|
-
import type { ArrayBufferConstructor, Uint8ArrayConstructor, DataViewConstructor } from './arraybuffer.d'
|
|
5
|
-
|
|
6
|
-
// 基础类型定义
|
|
7
|
-
export interface ReadableStream {
|
|
8
|
-
// ReadableStream 基本接口
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface WritableStream {
|
|
12
|
-
// WritableStream 基本接口
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface Process {
|
|
16
|
-
env: Record<string, string | undefined>
|
|
17
|
-
argv: string[]
|
|
18
|
-
platform: string
|
|
19
|
-
cwd(): string
|
|
20
|
-
exit(code?: number): never
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface Buffer {
|
|
24
|
-
length: number
|
|
25
|
-
toString(encoding?: string): string
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface FileSystem {
|
|
29
|
-
readFile(path: string, encoding?: string): Promise<any>
|
|
30
|
-
readFileSync(path: string, encoding?: string): string
|
|
31
|
-
writeFile(path: string, data: any): Promise<void>
|
|
32
|
-
writeFileSync(path: string, data: any, encoding?: string): void
|
|
33
|
-
mkdir(path: string, options?: any): Promise<void>
|
|
34
|
-
mkdirSync(path: string, options?: any): void
|
|
35
|
-
copyFileSync(src: string, dest: string): void
|
|
36
|
-
existsSync(path: string): boolean
|
|
37
|
-
readdirSync(path: string): string[]
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
//
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
//
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
1
|
+
// Node.js 环境类型声明 - 统一的Global接口
|
|
2
|
+
import type { Console } from './console.d'
|
|
3
|
+
import type { TextDecoderConstructor, TextEncoderConstructor } from './encoding.d'
|
|
4
|
+
import type { ArrayBufferConstructor, Uint8ArrayConstructor, DataViewConstructor } from './arraybuffer.d'
|
|
5
|
+
|
|
6
|
+
// 基础类型定义
|
|
7
|
+
export interface ReadableStream {
|
|
8
|
+
// ReadableStream 基本接口
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface WritableStream {
|
|
12
|
+
// WritableStream 基本接口
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface Process {
|
|
16
|
+
env: Record<string, string | undefined>
|
|
17
|
+
argv: string[]
|
|
18
|
+
platform: string
|
|
19
|
+
cwd(): string
|
|
20
|
+
exit(code?: number): never
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface Buffer {
|
|
24
|
+
length: number
|
|
25
|
+
toString(encoding?: string): string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface FileSystem {
|
|
29
|
+
readFile(path: string, encoding?: string): Promise<any>
|
|
30
|
+
readFileSync(path: string, encoding?: string): string
|
|
31
|
+
writeFile(path: string, data: any): Promise<void>
|
|
32
|
+
writeFileSync(path: string, data: any, encoding?: string): void
|
|
33
|
+
mkdir(path: string, options?: any): Promise<void>
|
|
34
|
+
mkdirSync(path: string, options?: any): void
|
|
35
|
+
copyFileSync(src: string, dest: string): void
|
|
36
|
+
existsSync(path: string): boolean
|
|
37
|
+
readdirSync(path: string): string[]
|
|
38
|
+
statSync(path: string): { isDirectory(): boolean; isFile(): boolean }
|
|
39
|
+
promises: {
|
|
40
|
+
cp(source: string, destination: string, options?: any): Promise<void>
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface Path {
|
|
45
|
+
join(...paths: string[]): string
|
|
46
|
+
resolve(...paths: string[]): string
|
|
47
|
+
dirname(path: string): string
|
|
48
|
+
basename(path: string, ext?: string): string
|
|
49
|
+
extname(path: string): string
|
|
50
|
+
sep: string
|
|
51
|
+
posix: {
|
|
52
|
+
join(...paths: string[]): string
|
|
53
|
+
sep: string
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface ChildProcess {
|
|
58
|
+
exec(command: string, callback?: (error: any, stdout: string, stderr: string) => void): any
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface Util {
|
|
62
|
+
promisify<T extends (...args: any[]) => any>(fn: T): (...args: Parameters<T>) => Promise<any>
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface BufferConstructor {
|
|
66
|
+
from(str: string, encoding?: string): Buffer
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface Timeout {
|
|
70
|
+
ref(): this
|
|
71
|
+
unref(): this
|
|
72
|
+
hasRef(): boolean
|
|
73
|
+
refresh(): this
|
|
74
|
+
[Symbol.toPrimitive](): number
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface Immediate {
|
|
78
|
+
ref(): this
|
|
79
|
+
unref(): this
|
|
80
|
+
hasRef(): boolean
|
|
81
|
+
_onImmediate: Function
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Node.js Global对象 - 包含所有Node.js API
|
|
85
|
+
export interface Global {
|
|
86
|
+
// 进程对象
|
|
87
|
+
process: Process
|
|
88
|
+
|
|
89
|
+
// 控制台
|
|
90
|
+
console: Console
|
|
91
|
+
|
|
92
|
+
// Buffer API
|
|
93
|
+
Buffer: BufferConstructor
|
|
94
|
+
|
|
95
|
+
// 编码API
|
|
96
|
+
TextDecoder: TextDecoderConstructor
|
|
97
|
+
TextEncoder: TextEncoderConstructor
|
|
98
|
+
|
|
99
|
+
// 定时器API
|
|
100
|
+
setTimeout(callback: (...args: any[]) => void, ms?: number, ...args: any[]): Timeout
|
|
101
|
+
clearTimeout(timeoutId: Timeout): void
|
|
102
|
+
setInterval(callback: (...args: any[]) => void, ms?: number, ...args: any[]): Timeout
|
|
103
|
+
clearInterval(intervalId: Timeout): void
|
|
104
|
+
setImmediate(callback: (...args: any[]) => void, ...args: any[]): Immediate
|
|
105
|
+
clearImmediate(immediateId: Immediate): void
|
|
106
|
+
|
|
107
|
+
// 类型化数组
|
|
108
|
+
ArrayBuffer: ArrayBufferConstructor
|
|
109
|
+
Uint8Array: Uint8ArrayConstructor
|
|
110
|
+
DataView: DataViewConstructor
|
|
111
|
+
|
|
112
|
+
// 全局变量
|
|
113
|
+
__dirname?: string
|
|
114
|
+
__filename?: string
|
|
115
|
+
|
|
116
|
+
// 开发环境标识
|
|
117
|
+
__DEV__?: boolean
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// 定时器函数
|
|
121
|
+
export declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]): Immediate
|
|
116
122
|
export declare function clearImmediate(immediateId: Immediate): void
|