@prisma/cli 2.20.1 → 3.0.0-alpha.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/LICENSE +158 -0
- package/README.md +29 -28
- package/dist/adapters/config.js +74 -0
- package/dist/adapters/local-state.js +98 -0
- package/dist/adapters/mock-api.js +57 -0
- package/dist/adapters/token-storage.js +43 -0
- package/dist/cli.js +9 -0
- package/dist/cli2.js +59 -0
- package/dist/commands/app/index.js +223 -0
- package/dist/commands/auth/index.js +42 -0
- package/dist/commands/branch/index.js +51 -0
- package/dist/commands/project/index.js +45 -0
- package/dist/controllers/app.js +813 -0
- package/dist/controllers/auth.js +107 -0
- package/dist/controllers/branch.js +73 -0
- package/dist/controllers/project.js +214 -0
- package/dist/controllers/select-prompt-port.js +12 -0
- package/dist/lib/app/bun-project.js +39 -0
- package/dist/lib/app/env-vars.js +24 -0
- package/dist/lib/app/local-dev.js +149 -0
- package/dist/lib/app/preview-build.js +283 -0
- package/dist/lib/app/preview-interaction.js +38 -0
- package/dist/lib/app/preview-progress.js +139 -0
- package/dist/lib/app/preview-provider.js +232 -0
- package/dist/lib/auth/auth-ops.js +57 -0
- package/dist/lib/auth/client.js +22 -0
- package/dist/lib/auth/guard.js +34 -0
- package/dist/lib/auth/login.js +117 -0
- package/dist/output/patterns.js +93 -0
- package/dist/presenters/app.js +405 -0
- package/dist/presenters/auth.js +73 -0
- package/dist/presenters/branch.js +111 -0
- package/dist/presenters/project.js +84 -0
- package/dist/shell/command-meta.js +320 -0
- package/dist/shell/command-runner.js +33 -0
- package/dist/shell/errors.js +66 -0
- package/dist/shell/global-flags.js +25 -0
- package/dist/shell/help.js +78 -0
- package/dist/shell/output.js +54 -0
- package/dist/shell/prompt.js +31 -0
- package/dist/shell/runtime.js +51 -0
- package/dist/shell/ui.js +59 -0
- package/dist/use-cases/auth.js +70 -0
- package/dist/use-cases/branch.js +95 -0
- package/dist/use-cases/create-cli-gateways.js +93 -0
- package/dist/use-cases/project.js +75 -0
- package/package.json +49 -137
- package/build/child.js +0 -4110
- package/build/index.js +0 -104447
- package/build/public/.DS_Store +0 -0
- package/build/public/assets/alert.60ea9f84.svg +0 -5
- package/build/public/assets/array.1a36c222.svg +0 -4
- package/build/public/assets/boolean.9188b434.svg +0 -4
- package/build/public/assets/browser.21a575be.js +0 -1
- package/build/public/assets/browser.38b7fdb1.js +0 -1
- package/build/public/assets/browser.cdd2249a.js +0 -1
- package/build/public/assets/chevron-down.24f76e3c.svg +0 -3
- package/build/public/assets/cross.c2610cf5.svg +0 -11
- package/build/public/assets/datetime.a3bf710a.svg +0 -4
- package/build/public/assets/download.8d34b65a.svg +0 -4
- package/build/public/assets/ellipsis.a8c5a34a.svg +0 -10
- package/build/public/assets/enum.7ec0b64c.svg +0 -6
- package/build/public/assets/folder.d77b8eaf.svg +0 -6
- package/build/public/assets/hamburger.5fdadeac.svg +0 -4
- package/build/public/assets/logotype.a960b169.svg +0 -4
- package/build/public/assets/number.85ddf96b.svg +0 -7
- package/build/public/assets/object.0ba944a6.svg +0 -5
- package/build/public/assets/play.8811691e.svg +0 -6
- package/build/public/assets/plus.8fbf7ad3.svg +0 -4
- package/build/public/assets/read.79154521.svg +0 -1
- package/build/public/assets/refresh.d5448ccc.svg +0 -4
- package/build/public/assets/search.2ed766ce.svg +0 -7
- package/build/public/assets/settings.5ad25af2.svg +0 -8
- package/build/public/assets/string.ea615a24.svg +0 -4
- package/build/public/assets/tick-indeterminate.aec8a44d.svg +0 -3
- package/build/public/assets/tick.8cbb6a93.svg +0 -4
- package/build/public/assets/vendor.c4d0f081.js +0 -354
- package/build/public/demo.html +0 -17
- package/build/public/demoChunk.js +0 -2
- package/build/public/electron-darwin.html +0 -19
- package/build/public/electron-linux.html +0 -18
- package/build/public/electron-mac.html +0 -18
- package/build/public/electron-win.html +0 -17
- package/build/public/electron-win32.html +0 -18
- package/build/public/electron.html +0 -17
- package/build/public/electronBus.js +0 -2
- package/build/public/electronChunk.js +0 -2
- package/build/public/favicon/apple-touch-icon.png +0 -0
- package/build/public/favicon/favicon-16x16.png +0 -0
- package/build/public/favicon/favicon-32x32.png +0 -0
- package/build/public/favicon/prisma.png +0 -0
- package/build/public/favicon.svg +0 -5
- package/build/public/fonts/.DS_Store +0 -0
- package/build/public/fonts/Inter.ttf +0 -0
- package/build/public/fonts/RobotoMono.ttf +0 -0
- package/build/public/icons/.DS_Store +0 -0
- package/build/public/icons/alert.svg +0 -5
- package/build/public/icons/array.svg +0 -4
- package/build/public/icons/bin.svg +0 -37
- package/build/public/icons/boolean.svg +0 -4
- package/build/public/icons/check.svg +0 -3
- package/build/public/icons/chevron-down.svg +0 -3
- package/build/public/icons/code.svg +0 -4
- package/build/public/icons/cross.svg +0 -11
- package/build/public/icons/data-tool.svg +0 -5
- package/build/public/icons/database.svg +0 -4
- package/build/public/icons/datetime.svg +0 -4
- package/build/public/icons/double-arrow-right.svg +0 -4
- package/build/public/icons/download.svg +0 -4
- package/build/public/icons/ellipsis.svg +0 -10
- package/build/public/icons/enum.svg +0 -6
- package/build/public/icons/expand.svg +0 -4
- package/build/public/icons/eye.svg +0 -20
- package/build/public/icons/filters.svg +0 -5
- package/build/public/icons/folder.svg +0 -6
- package/build/public/icons/hamburger.svg +0 -4
- package/build/public/icons/icon.svg +0 -199
- package/build/public/icons/logo.svg +0 -199
- package/build/public/icons/logotype.svg +0 -4
- package/build/public/icons/number.svg +0 -7
- package/build/public/icons/object.svg +0 -5
- package/build/public/icons/play.svg +0 -6
- package/build/public/icons/plus.svg +0 -4
- package/build/public/icons/refresh.svg +0 -4
- package/build/public/icons/search.svg +0 -7
- package/build/public/icons/settings.svg +0 -8
- package/build/public/icons/string.svg +0 -4
- package/build/public/icons/tick-indeterminate.svg +0 -3
- package/build/public/icons/tick.svg +0 -4
- package/build/public/illustrations/.DS_Store +0 -0
- package/build/public/illustrations/empty.svg +0 -1
- package/build/public/illustrations/read.svg +0 -1
- package/build/public/illustrations/searching.svg +0 -1
- package/build/public/images/.DS_Store +0 -0
- package/build/public/images/icon-1024.png +0 -0
- package/build/public/index.css +0 -1
- package/build/public/index.html +0 -49
- package/build/public/index.js +0 -1
- package/build/public/main.31f688a6254e294d9128.css +0 -118
- package/build/public/main.31f688a6254e294d9128.css.map +0 -1
- package/build/public/main.364c712f32662ff0e43d.css +0 -116
- package/build/public/main.364c712f32662ff0e43d.css.map +0 -1
- package/build/public/main.42ef3fe7e97347765c91.css +0 -118
- package/build/public/main.42ef3fe7e97347765c91.css.map +0 -1
- package/build/public/main.503446defafe7aeca2f3.css +0 -116
- package/build/public/main.503446defafe7aeca2f3.css.map +0 -1
- package/build/public/main.c50a3b5980fe26f78b65.css +0 -118
- package/build/public/main.c50a3b5980fe26f78b65.css.map +0 -1
- package/build/public/main.cda25e5813776c2af295.css +0 -116
- package/build/public/main.cda25e5813776c2af295.css.map +0 -1
- package/build/public/main.dbac3b290f78404ff579.css +0 -116
- package/build/public/main.dbac3b290f78404ff579.css.map +0 -1
- package/build/public/main.f8ce44e122e5e2b8f778.css +0 -118
- package/build/public/main.f8ce44e122e5e2b8f778.css.map +0 -1
- package/build/public/main.fc9ea7521a4aecce1a77.css +0 -118
- package/build/public/main.fc9ea7521a4aecce1a77.css.map +0 -1
- package/build/public/main.js +0 -403
- package/build/public/main.js.map +0 -1
- package/build/public/mainChunk.0a84f3ba4d2ab481e877.css +0 -116
- package/build/public/mainChunk.1b327d58afbddc917bce.css +0 -118
- package/build/public/mainChunk.2cdf583b2bd51aa67587.css +0 -118
- package/build/public/mainChunk.544af00f7e9ffcbe782c.css +0 -118
- package/build/public/mainChunk.56f96a13868b2b4a53be.css +0 -118
- package/build/public/mainChunk.5cee429bfbf06e7ecb39.css +0 -118
- package/build/public/mainChunk.a862474ed4cdb421ffa2.css +0 -118
- package/build/public/mainChunk.ada34153c4911b5ac22b.css +0 -118
- package/build/public/mainChunk.c16a8d01b2c49b2f2751.css +0 -118
- package/build/public/mainChunk.ca4a878d5478b9320be8.css +0 -116
- package/build/public/mainChunk.e3adc8758b4395546cef.css +0 -116
- package/build/public/mainChunk.f2c59fcbfc455d8b9de5.css +0 -118
- package/build/public/mainChunk.js +0 -396
- package/build/public/manifest.json +0 -34
- package/build/public/preview.html +0 -16
- package/build/public/previewBus.js +0 -2
- package/build/public/previewChunk.js +0 -2
- package/build/public/projects.html +0 -86
- package/build/public/server.html +0 -16
- package/build/public/serverBus.js +0 -2
- package/build/public/serverChunk.js +0 -2
- package/build/public/splash.html +0 -17
- package/build/public/studioBundle.828f34b1781061528841.css +0 -118
- package/build/public/studioBundle.bfe9138b2e0293fcb7da.css +0 -118
- package/build/public/studioBundle.c5b256eede880e502aac.css +0 -118
- package/build/public/studioBundle.e43df511c8e2e368900a.css +0 -118
- package/build/public/studioBundle.e69382554c2a2942ae32.css +0 -118
- package/build/public/studioBundle.ee21aa56a3999a2b380b.css +0 -118
- package/build/public/studioBundle.js +0 -396
- package/build/public/vercel.html +0 -16
- package/build/public/vercelChunk.js +0 -2
- package/build/public/views/index.pug +0 -89
- package/build/xdg-open +0 -1066
- package/install/index.js +0 -5
- package/preinstall/index.js +0 -46
- package/prisma-client/README.md +0 -27
- package/prisma-client/generator-build/.DS_Store +0 -0
- package/prisma-client/generator-build/index.js +0 -79697
- package/prisma-client/index-browser.js +0 -3
- package/prisma-client/index.d.ts +0 -1
- package/prisma-client/index.js +0 -11
- package/prisma-client/package.json +0 -138
- package/prisma-client/runtime/index-browser.d.ts +0 -267
- package/prisma-client/runtime/index-browser.js +0 -2273
- package/prisma-client/runtime/index.d.ts +0 -1018
- package/prisma-client/runtime/index.js +0 -35028
- package/prisma-client/scripts/backup-index-browser.js +0 -3
- package/prisma-client/scripts/backup-index.d.ts +0 -1
- package/prisma-client/scripts/backup-index.js +0 -11
- package/prisma-client/scripts/colors.js +0 -180
- package/prisma-client/scripts/default-index-browser.js +0 -12
- package/prisma-client/scripts/default-index.d.ts +0 -47
- package/prisma-client/scripts/default-index.js +0 -12
- package/prisma-client/scripts/get-packed-client.js +0 -12
- package/prisma-client/scripts/mock-fs.js +0 -14
- package/prisma-client/scripts/postinstall.d.ts +0 -5
- package/prisma-client/scripts/postinstall.js +0 -398
- package/scripts/install-entry.js +0 -8
- package/scripts/preinstall-entry.js +0 -9
package/prisma-client/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '.prisma/client'
|
package/prisma-client/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const prisma = require('.prisma/client')
|
|
2
|
-
const path = require('path')
|
|
3
|
-
|
|
4
|
-
module.exports = prisma
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Annotation for ncc/zeit
|
|
8
|
-
*/
|
|
9
|
-
path.join(__dirname, '../../.prisma/client/schema.prisma')
|
|
10
|
-
path.join(__dirname, '../../../.prisma/client/schema.prisma')
|
|
11
|
-
path.join(__dirname, '../../../../.prisma/client/schema.prisma')
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@prisma/client",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"description": "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports MySQL, PostgreSQL, MariaDB, SQLite databases.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"orm",
|
|
7
|
-
"prisma2",
|
|
8
|
-
"prisma",
|
|
9
|
-
"client",
|
|
10
|
-
"query",
|
|
11
|
-
"database",
|
|
12
|
-
"sql",
|
|
13
|
-
"postgres",
|
|
14
|
-
"postgresql",
|
|
15
|
-
"mysql",
|
|
16
|
-
"sqlite",
|
|
17
|
-
"mariadb",
|
|
18
|
-
"mssql",
|
|
19
|
-
"typescript",
|
|
20
|
-
"query-builder"
|
|
21
|
-
],
|
|
22
|
-
"main": "index.js",
|
|
23
|
-
"browser": "index-browser.js",
|
|
24
|
-
"types": "index.d.ts",
|
|
25
|
-
"license": "Apache-2.0",
|
|
26
|
-
"engines": {
|
|
27
|
-
"node": ">=10.16"
|
|
28
|
-
},
|
|
29
|
-
"homepage": "https://www.prisma.io",
|
|
30
|
-
"repository": "git@github.com:prisma/prisma.git",
|
|
31
|
-
"author": "Tim Suchanek <suchanek@prisma.io>",
|
|
32
|
-
"maintainers": [
|
|
33
|
-
"Tim Suchanek <suchanek@prisma.io>",
|
|
34
|
-
"Joël Galeran <galeran@prisma.io>",
|
|
35
|
-
"William Luke <luke@prisma.io>"
|
|
36
|
-
],
|
|
37
|
-
"bugs": "https://github.com/prisma/prisma/issues",
|
|
38
|
-
"scripts": {
|
|
39
|
-
"build": "node helpers/build.js",
|
|
40
|
-
"test": "node helpers/patchJest.js && jest",
|
|
41
|
-
"format": "prettier --write .",
|
|
42
|
-
"lint": "eslint --cache --fix --ext .ts .",
|
|
43
|
-
"lint-ci": "eslint --ext .ts .",
|
|
44
|
-
"generate": "node scripts/postinstall.js",
|
|
45
|
-
"postinstall": "node scripts/postinstall.js",
|
|
46
|
-
"prepare": "cp scripts/backup-index.js index.js && cp scripts/backup-index.d.ts index.d.ts",
|
|
47
|
-
"prepublishOnly": "pnpm run build",
|
|
48
|
-
"precommit": "lint-staged"
|
|
49
|
-
},
|
|
50
|
-
"files": [
|
|
51
|
-
"README.md",
|
|
52
|
-
"runtime",
|
|
53
|
-
"scripts",
|
|
54
|
-
"generator-build",
|
|
55
|
-
"index.js",
|
|
56
|
-
"index.d.ts",
|
|
57
|
-
"index-browser.js"
|
|
58
|
-
],
|
|
59
|
-
"devDependencies": {
|
|
60
|
-
"@prisma/debug": "workspace:*",
|
|
61
|
-
"@prisma/engine-core": "workspace:*",
|
|
62
|
-
"@prisma/engines": "2.20.0-26.60ba6551f29b17d7d6ce479e5733c70d9c00860e",
|
|
63
|
-
"@prisma/fetch-engine": "workspace:*",
|
|
64
|
-
"@prisma/generator-helper": "workspace:*",
|
|
65
|
-
"@prisma/get-platform": "workspace:*",
|
|
66
|
-
"@prisma/migrate": "workspace:*",
|
|
67
|
-
"@prisma/sdk": "workspace:*",
|
|
68
|
-
"@timsuchanek/copy": "1.4.5",
|
|
69
|
-
"@types/debug": "4.1.5",
|
|
70
|
-
"@types/jest": "26.0.22",
|
|
71
|
-
"@types/js-levenshtein": "1.1.0",
|
|
72
|
-
"@types/mssql": "6.0.7",
|
|
73
|
-
"@types/node": "12.20.7",
|
|
74
|
-
"@types/pg": "7.14.11",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "4.19.0",
|
|
76
|
-
"@typescript-eslint/parser": "4.19.0",
|
|
77
|
-
"arg": "5.0.0",
|
|
78
|
-
"chalk": "4.1.0",
|
|
79
|
-
"decimal.js": "10.2.1",
|
|
80
|
-
"esbuild": "0.8.53",
|
|
81
|
-
"escape-string-regexp": "4.0.0",
|
|
82
|
-
"eslint": "7.23.0",
|
|
83
|
-
"eslint-config-prettier": "8.1.0",
|
|
84
|
-
"eslint-plugin-eslint-comments": "3.2.0",
|
|
85
|
-
"eslint-plugin-jest": "24.3.2",
|
|
86
|
-
"eslint-plugin-prettier": "3.3.1",
|
|
87
|
-
"execa": "5.0.0",
|
|
88
|
-
"flat-map-polyfill": "0.3.8",
|
|
89
|
-
"fs-monkey": "1.0.1",
|
|
90
|
-
"get-own-enumerable-property-symbols": "3.0.2",
|
|
91
|
-
"indent-string": "4.0.0",
|
|
92
|
-
"is-obj": "2.0.0",
|
|
93
|
-
"is-regexp": "2.1.0",
|
|
94
|
-
"jest": "26.6.3",
|
|
95
|
-
"js-levenshtein": "1.1.6",
|
|
96
|
-
"klona": "2.0.4",
|
|
97
|
-
"lint-staged": "10.5.4",
|
|
98
|
-
"make-dir": "3.1.0",
|
|
99
|
-
"mariadb": "2.5.3",
|
|
100
|
-
"mssql": "6.3.1",
|
|
101
|
-
"pg": "8.5.1",
|
|
102
|
-
"pkg-up": "3.1.0",
|
|
103
|
-
"pluralize": "8.0.0",
|
|
104
|
-
"prettier": "2.2.1",
|
|
105
|
-
"replace-string": "3.1.0",
|
|
106
|
-
"resolve-from": "5.0.0",
|
|
107
|
-
"rimraf": "3.0.2",
|
|
108
|
-
"rollup": "2.43.1",
|
|
109
|
-
"rollup-plugin-dts": "3.0.1",
|
|
110
|
-
"sort-keys": "4.2.0",
|
|
111
|
-
"source-map-support": "0.5.19",
|
|
112
|
-
"sql-template-tag": "4.0.0",
|
|
113
|
-
"stacktrace-parser": "0.1.10",
|
|
114
|
-
"strip-ansi": "6.0.0",
|
|
115
|
-
"strip-indent": "3.0.0",
|
|
116
|
-
"ts-jest": "26.5.4",
|
|
117
|
-
"ts-node": "9.1.1",
|
|
118
|
-
"tsd": "0.14.0",
|
|
119
|
-
"typescript": "4.2.3"
|
|
120
|
-
},
|
|
121
|
-
"peerDependencies": {
|
|
122
|
-
"prisma": "*"
|
|
123
|
-
},
|
|
124
|
-
"peerDependenciesMeta": {
|
|
125
|
-
"prisma": {
|
|
126
|
-
"optional": true
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"dependencies": {
|
|
130
|
-
"@prisma/engines-version": "2.20.0-26.60ba6551f29b17d7d6ce479e5733c70d9c00860e"
|
|
131
|
-
},
|
|
132
|
-
"lint-staged": {
|
|
133
|
-
"*.ts": [
|
|
134
|
-
"eslint",
|
|
135
|
-
"prettier --write"
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
|
-
}
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
// Type definitions for decimal.js >=7.0.0
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare namespace Decimal {
|
|
5
|
-
export type Constructor = typeof Decimal;
|
|
6
|
-
export type Instance = Decimal;
|
|
7
|
-
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
8
|
-
export type Modulo = Rounding | 9;
|
|
9
|
-
export type Value = string | number | Decimal;
|
|
10
|
-
|
|
11
|
-
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
|
12
|
-
export interface Config {
|
|
13
|
-
precision?: number;
|
|
14
|
-
rounding?: Rounding;
|
|
15
|
-
toExpNeg?: number;
|
|
16
|
-
toExpPos?: number;
|
|
17
|
-
minE?: number;
|
|
18
|
-
maxE?: number;
|
|
19
|
-
crypto?: boolean;
|
|
20
|
-
modulo?: Modulo;
|
|
21
|
-
defaults?: boolean;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare class Decimal {
|
|
26
|
-
readonly d: number[];
|
|
27
|
-
readonly e: number;
|
|
28
|
-
readonly s: number;
|
|
29
|
-
private readonly name: string;
|
|
30
|
-
|
|
31
|
-
constructor(n: Decimal.Value);
|
|
32
|
-
|
|
33
|
-
absoluteValue(): Decimal;
|
|
34
|
-
abs(): Decimal;
|
|
35
|
-
|
|
36
|
-
ceil(): Decimal;
|
|
37
|
-
|
|
38
|
-
comparedTo(n: Decimal.Value): number;
|
|
39
|
-
cmp(n: Decimal.Value): number;
|
|
40
|
-
|
|
41
|
-
cosine(): Decimal;
|
|
42
|
-
cos(): Decimal;
|
|
43
|
-
|
|
44
|
-
cubeRoot(): Decimal;
|
|
45
|
-
cbrt(): Decimal;
|
|
46
|
-
|
|
47
|
-
decimalPlaces(): number;
|
|
48
|
-
dp(): number;
|
|
49
|
-
|
|
50
|
-
dividedBy(n: Decimal.Value): Decimal;
|
|
51
|
-
div(n: Decimal.Value): Decimal;
|
|
52
|
-
|
|
53
|
-
dividedToIntegerBy(n: Decimal.Value): Decimal;
|
|
54
|
-
divToInt(n: Decimal.Value): Decimal;
|
|
55
|
-
|
|
56
|
-
equals(n: Decimal.Value): boolean;
|
|
57
|
-
eq(n: Decimal.Value): boolean;
|
|
58
|
-
|
|
59
|
-
floor(): Decimal;
|
|
60
|
-
|
|
61
|
-
greaterThan(n: Decimal.Value): boolean;
|
|
62
|
-
gt(n: Decimal.Value): boolean;
|
|
63
|
-
|
|
64
|
-
greaterThanOrEqualTo(n: Decimal.Value): boolean;
|
|
65
|
-
gte(n: Decimal.Value): boolean;
|
|
66
|
-
|
|
67
|
-
hyperbolicCosine(): Decimal;
|
|
68
|
-
cosh(): Decimal;
|
|
69
|
-
|
|
70
|
-
hyperbolicSine(): Decimal;
|
|
71
|
-
sinh(): Decimal;
|
|
72
|
-
|
|
73
|
-
hyperbolicTangent(): Decimal;
|
|
74
|
-
tanh(): Decimal;
|
|
75
|
-
|
|
76
|
-
inverseCosine(): Decimal;
|
|
77
|
-
acos(): Decimal;
|
|
78
|
-
|
|
79
|
-
inverseHyperbolicCosine(): Decimal;
|
|
80
|
-
acosh(): Decimal;
|
|
81
|
-
|
|
82
|
-
inverseHyperbolicSine(): Decimal;
|
|
83
|
-
asinh(): Decimal;
|
|
84
|
-
|
|
85
|
-
inverseHyperbolicTangent(): Decimal;
|
|
86
|
-
atanh(): Decimal;
|
|
87
|
-
|
|
88
|
-
inverseSine(): Decimal;
|
|
89
|
-
asin(): Decimal;
|
|
90
|
-
|
|
91
|
-
inverseTangent(): Decimal;
|
|
92
|
-
atan(): Decimal;
|
|
93
|
-
|
|
94
|
-
isFinite(): boolean;
|
|
95
|
-
|
|
96
|
-
isInteger(): boolean;
|
|
97
|
-
isInt(): boolean;
|
|
98
|
-
|
|
99
|
-
isNaN(): boolean;
|
|
100
|
-
|
|
101
|
-
isNegative(): boolean;
|
|
102
|
-
isNeg(): boolean;
|
|
103
|
-
|
|
104
|
-
isPositive(): boolean;
|
|
105
|
-
isPos(): boolean;
|
|
106
|
-
|
|
107
|
-
isZero(): boolean;
|
|
108
|
-
|
|
109
|
-
lessThan(n: Decimal.Value): boolean;
|
|
110
|
-
lt(n: Decimal.Value): boolean;
|
|
111
|
-
|
|
112
|
-
lessThanOrEqualTo(n: Decimal.Value): boolean;
|
|
113
|
-
lte(n: Decimal.Value): boolean;
|
|
114
|
-
|
|
115
|
-
logarithm(n?: Decimal.Value): Decimal;
|
|
116
|
-
log(n?: Decimal.Value): Decimal;
|
|
117
|
-
|
|
118
|
-
minus(n: Decimal.Value): Decimal;
|
|
119
|
-
sub(n: Decimal.Value): Decimal;
|
|
120
|
-
|
|
121
|
-
modulo(n: Decimal.Value): Decimal;
|
|
122
|
-
mod(n: Decimal.Value): Decimal;
|
|
123
|
-
|
|
124
|
-
naturalExponential(): Decimal;
|
|
125
|
-
exp(): Decimal;
|
|
126
|
-
|
|
127
|
-
naturalLogarithm(): Decimal;
|
|
128
|
-
ln(): Decimal;
|
|
129
|
-
|
|
130
|
-
negated(): Decimal;
|
|
131
|
-
neg(): Decimal;
|
|
132
|
-
|
|
133
|
-
plus(n: Decimal.Value): Decimal;
|
|
134
|
-
add(n: Decimal.Value): Decimal;
|
|
135
|
-
|
|
136
|
-
precision(includeZeros?: boolean): number;
|
|
137
|
-
sd(includeZeros?: boolean): number;
|
|
138
|
-
|
|
139
|
-
round(): Decimal;
|
|
140
|
-
|
|
141
|
-
sine() : Decimal;
|
|
142
|
-
sin() : Decimal;
|
|
143
|
-
|
|
144
|
-
squareRoot(): Decimal;
|
|
145
|
-
sqrt(): Decimal;
|
|
146
|
-
|
|
147
|
-
tangent() : Decimal;
|
|
148
|
-
tan() : Decimal;
|
|
149
|
-
|
|
150
|
-
times(n: Decimal.Value): Decimal;
|
|
151
|
-
mul(n: Decimal.Value) : Decimal;
|
|
152
|
-
|
|
153
|
-
toBinary(significantDigits?: number): string;
|
|
154
|
-
toBinary(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
155
|
-
|
|
156
|
-
toDecimalPlaces(decimalPlaces?: number): Decimal;
|
|
157
|
-
toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
|
158
|
-
toDP(decimalPlaces?: number): Decimal;
|
|
159
|
-
toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
|
160
|
-
|
|
161
|
-
toExponential(decimalPlaces?: number): string;
|
|
162
|
-
toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
|
163
|
-
|
|
164
|
-
toFixed(decimalPlaces?: number): string;
|
|
165
|
-
toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
|
166
|
-
|
|
167
|
-
toFraction(max_denominator?: Decimal.Value): Decimal[];
|
|
168
|
-
|
|
169
|
-
toHexadecimal(significantDigits?: number): string;
|
|
170
|
-
toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
171
|
-
toHex(significantDigits?: number): string;
|
|
172
|
-
toHex(significantDigits: number, rounding?: Decimal.Rounding): string;
|
|
173
|
-
|
|
174
|
-
toJSON(): string;
|
|
175
|
-
|
|
176
|
-
toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal;
|
|
177
|
-
|
|
178
|
-
toNumber(): number;
|
|
179
|
-
|
|
180
|
-
toOctal(significantDigits?: number): string;
|
|
181
|
-
toOctal(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
182
|
-
|
|
183
|
-
toPower(n: Decimal.Value): Decimal;
|
|
184
|
-
pow(n: Decimal.Value): Decimal;
|
|
185
|
-
|
|
186
|
-
toPrecision(significantDigits?: number): string;
|
|
187
|
-
toPrecision(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
188
|
-
|
|
189
|
-
toSignificantDigits(significantDigits?: number): Decimal;
|
|
190
|
-
toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
|
191
|
-
toSD(significantDigits?: number): Decimal;
|
|
192
|
-
toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
|
193
|
-
|
|
194
|
-
toString(): string;
|
|
195
|
-
|
|
196
|
-
truncated(): Decimal;
|
|
197
|
-
trunc(): Decimal;
|
|
198
|
-
|
|
199
|
-
valueOf(): string;
|
|
200
|
-
|
|
201
|
-
static abs(n: Decimal.Value): Decimal;
|
|
202
|
-
static acos(n: Decimal.Value): Decimal;
|
|
203
|
-
static acosh(n: Decimal.Value): Decimal;
|
|
204
|
-
static add(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
205
|
-
static asin(n: Decimal.Value): Decimal;
|
|
206
|
-
static asinh(n: Decimal.Value): Decimal;
|
|
207
|
-
static atan(n: Decimal.Value): Decimal;
|
|
208
|
-
static atanh(n: Decimal.Value): Decimal;
|
|
209
|
-
static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
|
|
210
|
-
static cbrt(n: Decimal.Value): Decimal;
|
|
211
|
-
static ceil(n: Decimal.Value): Decimal;
|
|
212
|
-
static clone(object?: Decimal.Config): Decimal.Constructor;
|
|
213
|
-
static config(object: Decimal.Config): Decimal.Constructor;
|
|
214
|
-
static cos(n: Decimal.Value): Decimal;
|
|
215
|
-
static cosh(n: Decimal.Value): Decimal;
|
|
216
|
-
static div(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
217
|
-
static exp(n: Decimal.Value): Decimal;
|
|
218
|
-
static floor(n: Decimal.Value): Decimal;
|
|
219
|
-
static hypot(...n: Decimal.Value[]): Decimal;
|
|
220
|
-
static isDecimal(object: any): boolean
|
|
221
|
-
static ln(n: Decimal.Value): Decimal;
|
|
222
|
-
static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
|
|
223
|
-
static log2(n: Decimal.Value): Decimal;
|
|
224
|
-
static log10(n: Decimal.Value): Decimal;
|
|
225
|
-
static max(...n: Decimal.Value[]): Decimal;
|
|
226
|
-
static min(...n: Decimal.Value[]): Decimal;
|
|
227
|
-
static mod(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
228
|
-
static mul(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
229
|
-
static noConflict(): Decimal.Constructor; // Browser only
|
|
230
|
-
static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal;
|
|
231
|
-
static random(significantDigits?: number): Decimal;
|
|
232
|
-
static round(n: Decimal.Value): Decimal;
|
|
233
|
-
static set(object: Decimal.Config): Decimal.Constructor;
|
|
234
|
-
static sign(n: Decimal.Value): Decimal;
|
|
235
|
-
static sin(n: Decimal.Value): Decimal;
|
|
236
|
-
static sinh(n: Decimal.Value): Decimal;
|
|
237
|
-
static sqrt(n: Decimal.Value): Decimal;
|
|
238
|
-
static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
239
|
-
static tan(n: Decimal.Value): Decimal;
|
|
240
|
-
static tanh(n: Decimal.Value): Decimal;
|
|
241
|
-
static trunc(n: Decimal.Value): Decimal;
|
|
242
|
-
|
|
243
|
-
static readonly default?: Decimal.Constructor;
|
|
244
|
-
static readonly Decimal?: Decimal.Constructor;
|
|
245
|
-
|
|
246
|
-
static readonly precision: number;
|
|
247
|
-
static readonly rounding: Decimal.Rounding;
|
|
248
|
-
static readonly toExpNeg: number;
|
|
249
|
-
static readonly toExpPos: number;
|
|
250
|
-
static readonly minE: number;
|
|
251
|
-
static readonly maxE: number;
|
|
252
|
-
static readonly crypto: boolean;
|
|
253
|
-
static readonly modulo: Decimal.Modulo;
|
|
254
|
-
|
|
255
|
-
static readonly ROUND_UP: 0;
|
|
256
|
-
static readonly ROUND_DOWN: 1;
|
|
257
|
-
static readonly ROUND_CEIL: 2;
|
|
258
|
-
static readonly ROUND_FLOOR: 3;
|
|
259
|
-
static readonly ROUND_HALF_UP: 4;
|
|
260
|
-
static readonly ROUND_HALF_DOWN: 5;
|
|
261
|
-
static readonly ROUND_HALF_EVEN: 6;
|
|
262
|
-
static readonly ROUND_HALF_CEIL: 7;
|
|
263
|
-
static readonly ROUND_HALF_FLOOR: 8;
|
|
264
|
-
static readonly EUCLID: 9;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
export { Decimal };
|