Skip to content

Commit 24fa756

Browse files
author
jrtaylor
committed
refactor(npmpublish-alpha.yml): config stuff for github actions
1 parent 911eef8 commit 24fa756

File tree

5 files changed

+77
-133
lines changed

5 files changed

+77
-133
lines changed

dist/vue-user-timeout.es5.js

Lines changed: 63 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,71 @@
1-
function _typeof(obj) {
2-
if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
3-
_typeof = function _typeof(obj) {
4-
return typeof obj;
5-
};
6-
} else {
7-
_typeof = function _typeof(obj) {
8-
return obj &&
9-
typeof Symbol === 'function' &&
10-
obj.constructor === Symbol &&
11-
obj !== Symbol.prototype
12-
? 'symbol'
13-
: typeof obj;
1+
"use strict";
2+
3+
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4+
5+
!function (e) {
6+
var t = {};
7+
8+
function n(r) {
9+
if (t[r]) return t[r].exports;
10+
var o = t[r] = {
11+
i: r,
12+
l: !1,
13+
exports: {}
1414
};
15+
return e[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports;
1516
}
16-
return _typeof(obj);
17-
}
18-
19-
const userTimeout = require('./lib/userTimeout');
2017

21-
(function() {
22-
/**
23-
* Install plugin
24-
* @param Vue
25-
* @param options
26-
*/
27-
function plugin(Vue, axios) {
28-
if (plugin.installed) {
29-
return;
18+
n.m = e, n.c = t, n.d = function (e, t, r) {
19+
n.o(e, t) || Object.defineProperty(e, t, {
20+
enumerable: !0,
21+
get: r
22+
});
23+
}, n.r = function (e) {
24+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
25+
value: "Module"
26+
}), Object.defineProperty(e, "__esModule", {
27+
value: !0
28+
});
29+
}, n.t = function (e, t) {
30+
if (1 & t && (e = n(e)), 8 & t) return e;
31+
if (4 & t && "object" == _typeof(e) && e && e.__esModule) return e;
32+
var r = Object.create(null);
33+
if (n.r(r), Object.defineProperty(r, "default", {
34+
enumerable: !0,
35+
value: e
36+
}), 2 & t && "string" != typeof e) for (var o in e) {
37+
n.d(r, o, function (t) {
38+
return e[t];
39+
}.bind(null, o));
3040
}
41+
return r;
42+
}, n.n = function (e) {
43+
var t = e && e.__esModule ? function () {
44+
return e["default"];
45+
} : function () {
46+
return e;
47+
};
48+
return n.d(t, "a", t), t;
49+
}, n.o = function (e, t) {
50+
return Object.prototype.hasOwnProperty.call(e, t);
51+
}, n.p = "", n(n.s = 0);
52+
}([function (e, t, n) {
53+
var r = n(1);
3154

32-
plugin.installed = true;
33-
Vue.$userTimeout = userTimeout;
34-
Object.defineProperties(Vue.prototype, {
55+
e.exports = function e(t, n) {
56+
e.installed || (e.installed = !0, t.$userTimeout = r, Object.defineProperties(t.prototype, {
3557
$userTimeout: {
3658
get: function get() {
37-
return userTimeout;
38-
},
39-
},
40-
});
41-
} // Logic to determine how to include the plugin
59+
return r;
60+
}
61+
}
62+
}));
63+
};
64+
}, function (e, t, n) {
65+
"use strict";
4266

43-
if (
44-
(typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) ==
45-
'object'
46-
) {
47-
module.exports = plugin;
48-
} else if (typeof define === 'function' && define.amd) {
49-
define([], function() {
50-
return plugin;
51-
});
52-
} else if (window.Vue && typeof window !== 'undefined') {
53-
Vue.use(plugin, options);
54-
}
55-
})();
67+
n.r(t), t["default"] = {
68+
test: "Test",
69+
init: function init(e) {}
70+
};
71+
}]);

dist/vue-user-timeout.min.es5.js

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

npmpublish.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
const userTimeout = require('./lib/userTimeout');
22

3+
// eslint-disable-next-line func-names
34
(function() {
45
/**
56
* Install plugin
67
* @param Vue
78
* @param options
89
*/
9-
function plugin(Vue, axios) {
10+
// eslint-disable-next-line no-unused-vars
11+
function plugin(Vue, options) {
1012
if (plugin.installed) {
1113
return;
1214
}
13-
plugin.installed = true;
1415

16+
plugin.installed = true;
17+
// eslint-disable-next-line no-param-reassign
1518
Vue.$userTimeout = userTimeout;
1619

1720
Object.defineProperties(Vue.prototype, {
@@ -26,11 +29,14 @@ const userTimeout = require('./lib/userTimeout');
2629
// Logic to determine how to include the plugin
2730
if (typeof exports === 'object') {
2831
module.exports = plugin;
32+
// eslint-disable-next-line no-undef
2933
} else if (typeof define === 'function' && define.amd) {
34+
// eslint-disable-next-line no-undef, func-names
3035
define([], function() {
3136
return plugin;
3237
});
3338
} else if (window.Vue && typeof window !== 'undefined') {
39+
// eslint-disable-next-line no-undef
3440
Vue.use(plugin, options);
3541
}
3642
})();

src/lib/userTimeout.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@ export default {
33
test: 'Test',
44

55
// methods
6-
init: options => {},
6+
init: options => {
7+
if (options) {
8+
console.log('yay');
9+
}
10+
},
711
};

0 commit comments

Comments
 (0)