Skip to content

Commit 02546ae

Browse files
committed
build
1 parent 2fb07ae commit 02546ae

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

dist/shim.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
exports.__esModule = true;
44
exports.default = void 0;
55

6-
var _sensibles = require("./sensibles");
6+
var _vue = _interopRequireDefault(require("vue"));
77

88
var _isPlainObject = _interopRequireDefault(require("lodash/isPlainObject"));
99

10+
var _sensibles = require("./sensibles");
11+
1012
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1113

1214
var isArray = Array.isArray || function (value) {
@@ -40,7 +42,9 @@ var type = function type(props) {
4042
return this;
4143
},
4244

43-
validator: function validator() {}
45+
validator: function validator() {
46+
return true;
47+
}
4448
}, props);
4549
};
4650

@@ -122,5 +126,9 @@ vueTypes.extend = function extend(props) {
122126
});
123127
};
124128

129+
if (process.env.NODE_ENV !== 'production') {
130+
_vue.default.config.silent === false && console.warn('You are using the production shimmed version of VueTypes in a development build. Refer to https://github.com/dwightjack/vue-types#production-build to learn how to configure VueTypes for usage in multiple environments.');
131+
}
132+
125133
var _default = vueTypes;
126134
exports.default = _default;

es/shim.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { setDefaults } from './sensibles';
1+
import Vue from 'vue';
22
import isPlainObject from 'lodash/isPlainObject';
3+
import { setDefaults } from './sensibles';
34

45
var isArray = Array.isArray || function (value) {
56
return Object.prototype.toString.call(value) === '[object Array]';
@@ -32,7 +33,9 @@ var type = function type(props) {
3233
return this;
3334
},
3435

35-
validator: function validator() {}
36+
validator: function validator() {
37+
return true;
38+
}
3639
}, props);
3740
};
3841

@@ -114,4 +117,8 @@ vueTypes.extend = function extend(props) {
114117
});
115118
};
116119

120+
if (process.env.NODE_ENV !== 'production') {
121+
Vue.config.silent === false && console.warn('You are using the production shimmed version of VueTypes in a development build. Refer to https://github.com/dwightjack/vue-types#production-build to learn how to configure VueTypes for usage in multiple environments.');
122+
}
123+
117124
export default vueTypes;

umd/vue-types.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

umd/vue-types.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)