Skip to content

refactor(npmpublish-alpha.yml): config stuff for github actions #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 63 additions & 47 deletions dist/vue-user-timeout.es5.js
Original file line number Diff line number Diff line change
@@ -1,55 +1,71 @@
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;
"use strict";

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); }

!function (e) {
var t = {};

function n(r) {
if (t[r]) return t[r].exports;
var o = t[r] = {
i: r,
l: !1,
exports: {}
};
return e[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports;
}
return _typeof(obj);
}

const userTimeout = require('./lib/userTimeout');

(function() {
/**
* Install plugin
* @param Vue
* @param options
*/
function plugin(Vue, axios) {
if (plugin.installed) {
return;
n.m = e, n.c = t, n.d = function (e, t, r) {
n.o(e, t) || Object.defineProperty(e, t, {
enumerable: !0,
get: r
});
}, n.r = function (e) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e, "__esModule", {
value: !0
});
}, n.t = function (e, t) {
if (1 & t && (e = n(e)), 8 & t) return e;
if (4 & t && "object" == _typeof(e) && e && e.__esModule) return e;
var r = Object.create(null);
if (n.r(r), Object.defineProperty(r, "default", {
enumerable: !0,
value: e
}), 2 & t && "string" != typeof e) for (var o in e) {
n.d(r, o, function (t) {
return e[t];
}.bind(null, o));
}
return r;
}, n.n = function (e) {
var t = e && e.__esModule ? function () {
return e["default"];
} : function () {
return e;
};
return n.d(t, "a", t), t;
}, n.o = function (e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}, n.p = "", n(n.s = 0);
}([function (e, t, n) {
var r = n(1);

plugin.installed = true;
Vue.$userTimeout = userTimeout;
Object.defineProperties(Vue.prototype, {
e.exports = function e(t, n) {
e.installed || (e.installed = !0, t.$userTimeout = r, Object.defineProperties(t.prototype, {
$userTimeout: {
get: function get() {
return userTimeout;
},
},
});
} // Logic to determine how to include the plugin
return r;
}
}
}));
};
}, function (e, t, n) {
"use strict";

if (
(typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) ==
'object'
) {
module.exports = plugin;
} else if (typeof define === 'function' && define.amd) {
define([], function() {
return plugin;
});
} else if (window.Vue && typeof window !== 'undefined') {
Vue.use(plugin, options);
}
})();
n.r(t), t["default"] = {
test: "Test",
init: function init(e) {}
};
}]);
39 changes: 1 addition & 38 deletions dist/vue-user-timeout.min.es5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 0 additions & 45 deletions npmpublish.yml

This file was deleted.

10 changes: 8 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
const userTimeout = require('./lib/userTimeout');

// eslint-disable-next-line func-names
(function() {
/**
* Install plugin
* @param Vue
* @param options
*/
function plugin(Vue, axios) {
// eslint-disable-next-line no-unused-vars
function plugin(Vue, options) {
if (plugin.installed) {
return;
}
plugin.installed = true;

plugin.installed = true;
// eslint-disable-next-line no-param-reassign
Vue.$userTimeout = userTimeout;

Object.defineProperties(Vue.prototype, {
Expand All @@ -26,11 +29,14 @@ const userTimeout = require('./lib/userTimeout');
// Logic to determine how to include the plugin
if (typeof exports === 'object') {
module.exports = plugin;
// eslint-disable-next-line no-undef
} else if (typeof define === 'function' && define.amd) {
// eslint-disable-next-line no-undef, func-names
define([], function() {
return plugin;
});
} else if (window.Vue && typeof window !== 'undefined') {
// eslint-disable-next-line no-undef
Vue.use(plugin, options);
}
})();
6 changes: 5 additions & 1 deletion src/lib/userTimeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ export default {
test: 'Test',

// methods
init: options => {},
init: options => {
if (options) {
console.log('yay');
}
},
};