@honeybadger-io/vue 3.2.1 → 4.3.1

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/README.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # Honeybadger Vue.js Integration
2
- [![Build Status](https://github.com/honeybadger-io/honeybadger-vue/actions/workflows/nodejs.yml/badge.svg)](https://github.com/honeybadger-io/honeybadger-vue/actions/workflows/nodejs.yml)
2
+ ![Node CI](https://github.com/honeybadger-io/honeybadger-js/workflows/Node%20CI/badge.svg)
3
3
  [![npm version](https://badge.fury.io/js/%40honeybadger-io%2Fvue.svg)](https://badge.fury.io/js/%40honeybadger-io%2Fvue)
4
- > [Vue.js integration for Honeybadger.io](https://www.honeybadger.io/for/javascript/?utm_source=github&utm_medium=readme&utm_campaign=vue&utm_content=Vue.js+integration+for+Honeybadger.io)
4
+ [![npm dm](https://img.shields.io/npm/dm/@honeybadger-io/vue)](https://www.npmjs.com/package/@honeybadger-io/vue)
5
+ [![npm dt](https://img.shields.io/npm/dt/@honeybadger-io/vue)](https://www.npmjs.com/package/@honeybadger-io/vue)
5
6
 
6
- **Note:** Since v3.2 release of this project, both Vue.js v2.x and v3.x are supported!
7
+ [Vue.js integration for Honeybadger.io](https://www.honeybadger.io/for/javascript/?utm_source=github&utm_medium=readme&utm_campaign=vue&utm_content=Vue.js+integration+for+Honeybadger.io)
8
+
9
+ > **Note:** Since v3.2 release of this project, both Vue.js v2.x and v3.x are supported!
7
10
 
8
11
  ## Documentation and Support
9
12
 
@@ -36,20 +39,7 @@ variables.
36
39
  This project is built using a webpack-based Vue template. It's possible
37
40
  your own build environment may be just different enough to require some
38
41
  adjustments. If you find that our artifacts don't quite meet your needs,
39
- please [file an issue on GitHub](https://github.com/honeybadger-io/honeybadger-vue/issues).
40
-
41
- ## Changelog
42
-
43
- See https://github.com/honeybadger-io/honeybadger-vue/blob/master/CHANGELOG.md
44
- Changelog is automatically generated with [our release automation process](#release-automation).
45
-
46
- ## Contributing
47
-
48
- 1. Fork it.
49
- 2. Create a topic branch `git checkout -b my_branch`
50
- 3. Commit your changes `git commit -am "Boom"`
51
- 3. Push to your branch `git push origin my_branch`
52
- 4. Send a [pull request](https://github.com/honeybadger-io/honeybadger-vue/pulls)
42
+ please [file an issue on GitHub](https://github.com/honeybadger-io/honeybadger-js/issues).
53
43
 
54
44
  ## Development
55
45
 
@@ -75,35 +65,6 @@ HONEYBADGER_API_KEY=yourkey npm run test:all
75
65
 
76
66
  For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
77
67
 
78
- ## Releasing
79
-
80
- Releasing is done with two commands: `npm version` and `npm publish`. **Both
81
- commands should be used with care.**
82
-
83
- To perform a release:
84
-
85
- 1. With a clean working tree, use `npm version [new version]` to bump the version, commit the
86
- changes, tag the release, and push to GitHub. See `npm help version` for
87
- documentation. Make sure to checkout the correct branch (i.e. if you are planning to release a version with other than `latest` dist tag).
88
-
89
-
90
- 2. To publish the release, use `npm publish`. See `npm help publish` for
91
- documentation. This command will publish the version with the `latest` tag. To publish with a different tag, i.e. `next`, use `npm publish --tag next`.
92
-
93
-
94
- 3. Verify the published version in Versions tab from [here](https://www.npmjs.com/package/@honeybadger-io/vue).
95
-
96
- ### Release Automation
97
-
98
- We use [Ship.js](https://github.com/algolia/shipjs) to automate releasing.
99
-
100
- Ship.js creates a PR once per week when unreleased changes are present. You can also trigger a release PR by saying "@shipjs prepare" in any issue or pull request comment on GitHub.
101
-
102
- #### Troubleshooting a failed Ship.js release
103
-
104
- If a ship.js release fails, you need to revert the release commit and delete the release branch (e.g `releases/v1.1.0`)
105
- Then, you can debug the issue by simulating the release process locally (`npm run release -- --dry-run --yes --no-browse`).
106
-
107
- ### License
68
+ ## License
108
69
 
109
- *honeybadger-vue* is MIT licensed. See the [LICENSE](https://raw.github.com/honeybadger-io/honeybadger-vue/master/LICENSE) file in this repository for details.
70
+ This package is MIT licensed. See the [MIT-LICENSE](./MIT-LICENSE) file in this folder for details.
@@ -1 +1 @@
1
- {"version":3,"file":"honeybadger-vue.min.js","sources":["../../src/vue-debug.js","../../src/error-logging.js","../../src/index.js"],"sourcesContent":["/**\n * This was taken from https://github.com/vuejs/vue/blob/master/src/core/util/debug.js.\n * The method generateStackTrace is used to log errors the same way as Vue logs them when errorHandler is not set.\n */\n\nconst classifyRE = /(?:^|[-_])(\\w)/g\nconst classify = str => str\n .replace(classifyRE, c => c.toUpperCase())\n .replace(/[-_]/g, '')\n\nconst formatComponentName = (vm, includeFile) => {\n if (vm.$root === vm) {\n return '<Root>'\n }\n const options = typeof vm === 'function' && vm.cid != null\n ? vm.options\n : vm._isVue\n ? vm.$options || vm.constructor.options\n : vm || {}\n let name = options.name || options._componentTag\n const file = options.__file\n if (!name && file) {\n const match = file.match(/([^/\\\\]+)\\.vue$/)\n name = match && match[1]\n }\n\n return (\n (name ? `<${classify(name)}>` : '<Anonymous>') +\n (file && includeFile !== false ? ` at ${file}` : '')\n )\n}\n\nconst repeat = (str, n) => {\n let res = ''\n while (n) {\n if (n % 2 === 1) res += str\n if (n > 1) str += str\n n >>= 1\n }\n return res\n}\n\nexport const generateComponentTrace = vm => {\n if (vm._isVue && vm.$parent) {\n const tree = []\n let currentRecursiveSequence = 0\n while (vm) {\n if (tree.length > 0) {\n const last = tree[tree.length - 1]\n if (last.constructor === vm.constructor) {\n currentRecursiveSequence++\n vm = vm.$parent\n continue\n } else if (currentRecursiveSequence > 0) {\n tree[tree.length - 1] = [last, currentRecursiveSequence]\n currentRecursiveSequence = 0\n }\n }\n tree.push(vm)\n vm = vm.$parent\n }\n return '\\n\\nfound in\\n\\n' + tree\n .map((vm, i) => `${\n i === 0 ? '---> ' : repeat(' ', 5 + i * 2)\n }${\n Array.isArray(vm)\n ? `${formatComponentName(vm[0])}... (${vm[1]} recursive calls)`\n : formatComponentName(vm)\n }`)\n .join('\\n')\n } else {\n return `\\n\\n(found in ${formatComponentName(vm)})`\n }\n}\n","import { generateComponentTrace } from './vue-debug'\n\nexport function logError (app, error, vm, info) {\n const message = `Error in ${info}: \"${error && error.toString()}\"`\n\n const trace = vm ? generateComponentTrace(vm) : ''\n if (app.config.warnHandler) {\n app.config.warnHandler.call(null, message, vm, trace)\n } else {\n console.error(`[Vue warn]: ${message}${trace}`)\n }\n}\n","import Honeybadger from '@honeybadger-io/js'\nimport { logError } from './error-logging'\n\nfunction shouldLogError (app, options) {\n if (app.config.warnHandler) {\n return true\n }\n\n const hasConsole = typeof console !== 'undefined'\n const hasProcess = typeof process !== 'undefined'\n const isDebug = options.debug || (hasProcess && process.env.NODE_ENV !== 'production')\n return hasConsole && isDebug\n}\n\nfunction extractContext (vm) {\n const options = vm.$options || {}\n const name = options.name || options._componentTag\n const file = options.__file\n const parentName = vm.$parent && vm.$parent.$options ? vm.$parent.$options.name : undefined\n\n // Vue2 - $options.propsData\n // Vue3 - $props\n const props = options.propsData || vm.$props\n\n return {\n isRoot: vm.$root === vm,\n name: name,\n props,\n parentName: parentName,\n file: file\n }\n}\n\nfunction install(vue, options) {\n if (options.debug) {\n console.log(`Honeybadger configured with ${options.apiKey}`)\n }\n const honeybadger = Honeybadger.configure(options)\n vue.$honeybadger = honeybadger\n\n // vue 2 support -> make available for all components\n if (vue.prototype) {\n vue.prototype.$honeybadger = honeybadger\n }\n\n if (vue.config && vue.config.globalProperties) {\n // vue 3 support -> make available for all components\n vue.config.globalProperties.$honeybadger = honeybadger\n }\n const chainedErrorHandler = vue.config.errorHandler\n vue.config.errorHandler = (error, vm, info) => {\n const metadata = { context: { vm: extractContext(vm), info: info } }\n honeybadger.notify(error, metadata)\n if (typeof chainedErrorHandler === 'function') {\n chainedErrorHandler.call(vue, error, vm, info)\n }\n\n if (shouldLogError(vue, options)) {\n logError(vue, error, vm, info)\n }\n }\n}\n\nexport default {\n install\n}\n"],"names":["classifyRE","formatComponentName","vm","includeFile","$root","const","options","cid","_isVue","$options","constructor","name","_componentTag","file","__file","match","replace","c","toUpperCase","logError","app","error","info","message","toString","trace","$parent","tree","currentRecursiveSequence","length","last","push","map","i","str","n","let","res","repeat","Array","isArray","join","generateComponentTrace","config","warnHandler","call","console","extractContext","parentName","undefined","props","propsData","$props","isRoot","index","install","vue","debug","log","honeybadger","Honeybadger","configure","$honeybadger","prototype","globalProperties","chainedErrorHandler","errorHandler","metadata","context","notify","hasConsole","hasProcess","process","isDebug","env","NODE_ENV","shouldLogError"],"mappings":"iIAKMA,EAAa,kBAKbC,EAAmB,SAAIC,EAAIC,GAC/B,GAAID,EAAGE,QAAUF,EACf,MAAO,SAETG,IAAMC,EAAwB,mBAAPJ,GAA+B,MAAVA,EAAGK,IAC3CL,EAAGI,QACHJ,EAAGM,OACDN,EAAGO,UAAYP,EAAGQ,YAAYJ,QAC9BJ,GAAM,GACRS,EAAOL,EAAQK,MAAQL,EAAQM,cAC7BC,EAAOP,EAAQQ,OACrB,IAAKH,GAAQE,EAAM,CACjBR,IAAMU,EAAQF,EAAKE,MAAM,mBACzBJ,EAAOI,GAASA,EAAM,GAGxB,OACGJ,EAAW,KAASA,EApBtBK,QAAQhB,GAAY,SAAAiB,UAAKA,EAAEC,iBAC3BF,QAAQ,QAAS,IAmBU,KAAM,gBAC/BH,IAAwB,IAAhBV,EAA+B,OAAAU,EAAS,KC1B9C,SAASM,EAAUC,EAAKC,EAAOnB,EAAIoB,GACxCjB,IAAMkB,EAAU,YAAYD,EAAU,OAAAD,GAASA,EAAMG,YAAa,IAE5DC,EAAQvB,EDqCmB,SAAGA,GACpC,GAAIA,EAAGM,QAAUN,EAAGwB,QAAS,CAG3B,IAFArB,IAAMsB,EAAO,GACTC,EAA2B,EACxB1B,GAAI,CACT,GAAIyB,EAAKE,OAAS,EAAG,CACnBxB,IAAMyB,EAAOH,EAAKA,EAAKE,OAAS,GAChC,GAAIC,EAAKpB,cAAgBR,EAAGQ,YAAa,CACvCkB,IACA1B,EAAKA,EAAGwB,QACR,SACSE,EAA2B,IACpCD,EAAKA,EA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mBAE3BR,EAAIb,OAAOqB,iBAAiBF,aAAeH,GAE7CtD,IAAM4D,EAAsBT,EAAIb,OAAOuB,aACvCV,EAAIb,OAAOuB,aAAY,SAAI7C,EAAOnB,EAAIoB,GACpCjB,IAAM8D,EAAW,CAAEC,QAAS,CAAElE,GAAI6C,EAAe7C,GAAKoB,KAAMA,IAC5DqC,EAAYU,OAAOhD,EAAO8C,GACS,mBAAxBF,GACTA,EAAoBpB,KAAKW,EAAKnC,EAAOnB,EAAIoB,GAnD/C,SAAyBF,EAAKd,GAC5B,GAAIc,EAAIuB,OAAOC,YACb,OAAO,EAGTvC,IAAMiE,EAAgC,oBAAZxB,QACpByB,EAAgC,oBAAZC,QACpBC,EAAUnE,EAAQmD,OAAUc,GAAuC,eAAzBC,QAAQE,IAAIC,SAC5D,OAAOL,GAAcG,EA8CfG,CAAepB,EAAKlD,IACtBa,EAASqC,EAAKnC,EAAOnB,EAAIoB"}
1
+ {"version":3,"file":"honeybadger-vue.min.js","sources":["../../src/vue-debug.js","../../src/error-logging.js","../../src/index.js"],"sourcesContent":["/**\n * This was taken from https://github.com/vuejs/vue/blob/master/src/core/util/debug.js.\n * The method generateStackTrace is used to log errors the same way as Vue logs them when errorHandler is not set.\n */\n\nconst classifyRE = /(?:^|[-_])(\\w)/g\nconst classify = str => str\n .replace(classifyRE, c => c.toUpperCase())\n .replace(/[-_]/g, '')\n\nconst formatComponentName = (vm, includeFile) => {\n if (vm.$root === vm) {\n return '<Root>'\n }\n const options = typeof vm === 'function' && vm.cid != null\n ? vm.options\n : vm._isVue\n ? vm.$options || vm.constructor.options\n : vm || {}\n let name = options.name || options._componentTag\n const file = options.__file\n if (!name && file) {\n const match = file.match(/([^/\\\\]+)\\.vue$/)\n name = match && match[1]\n }\n\n return (\n (name ? `<${classify(name)}>` : '<Anonymous>') +\n (file && includeFile !== false ? ` at ${file}` : '')\n )\n}\n\nconst repeat = (str, n) => {\n let res = ''\n while (n) {\n if (n % 2 === 1) res += str\n if (n > 1) str += str\n n >>= 1\n }\n return res\n}\n\nexport const generateComponentTrace = vm => {\n if (vm._isVue && vm.$parent) {\n const tree = []\n let currentRecursiveSequence = 0\n while (vm) {\n if (tree.length > 0) {\n const last = tree[tree.length - 1]\n if (last.constructor === vm.constructor) {\n currentRecursiveSequence++\n vm = vm.$parent\n continue\n } else if (currentRecursiveSequence > 0) {\n tree[tree.length - 1] = [last, currentRecursiveSequence]\n currentRecursiveSequence = 0\n }\n }\n tree.push(vm)\n vm = vm.$parent\n }\n return '\\n\\nfound in\\n\\n' + tree\n .map((vm, i) => `${\n i === 0 ? '---> ' : repeat(' ', 5 + i * 2)\n }${\n Array.isArray(vm)\n ? `${formatComponentName(vm[0])}... (${vm[1]} recursive calls)`\n : formatComponentName(vm)\n }`)\n .join('\\n')\n } else {\n return `\\n\\n(found in ${formatComponentName(vm)})`\n }\n}\n","import { generateComponentTrace } from './vue-debug'\n\nexport function logError (app, error, vm, info) {\n const message = `Error in ${info}: \"${error && error.toString()}\"`\n\n const trace = vm ? generateComponentTrace(vm) : ''\n if (app.config.warnHandler) {\n app.config.warnHandler.call(null, message, vm, trace)\n } else {\n console.error(`[Vue warn]: ${message}${trace}`)\n }\n}\n","import Honeybadger from '@honeybadger-io/js'\nimport { logError } from './error-logging'\n\nfunction shouldLogError (app, options) {\n if (app.config.warnHandler) {\n return true\n }\n\n const hasConsole = typeof console !== 'undefined'\n const hasProcess = typeof process !== 'undefined'\n const isDebug = options.debug || (hasProcess && process.env.NODE_ENV !== 'production')\n return hasConsole && isDebug\n}\n\nfunction extractContext (vm) {\n const options = vm.$options || {}\n const name = options.name || options._componentTag\n const file = options.__file\n const parentName = vm.$parent && vm.$parent.$options ? vm.$parent.$options.name : undefined\n\n // Vue2 - $options.propsData\n // Vue3 - $props\n const props = options.propsData || vm.$props\n\n return {\n isRoot: vm.$root === vm,\n name: name,\n props,\n parentName: parentName,\n file: file\n }\n}\n\nfunction install(vue, options) {\n if (options.debug) {\n console.log(`Honeybadger configured with ${options.apiKey}`)\n }\n const honeybadger = Honeybadger.configure(options)\n vue.$honeybadger = honeybadger\n\n // vue 2 support -> make available for all components\n if (vue.prototype) {\n vue.prototype.$honeybadger = honeybadger\n }\n\n if (vue.config && vue.config.globalProperties) {\n // vue 3 support -> make available for all components\n vue.config.globalProperties.$honeybadger = honeybadger\n }\n const chainedErrorHandler = vue.config.errorHandler\n vue.config.errorHandler = (error, vm, info) => {\n const metadata = { context: { vm: extractContext(vm), info: info } }\n honeybadger.notify(error, metadata)\n if (typeof chainedErrorHandler === 'function') {\n chainedErrorHandler.call(vue, error, vm, info)\n }\n\n if (shouldLogError(vue, options)) {\n logError(vue, error, vm, info)\n }\n }\n}\n\nexport default {\n install\n}\n"],"names":["classifyRE","formatComponentName","vm","includeFile","$root","const","options","cid","_isVue","$options","constructor","name","_componentTag","file","__file","match","replace","c","toUpperCase","logError","app","error","info","message","toString","trace","$parent","tree","currentRecursiveSequence","length","last","push","map","i","str","n","let","res","repeat","Array","isArray","join","generateComponentTrace","config","warnHandler","call","console","extractContext","parentName","undefined","props","propsData","$props","isRoot","index","install","vue","debug","log","honeybadger","Honeybadger","configure","$honeybadger","prototype","globalProperties","chainedErrorHandler","errorHandler","metadata","context","notify","hasConsole","hasProcess","process","isDebug","env","NODE_ENV","shouldLogError"],"mappings":"iIAKMA,EAAa,kBAKbC,EAAmB,SAAIC,EAAIC,GAC/B,GAAID,EAAGE,QAAUF,EACf,MAAO,SAETG,IAAMC,EAAwB,mBAAPJ,GAA+B,MAAVA,EAAGK,IAC3CL,EAAGI,QACHJ,EAAGM,OACDN,EAAGO,UAAYP,EAAGQ,YAAYJ,QAC9BJ,GAAM,CAAE,EACVS,EAAOL,EAAQK,MAAQL,EAAQM,cAC7BC,EAAOP,EAAQQ,OACrB,IAAKH,GAAQE,EAAM,CACjBR,IAAMU,EAAQF,EAAKE,MAAM,mBACzBJ,EAAOI,GAASA,EAAM,EACvB,CAED,OACGJ,EAAW,KAASA,EApBtBK,QAAQhB,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ybadger.js vue integration
2
2
  // Project: https://github.com/honeybadger-io/honeybadger-vue
3
3
 
4
- import { App } from 'vue';
5
- import Honeybadger from '@honeybadger-io/js/dist/browser/honeybadger'
6
- import { BrowserConfig } from '@honeybadger-io/js/dist/browser/types/core/types'
4
+ import { App } from 'vue'
5
+ import Honeybadger, { Types } from '@honeybadger-io/js/dist/browser/honeybadger'
7
6
 
8
7
  declare module '@vue/runtime-core' {
9
8
  interface App {
@@ -11,8 +10,8 @@ declare module '@vue/runtime-core' {
11
10
  }
12
11
  }
13
12
 
14
- declare var HoneybadgerVue: {
15
- install(app: App, options?: Partial<BrowserConfig>): void
13
+ declare const HoneybadgerVue: {
14
+ install(app: App, options?: Partial<Types.BrowserConfig>): void
16
15
  }
17
16
 
18
17
  export default HoneybadgerVue
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@honeybadger-io/vue",
3
- "version": "3.2.1",
3
+ "version": "4.3.1",
4
4
  "license": "MIT",
5
5
  "description": "Honeybadger Vue.js client",
6
6
  "author": "Jason Truesdell <jason@yuzuten.com> (https://github.com/JasonTrue)",
7
7
  "bugs": {
8
- "url": "https://github.com/honeybadger-io/honeybadger-vue/issues"
8
+ "url": "https://github.com/honeybadger-io/honeybadger-js/issues"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "git+ssh://git@github.com/honeybadger-io/honeybadger-vue.git"
12
+ "url": "git+ssh://git@github.com/honeybadger-io/honeybadger-js.git"
13
13
  },
14
14
  "keywords": [
15
15
  "vue",
@@ -24,12 +24,12 @@
24
24
  "src",
25
25
  "honeybadger-vue.d.ts"
26
26
  ],
27
- "homepage": "https://github.com/honeybadger-io/honeybadger-vue#readme",
27
+ "homepage": "https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/vue",
28
28
  "scripts": {
29
- "unit": "jest --config test/unit/jest.conf.js --coverage",
29
+ "unit": "jest --coverage",
30
30
  "e2e": "node test/e2e/runner.js",
31
31
  "tsd": "npx tsd",
32
- "test": "npm run unit",
32
+ "test": "npm run tsd && npm run unit",
33
33
  "test:all": "npm run tsd && npm run unit && npm run e2e",
34
34
  "lint": "eslint --ext .js,.vue src examples test/unit",
35
35
  "build": "npm run build:umd & npm run build:es & npm run build:unpkg & npm run build:unpkg-minify",
@@ -37,35 +37,27 @@
37
37
  "build:es": "rollup --config rollup.config.js --format es --file dist/honeybadger-vue.esm.js",
38
38
  "build:unpkg": "rollup --config rollup.config.js --format iife --file dist/honeybadger-vue.js",
39
39
  "build:unpkg-minify": "MINIFY=true rollup --config rollup.config.js --format iife --file dist/honeybadger-vue.min.js",
40
- "preversion": "npm test",
41
- "version": "scripts/update-versions.sh",
42
- "postversion": "git push && git push --tags",
43
- "prepublishOnly": "npm run build && npm test",
44
- "prepare": "husky install",
45
- "release": "shipjs prepare"
40
+ "prepublishOnly": "npm run build && npm test"
46
41
  },
47
42
  "devDependencies": {
48
- "@babel/plugin-transform-runtime": "^7.18.5",
49
- "@babel/preset-env": "^7.18.2",
50
- "@commitlint/cli": "^17.0.2",
51
- "@commitlint/config-conventional": "^17.0.2",
52
- "@honeybadger-io/js": "^4.0.3",
43
+ "@babel/plugin-transform-runtime": "^7.18.9",
44
+ "@babel/preset-env": "^7.18.9",
45
+ "@honeybadger-io/js": "^4.3.1",
53
46
  "@vue/compiler-sfc": "^3.2.37",
54
- "@vue/test-utils": "^2.0.0",
47
+ "@vue/test-utils": "^2.0.2",
55
48
  "babel-plugin-syntax-jsx": "^6.18.0",
56
49
  "babel-plugin-transform-vue-jsx": "^3.7.0",
57
50
  "browser-resolve": "^2.0.0",
58
- "eslint": "^8.18.0",
59
- "eslint-plugin-vue": "^9.1.1",
60
- "husky": "^8.0.1",
51
+ "eslint": "^8.20.0",
52
+ "eslint-plugin-vue": "^9.2.0",
61
53
  "jest": "^26.6.3",
62
- "rollup": "^2.75.7",
54
+ "rollup": "^2.77.0",
63
55
  "rollup-plugin-buble": "^0.19.8",
64
56
  "rollup-plugin-conditional": "^3.1.2",
65
57
  "rollup-plugin-terser": "^7.0.2",
66
58
  "rollup-plugin-vue": "^6.0.0",
67
- "shipjs": "^0.24.4",
68
59
  "sinon": "^14.0.0",
60
+ "tsd": "^0.23.0",
69
61
  "vue": "^3.2.37",
70
62
  "vue-jest": "^5.0.0-alpha.10"
71
63
  },
@@ -89,5 +81,6 @@
89
81
  "DOM"
90
82
  ]
91
83
  }
92
- }
84
+ },
85
+ "gitHead": "c6f0d637498f726673ee749c83d689dc13c7e1b6"
93
86
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2018 Honeybadger Industries LLC
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.