nativescript-vue 2.9.0 → 2.9.2

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/index.d.ts CHANGED
@@ -39,30 +39,32 @@ export interface ModalOptions extends Partial<ShowModalOptions> {
39
39
  props?: Record<string, any>;
40
40
  }
41
41
 
42
- // create a nativescript vue class that extends vue.js
43
- export interface NativeScriptVue<V = View> extends Vue {
44
- nativeView: V
42
+ declare module 'vue/types/vue' {
43
+ // 3. Declare augmentation for Vue
44
+ interface Vue<V = View> {
45
+ nativeView: V
45
46
 
46
- $navigateTo: navigateTo
47
- $navigateBack: navigateBack
48
-
49
- $modal?: { close: (data?: any) => Promise<typeof data> };
50
-
51
- /**
52
- * Open a modal using a component
53
- * @param {typeof Vue} component
54
- * @param {ModalOptions} options
55
- * @returns {any}
56
- */
57
- $showModal: (component: typeof Vue, options?: ModalOptions) => Promise<any>;
58
-
59
- /**
60
- * starts the nativescript application
61
- */
62
- $start: () => void
63
- }
64
-
65
- export interface NativeScriptVueConstructor extends VueConstructor<NativeScriptVue>
47
+ $navigateTo: navigateTo
48
+ $navigateBack: navigateBack
49
+
50
+ $modal?: { close: (data?: any) => Promise<typeof data> };
51
+
52
+ /**
53
+ * Open a modal using a component
54
+ * @param {typeof Vue} component
55
+ * @param {ModalOptions} options
56
+ * @returns {any}
57
+ */
58
+ $showModal: (component: typeof Vue, options?: ModalOptions) => Promise<any>;
59
+
60
+ /**
61
+ * starts the nativescript application
62
+ */
63
+ $start: () => void
64
+ }
65
+ }
66
+ export interface NativeScriptVue<V = View> extends Vue<V>{};
67
+ export interface NativeScriptVueConstructor<V = View> extends VueConstructor<NativeScriptVue<V>>
66
68
  {
67
69
  navigateTo: navigateTo
68
70
  navigateBack: navigateBack
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nativescript-vue",
3
- "version": "2.9.0",
3
+ "version": "2.9.2",
4
4
  "description": "NativeScript and Vue integration",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "typings": "index.d.ts",
14
14
  "scripts": {
15
- "prepare": "patch-package",
15
+ "prepare": "husky install && patch-package",
16
16
  "test": "jest",
17
17
  "tdd": "jest --watch",
18
18
  "dev": "npm run dev:core -- -w & npm run dev:compiler -- -w",
@@ -53,35 +53,35 @@
53
53
  }
54
54
  },
55
55
  "devDependencies": {
56
- "@babel/core": "^7.13.14",
57
- "@babel/plugin-transform-flow-strip-types": "7.13.0",
58
- "@babel/preset-env": "7.13.12",
59
- "@commitlint/cli": "12.0.1",
60
- "@commitlint/config-conventional": "12.0.1",
61
- "@nativescript/core": "8.0.0",
62
- "@rollup/plugin-alias": "3.1.2",
56
+ "@babel/core": "^7.17.10",
57
+ "@babel/plugin-transform-flow-strip-types": "7.16.7",
58
+ "@babel/preset-env": "7.17.10",
59
+ "@commitlint/cli": "16.2.4",
60
+ "@commitlint/config-conventional": "16.2.4",
61
+ "@nativescript/core": "8.2.3",
62
+ "@rollup/plugin-alias": "3.1.9",
63
63
  "@rollup/plugin-buble": "0.21.3",
64
- "@rollup/plugin-commonjs": "18.0.0",
65
- "@rollup/plugin-node-resolve": "11.2.1",
66
- "@rollup/plugin-replace": "2.4.2",
67
- "babel-jest": "26.6.3",
68
- "chalk": "4.1.0",
69
- "commitizen": "4.2.3",
70
- "conventional-changelog-cli": "2.1.1",
64
+ "@rollup/plugin-commonjs": "22.0.0",
65
+ "@rollup/plugin-node-resolve": "13.3.0",
66
+ "@rollup/plugin-replace": "4.0.0",
67
+ "babel-jest": "28.1.0",
68
+ "chalk": "5.0.1",
69
+ "commitizen": "4.2.4",
70
+ "conventional-changelog-cli": "2.2.2",
71
71
  "cz-conventional-changelog": "3.3.0",
72
- "husky": "4.3.0",
73
- "inquirer": "8.0.0",
74
- "jest": "26.6.3",
75
- "jest-junit": "12.0.0",
76
- "lint-staged": "10.5.4",
72
+ "husky": "8.0.1",
73
+ "inquirer": "8.2.4",
74
+ "jest": "28.1.0",
75
+ "jest-junit": "13.2.0",
76
+ "lint-staged": "12.4.1",
77
77
  "patch-package": "^6.4.7",
78
- "prettier": "2.2.1",
79
- "rollup": "^2.44.0",
78
+ "prettier": "2.6.2",
79
+ "rollup": "^2.72.1",
80
80
  "rollup-plugin-flow-no-whitespace": "1.0.0",
81
81
  "rollup-plugin-resolve-aliases": "0.3.0",
82
- "semver": "7.3.5",
83
- "set-value": "3.0.2",
84
- "vue": "2.6.12"
82
+ "semver": "7.3.7",
83
+ "set-value": "4.1.0",
84
+ "vue": "2.6.14"
85
85
  },
86
86
  "jest": {
87
87
  "verbose": true,
@@ -99,7 +99,9 @@
99
99
  "<rootDir>/samples"
100
100
  ],
101
101
  "collectCoverage": true,
102
- "testURL": "http://localhost"
102
+ "testEnvironmentOptions": {
103
+ "url": "http://localhost"
104
+ }
103
105
  },
104
106
  "prettier": {
105
107
  "semi": false,
@@ -107,12 +109,6 @@
107
109
  "trailingComma": "none",
108
110
  "arrowParens": "avoid"
109
111
  },
110
- "husky": {
111
- "hooks": {
112
- "pre-commit": "lint-staged",
113
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
114
- }
115
- },
116
112
  "lint-staged": {
117
113
  "{{platform,__test__}/**/*.js,samples/app/*.js}": [
118
114
  "prettier --write"