gov-vue-util
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,2 +0,2 @@ | ||
/* gov fronter presented 🐣🐣🐣 */"use strict";function _objectWithoutProperties(a,b){if(null==a)return{};var c,d,e=_objectWithoutPropertiesLoose(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function _objectWithoutPropertiesLoose(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);return e}function _typeof(a){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}(function(a,b){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):(a=a||self,b(a.gvUtil={}))})(void 0,function(a){'use strict';var b;(function(a){a.W="wedget",a.C="Component",a.L="layout"})(b||(b={})),a.addComponentMeta=function(a){var b=a.displayName,c=a.group,d=a.type,e=_objectWithoutProperties(a,["displayName","group","type"]);return{beforeCreate:function f(){var a=this;if(!b||!c||!d)throw new Error("no component meta");this.$$govDisplayName=b,this.$$govGroup=c,this.$$govType=d,e&&Object.keys(e).forEach(function(b){var c=b[0].toUpperCase(),d=b.slice(1);a["$$gov".concat(c).concat(d)]=e[b]})}}},Object.defineProperty(a,"__esModule",{value:!0})}); | ||
/* gov fronter presented 🐣🐣🐣 */"use strict";function _objectWithoutProperties(a,b){if(null==a)return{};var c,d,e=_objectWithoutPropertiesLoose(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function _objectWithoutPropertiesLoose(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);return e}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}function _typeof(a){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}(function(a,b){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):(a=a||self,b(a.gvUtil={}))})(void 0,function(a){'use strict';function b(a){return"[object String]"===i.call(a)}function c(a){if(!a)return Promise.reject("need module url");if(b(a)&&(a={url:a,sideEffect:!1}),Array.isArray(a)){var g=[];return a.forEach(function(a){b(a)&&(a={url:a,sideEffect:!1}),g.push(c(a))}),Promise.all(g)}var d=a,e=d.url,f=d.sideEffect;return new Promise(function(b,c){if(j[e])return b(j[e]);if(!document.body)return c("should be used in browser env");var d=new k(a),g=document.createElement("script");g.src=e,document.body.appendChild(g),d.setContext(),g.onload=function(){if(void 0!==f&&f)return d.setModule({}),b(d.getModule());var a=window.module;Object.keys(a.exports).length&&d.setModule(a.exports),b(d.getModule()),d.restoreContext()},g.onerror=function(){d.restoreContext(),c("script load error")}})}function d(a){var b=location.origin;if(/^\//.test(a))return"".concat(b).concat(a);a=a.replace(/^\.\//,"");var c=location.pathname.split("/").slice(0,-1);return c.push(a),"".concat(b).concat(c.join("/"))}var e,f,g,h,i=Object.prototype.toString,j={},k=function(){function a(b){var c=b.url;_classCallCheck(this,a),this.url=d(c),this.module={exports:{}},this.define.amd={}}return _createClass(a,[{key:"setContext",value:function b(){var a=window;e=a.module,f=a.exports,g=a.define,a.module=this.module,a.exports=this.module.exports,a.define=this.define.bind(this)}},{key:"restoreContext",value:function b(){var a=window;a.module=e,a.exports=f,a.define=g}},{key:"getModule",value:function a(){return j[this.url]||{}}},{key:"setModule",value:function b(a){a&&(j[this.url]=a)}},{key:"define",value:function c(a,b){this.setModule(b({}))}}]),a}();(function(a){a.W="wedget",a.C="Component",a.L="layout"})(h||(h={})),a.asyncModuleLoader=c,a.addComponentMeta=function(a){var b=a.displayName,c=a.group,d=a.type,e=_objectWithoutProperties(a,["displayName","group","type"]);return{beforeCreate:function f(){var a=this;if(!b||!c||!d)throw new Error("no component meta");this.$$govDisplayName=b,this.$$govGroup=c,this.$$govType=d,e&&Object.keys(e).forEach(function(b){var c=b[0].toUpperCase(),d=b.slice(1);a["$$gov".concat(c).concat(d)]=e[b]})}}},Object.defineProperty(a,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=gov-vue-util.min.js.map |
@@ -5,2 +5,3 @@ const rollup = require('rollup'); | ||
const rminify = require('rollup-plugin-babel-minify'); | ||
const replace = require('rollup-plugin-replace'); | ||
@@ -31,5 +32,8 @@ const gulp = require('gulp'); | ||
function bundler() { | ||
return rollup.rollup({ | ||
const pro = rollup.rollup({ | ||
input: main, | ||
plugins: [ | ||
replace({ | ||
'process.env.NODE_ENV': JSON.stringify('production') | ||
}), | ||
rts(), | ||
@@ -48,2 +52,19 @@ rbabel(), | ||
})); | ||
const dev = rollup.rollup({ | ||
input: main, | ||
plugins: [ | ||
rts(), | ||
rbabel(), | ||
] | ||
}).then(bundle => bundle.write({ | ||
file: './' + output + '/gov-vue-util.js', | ||
format: 'umd', | ||
name: 'gvUtil', | ||
sourcemap: true | ||
})); | ||
return Promise.all([pro, dev]); | ||
} | ||
@@ -50,0 +71,0 @@ |
{ | ||
"name": "gov-vue-util", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "政务vue组件util工具集", | ||
@@ -44,2 +44,3 @@ "main": "dist/gov-vue-util.min.js", | ||
"rollup-plugin-babel-minify": "^7.0.0", | ||
"rollup-plugin-replace": "^2.1.1", | ||
"rollup-plugin-typescript": "^1.0.0", | ||
@@ -49,5 +50,6 @@ "ts-jest": "^24.0.0", | ||
"tslint": "^5.13.1", | ||
"typescript": "^3.3.3333" | ||
"typescript": "^3.3.3333", | ||
"vue": "^2.6.10" | ||
}, | ||
"dependencies": {} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
307357
25
780
25
2