]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: remove unused dep
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 12 Feb 2020 11:16:47 +0000 (12:16 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 12 Feb 2020 11:16:47 +0000 (12:16 +0100)
jest.config.js
package.json
src/consola.ts [deleted file]
src/history/html5.ts
src/history/memory.ts
yarn.lock

index 95862540bcdee87e693fa0cfe9639dd489538847..63ee84ff53a5e739ef17ae04d4c44b168a594288 100644 (file)
@@ -6,12 +6,7 @@ module.exports = {
   coverageDirectory: 'coverage',
   coverageReporters: ['html', 'lcov', 'text'],
   collectCoverageFrom: ['src/**/*.ts'],
-  coveragePathIgnorePatterns: [
-    '/node_modules/',
-    'src/index.ts',
-    'src/entries',
-    'src/consola.ts',
-  ],
+  coveragePathIgnorePatterns: ['/node_modules/', 'src/index.ts', 'src/entries'],
   testMatch: ['<rootDir>/__tests__/**/*.spec.ts?(x)'],
   watchPathIgnorePatterns: ['<rootDir>/node_modules'],
   testEnvironment: 'node',
index 7ccc39d5c6a4fde20dc2fbfdfc84158a87097f62..ca678e2456b9a1ba99d4076e85257e657867f730 100644 (file)
@@ -38,7 +38,6 @@
     "browserstack-local": "^1.4.5",
     "chromedriver": "^80.0.0",
     "codecov": "^3.6.5",
-    "consola": "^2.11.3",
     "css-loader": "^3.4.2",
     "dotenv": "^8.2.0",
     "faked-promise": "^2.2.2",
diff --git a/src/consola.ts b/src/consola.ts
deleted file mode 100644 (file)
index 9c884a8..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// Own simplified consola version
-// Consola doesn't work on IE9
-
-type LogCommand = 'info' | 'log' | 'error' | 'warn'
-const logs: LogCommand[] = ['info', 'log', 'error', 'warn']
-
-export default {
-  tag: '',
-  withTag(tag: string) {
-    const cs = Object.create(this)
-    cs.tag = tag
-    return cs
-  },
-
-  info(...args: any[]) {
-    if (this.tag) console.info(`[${this.tag}]`, ...args)
-    else console.info(...args)
-  },
-
-  mockTypes(spyCreator: () => any): void {
-    for (const log of logs) {
-      // @ts-ignore
-      this[log] = spyCreator()
-    }
-  },
-}
index 247ba20c9efe812b69c408b90c04308ff04f3f6c..b3a885620b63a1503f02c4fe2b4b42c9a0c8820e 100644 (file)
@@ -11,7 +11,6 @@ import {
   ValueContainer,
 } from './common'
 import { computeScrollPosition, ScrollToPosition } from '../utils/scroll'
-// import consola from 'consola'
 
 const cs = console
 
index ea8eefd917d5f39cac9e508407210d41cb02949b..3deb11195961edf3816f52bd37a96f38d26bce46 100644 (file)
@@ -1,4 +1,3 @@
-// import consola from 'consola'
 import {
   RouterHistory,
   NavigationCallback,
@@ -11,9 +10,6 @@ import {
   NavigationInformation,
 } from './common'
 
-// const cs = console
-// const cs = consola.withTag('abstract')
-
 /**
  * Creates a in-memory based history. The main purporse of this history is to handle SSR. It starts in a special location that is nowhere.
  * It's up to the user to replace that location with the starter location.
index f5fb7a08c04e564275e271e246ffaa4ab24d9c6b..285e5acd82f5eda139989e4580ca6397190aa76c 100644 (file)
--- a/yarn.lock
+++ b/yarn.lock
@@ -1893,11 +1893,6 @@ connect-history-api-fallback@^1.6.0:
   resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz#8b32089359308d111115d81cad3fceab888f97bc"
   integrity sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==
 
-consola@^2.11.3:
-  version "2.11.3"
-  resolved "https://registry.yarnpkg.com/consola/-/consola-2.11.3.tgz#f7315836224c143ac5094b47fd4c816c2cd1560e"
-  integrity sha512-aoW0YIIAmeftGR8GSpw6CGQluNdkWMWh3yEFjH/hmynTYnMtibXszii3lxCXmk8YxJtI3FAK5aTiquA5VH68Gw==
-
 console-browserify@^1.1.0:
   version "1.2.0"
   resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336"