Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 6c17bf2

Browse files
authored
Merge pull request #300 from exoego/scala-upgrade
Scala upgrade
2 parents 2a38924 + 8c376e8 commit 6c17bf2

File tree

23 files changed

+8
-28
lines changed

23 files changed

+8
-28
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ dist: xenial
22
language: scala
33

44
scala:
5-
- 2.12.11
6-
- 2.13.2
5+
- 2.12.12
6+
- 2.13.3
77

88
jdk:
99
- openjdk11

app/nodejs-v10/src/test/scala/io/scalajs/nodejs/child_process/ChildProcessTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ChildProcessTest extends AsyncFunSpec {
3232
"cat ./package.json | wc -l",
3333
callback = (error: Error, stdout: Output, stderr: Output) => {
3434
if (isDefined(error)) {
35-
promise.failure(error.toException)
35+
promise.failure(error.toException())
3636
} else {
3737
promise.success((stdout, stderr))
3838
}
@@ -52,7 +52,7 @@ class ChildProcessTest extends AsyncFunSpec {
5252
js.Array("-l"),
5353
callback = (error: Error, stdout: Output, stderr: Output) => {
5454
if (isDefined(error)) {
55-
promise.failure(error.toException)
55+
promise.failure(error.toException())
5656
} else {
5757
promise.success((stdout, stderr))
5858
}

app/nodejs-v10/src/test/scala/io/scalajs/nodejs/fs/FsTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class FsTest extends AsyncFunSpec {
3333
"Hello",
3434
error => {
3535
if (isDefined(error)) {
36-
promise.failure(error.toException)
36+
promise.failure(error.toException())
3737
}
3838
}
3939
)

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/Assert.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package io.scalajs.nodejs
22

33
import scala.scalajs.js
44
import scala.scalajs.js.annotation.JSImport
5-
import scala.scalajs.js.|
65

76
/**
87
* The assert module provides a simple set of assertion tests that can be used to test invariants. The module is

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/StringDecoder.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import io.scalajs.nodejs.events.IEventEmitter
55
import scala.scalajs.js
66
import scala.scalajs.js.annotation.JSImport
77
import scala.scalajs.js.typedarray.{DataView, TypedArray}
8-
import scala.scalajs.js.|
98

109
/**
1110
* To use this module, do require('string_decoder'). StringDecoder decodes a buffer to a string. It is a simple

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/buffer/Buffer.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import com.thoughtworks.enableIf
55
import scala.scalajs.js
66
import scala.scalajs.js.annotation.{JSBracketAccess, JSGlobal, JSImport}
77
import scala.scalajs.js.typedarray.{ArrayBuffer, DataView, TypedArray, Uint8Array}
8-
import scala.scalajs.js.|
98

109
/**
1110
* @see [[https://nodejs.org/api/buffer.html]]

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/crypto/Certificate.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import io.scalajs.nodejs.buffer.Buffer
44

55
import scala.scalajs.js
66
import scala.scalajs.js.annotation.JSImport
7-
import scala.scalajs.js.|
87

98
@js.native
109
@JSImport("crypto", "Certificate")

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/crypto/Sign.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import io.scalajs.nodejs.buffer.Buffer
55
import io.scalajs.nodejs.stream.Writable
66

77
import scala.scalajs.js
8-
import scala.scalajs.js.|
98

109
/**
1110
* The Sign Class is a utility for generating signatures. It can be used in one of two ways:

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/crypto/Verify.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import io.scalajs.nodejs.buffer.Buffer
55
import io.scalajs.nodejs.stream.Writable
66

77
import scala.scalajs.js
8-
import scala.scalajs.js.|
98

109
/**
1110
* The Verify class is a utility for verifying signatures. It can be used in one of two ways:

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/dns/DNS.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import com.thoughtworks.enableIf
44

55
import scala.scalajs.js
66
import scala.scalajs.js.annotation.JSImport
7-
import scala.scalajs.js.|
87

98
/**
109
* The dns module contains functions belonging to two different categories:

0 commit comments

Comments
 (0)