chore(build): avoid build warnings

This commit is contained in:
Josep M Sobrepere 2020-07-11 01:21:51 +02:00
parent 258582be9a
commit e64b496e7c
14 changed files with 31 additions and 27 deletions

18
package-lock.json generated
View File

@ -1603,9 +1603,9 @@
}
},
"@testing-library/react": {
"version": "10.4.4",
"resolved": "https://registry.npmjs.org/@testing-library/react/-/react-10.4.4.tgz",
"integrity": "sha512-SKDQ2jBdg9UQQYQragkvXOzNp4hnCdOvXyZ52rg+OXiiumVxkAutdvvRzBF4PrbvMQ27Z6gx0GVo2YQ1Mcip8g==",
"version": "10.4.5",
"resolved": "https://registry.npmjs.org/@testing-library/react/-/react-10.4.5.tgz",
"integrity": "sha512-M5A0W4VphBiEm4vgnq7vHC+/e4Bp/3iIOAWap1FtIiA+Zom6BtXpY3RSTOqc8bZsCcu9gFBZ/lxaiMW6uJddWg==",
"dev": true,
"requires": {
"@babel/runtime": "^7.10.3",
@ -1886,9 +1886,9 @@
"dev": true
},
"@types/react": {
"version": "16.9.41",
"resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.41.tgz",
"integrity": "sha512-6cFei7F7L4wwuM+IND/Q2cV1koQUvJ8iSV+Gwn0c3kvABZ691g7sp3hfEQHOUBJtccl1gPi+EyNjMIl9nGA0ug==",
"version": "16.9.42",
"resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.42.tgz",
"integrity": "sha512-iGy6HwfVfotqJ+PfRZ4eqPHPP5NdPZgQlr0lTs8EfkODRBV9cYy8QMKcC9qPCe1JrESC1Im6SrCFR6tQgg74ag==",
"dev": true,
"requires": {
"@types/prop-types": "*",
@ -3349,9 +3349,9 @@
}
},
"csstype": {
"version": "2.6.10",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.10.tgz",
"integrity": "sha512-D34BqZU4cIlMCY93rZHbrq9pjTAQJ3U8S8rfBqjwHxkGPThWFjzZDQpgMJY0QViLxth6ZKYiwFBo14RdN44U/w==",
"version": "2.6.11",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.11.tgz",
"integrity": "sha512-l8YyEC9NBkSm783PFTvh0FmJy7s5pFKrDp49ZL7zBGX3fWkO+N4EEyan1qqp8cwPLDcD0OSdyY6hAMoxp34JFw==",
"dev": true
},
"damerau-levenshtein": {

View File

@ -45,10 +45,10 @@
"author": "Josep M Sobrepere",
"module": "dist/react-rxjs.esm.js",
"devDependencies": {
"@testing-library/react": "^10.4.4",
"@testing-library/react": "^10.4.5",
"@testing-library/react-hooks": "^3.3.0",
"@types/jest": "^26.0.4",
"@types/react": "^16.9.41",
"@types/react": "^16.9.42",
"@types/react-dom": "^16.9.8",
"bundlesize": "^0.18.0",
"codecov": "^3.7.0",

View File

@ -2,7 +2,7 @@ import React from "react"
import { render } from "@testing-library/react"
import { defer, Subject } from "rxjs"
import { share, finalize } from "rxjs/operators"
import { Subscribe } from "../src"
import { Subscribe } from "./"
const wait = (ms: number) => new Promise(res => setTimeout(res, ms))

View File

@ -1,5 +1,5 @@
import React from "react"
import { useSubscribe } from "./"
import { useSubscribe } from "./useSubscribe"
import { Observable } from "rxjs"
/**

View File

@ -1,5 +1,3 @@
import { connectFactoryObservable } from "../src"
import { TestErrorBoundary } from "../test/TestErrorBoundary"
import {
from,
of,
@ -20,6 +18,8 @@ import {
screen,
render,
} from "@testing-library/react"
import { connectFactoryObservable } from "./"
import { TestErrorBoundary } from "./test-helpers/TestErrorBoundary"
const wait = (ms: number) => new Promise(res => setTimeout(res, ms))

View File

@ -16,8 +16,8 @@ import {
Observable,
} from "rxjs"
import { delay, scan, startWith, map, switchMap } from "rxjs/operators"
import { connectObservable, SUSPENSE } from "../src"
import { TestErrorBoundary } from "../test/TestErrorBoundary"
import { connectObservable, SUSPENSE } from "./"
import { TestErrorBoundary } from "./test-helpers/TestErrorBoundary"
const wait = (ms: number) => new Promise(res => setTimeout(res, ms))

View File

@ -1,6 +1,6 @@
import { shareLatest } from "../../src"
import { TestScheduler } from "rxjs/testing"
import { from } from "rxjs"
import { shareLatest } from "../"
const scheduler = () =>
new TestScheduler((actual, expected) => {

View File

@ -1,5 +1,5 @@
import { TestScheduler } from "rxjs/testing"
import { suspend, SUSPENSE } from "../../src"
import { suspend, SUSPENSE } from "../"
const scheduler = () =>
new TestScheduler((actual, expected) => {

View File

@ -1,5 +1,5 @@
import { TestScheduler } from "rxjs/testing"
import { suspended, SUSPENSE } from "../../src"
import { suspended, SUSPENSE } from "../"
const scheduler = () =>
new TestScheduler((actual, expected) => {

View File

@ -1,5 +1,5 @@
import { TestScheduler } from "rxjs/testing"
import { switchMapSuspended, SUSPENSE } from "../../src"
import { switchMapSuspended, SUSPENSE } from "../"
const scheduler = () =>
new TestScheduler((actual, expected) => {

View File

@ -1,6 +1,6 @@
import { subjectFactory } from "../src"
import { scan } from "rxjs/operators"
import { EMPTY_VALUE } from "../src/internal/empty-value"
import { EMPTY_VALUE } from "./internal/empty-value"
import { subjectFactory } from "./"
describe("createSubjectsFactory", () => {
test("it releasess the subject when is no longer needed", () => {

View File

@ -1,7 +1,7 @@
import { defer, Subject } from "rxjs"
import { share, finalize } from "rxjs/operators"
import { useSubscribe } from "../src"
import { renderHook } from "@testing-library/react-hooks"
import { useSubscribe } from "./"
const wait = (ms: number) => new Promise(res => setTimeout(res, ms))

View File

@ -7,7 +7,7 @@
"importHelpers": true,
"declaration": true,
"sourceMap": true,
"rootDirs": ["./src", "./test"],
"rootDir": "./src",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
@ -20,11 +20,15 @@
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"baseUrl": "./",
"baseUrl": "./src",
"paths": {
"*": ["src/*", "node_modules/*"]
},
"jsx": "react",
"esModuleInterop": true
}
},
"exclude": [
"**/*.test.ts",
"./src/test-helpers"
]
}