Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Molstar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Malý
Molstar
Commits
2d72a074
Commit
2d72a074
authored
6 years ago
by
David Sehnal
Browse files
Options
Downloads
Patches
Plain Diff
updated to typescript 3.0
parent
5dc0a5e5
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
package-lock.json
+0
-0
0 additions, 0 deletions
package-lock.json
package.json
+14
-14
14 additions, 14 deletions
package.json
src/mol-util/download.ts
+1
-1
1 addition, 1 deletion
src/mol-util/download.ts
src/mol-util/read.ts
+1
-1
1 addition, 1 deletion
src/mol-util/read.ts
with
16 additions
and
16 deletions
package-lock.json
-30.03 KiB (-7%)
View file @
2d72a074
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
This diff is collapsed.
Click to expand it.
package.json
+
14
−
14
View file @
2d72a074
...
...
@@ -70,10 +70,10 @@
"
@types/benchmark
"
:
"
^1.0.31
"
,
"
@types/compression
"
:
"
0.0.36
"
,
"
@types/express
"
:
"
^4.16.0
"
,
"
@types/jest
"
:
"
^23.
1.5
"
,
"
@types/node
"
:
"
~
10.5.
2
"
,
"
@types/node-fetch
"
:
"
^2.1.
1
"
,
"
@types/react
"
:
"
^16.4.
6
"
,
"
@types/jest
"
:
"
^23.
3.1
"
,
"
@types/node
"
:
"
^
10.5.
4
"
,
"
@types/node-fetch
"
:
"
^2.1.
2
"
,
"
@types/react
"
:
"
^16.4.
7
"
,
"
@types/react-dom
"
:
"
^16.0.6
"
,
"
benchmark
"
:
"
^2.1.4
"
,
"
copyfiles
"
:
"
^2.0.0
"
,
...
...
@@ -83,7 +83,7 @@
"
file-loader
"
:
"
^1.1.11
"
,
"
glslify-import
"
:
"
^3.1.0
"
,
"
glslify-loader
"
:
"
^1.0.2
"
,
"
jest
"
:
"
^23.4.
0
"
,
"
jest
"
:
"
^23.4.
2
"
,
"
jest-raw-loader
"
:
"
^1.0.1
"
,
"
mini-css-extract-plugin
"
:
"
^0.4.1
"
,
"
node-sass
"
:
"
^4.9.2
"
,
...
...
@@ -91,22 +91,22 @@
"
resolve-url-loader
"
:
"
^2.3.0
"
,
"
sass-loader
"
:
"
^7.0.3
"
,
"
style-loader
"
:
"
^0.21.0
"
,
"
ts-jest
"
:
"
^23.0.
0
"
,
"
tslint
"
:
"
^5.1
0
.0
"
,
"
typescript
"
:
"
^
2.9.2
"
,
"
uglify-js
"
:
"
^3.4.
4
"
,
"
ts-jest
"
:
"
^23.0.
1
"
,
"
tslint
"
:
"
^5.1
1
.0
"
,
"
typescript
"
:
"
^
3.0.0
"
,
"
uglify-js
"
:
"
^3.4.
6
"
,
"
util.promisify
"
:
"
^1.0.0
"
,
"
webpack
"
:
"
^4.16.
0
"
,
"
webpack-cli
"
:
"
^3.
0.8
"
"
webpack
"
:
"
^4.16.
3
"
,
"
webpack-cli
"
:
"
^3.
1.0
"
},
"dependencies"
:
{
"
argparse
"
:
"
^1.0.10
"
,
"
compression
"
:
"
^1.7.
2
"
,
"
compression
"
:
"
^1.7.
3
"
,
"
express
"
:
"
^4.16.3
"
,
"
immutable
"
:
"
^4.0.0-rc.9
"
,
"
node-fetch
"
:
"
^2.
1.2
"
,
"
node-fetch
"
:
"
^2.
2.0
"
,
"
react
"
:
"
^16.4.1
"
,
"
react-dom
"
:
"
^16.4.1
"
,
"
rxjs
"
:
"
^6.2.
1
"
"
rxjs
"
:
"
^6.2.
2
"
}
}
This diff is collapsed.
Click to expand it.
src/mol-util/download.ts
+
1
−
1
View file @
2d72a074
...
...
@@ -33,7 +33,7 @@ export function download (data: Blob|string, downloadName = 'download') {
if
(
data
instanceof
Blob
)
{
// no downloading of blob urls in Safari
const
reader
=
new
FileReader
()
reader
.
onloadend
=
()
=>
open
(
reader
.
result
)
reader
.
onloadend
=
()
=>
open
(
reader
.
result
as
string
)
reader
.
readAsDataURL
(
data
)
}
else
{
open
(
data
)
...
...
This diff is collapsed.
Click to expand it.
src/mol-util/read.ts
+
1
−
1
View file @
2d72a074
...
...
@@ -12,7 +12,7 @@ export const readFileAs = (file: File, isBinary = false) => {
reject
(
new
DOMException
(
'
Error parsing file.
'
))
}
fileReader
.
onload
=
()
=>
{
resolve
(
isBinary
?
new
Uint8Array
(
fileReader
.
result
)
:
fileReader
.
result
)
resolve
(
isBinary
?
new
Uint8Array
(
fileReader
.
result
as
ArrayBuffer
)
:
fileReader
.
result
as
string
)
}
if
(
isBinary
)
{
fileReader
.
readAsArrayBuffer
(
file
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment