Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vmm/hello-world

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vmm/hello-world - npm Package Compare versions

Comparing version 1.0.63 to 1.0.74

types/src/api/api/hello.d.ts

2

index.js

@@ -1,1 +0,1 @@

(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("_vmm_html"),require("Vue")):"function"===typeof define&&define.amd?define(["_vmm_html","Vue"],t):"object"===typeof exports?exports["main"]=t(require("_vmm_html"),require("Vue")):e["main"]=t(e["_vmm_html"],e["Vue"])})("undefined"!==typeof self?self:this,function(e,t){return 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 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="576d")}({"07ee":function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},1468:function(e,t){var n=1e3,r=60*n,o=60*r,s=24*o,i=7*s,a=365.25*s;function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]),u=(t[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function u(e){var t=Math.abs(e);return t>=s?Math.round(e/s)+"d":t>=o?Math.round(e/o)+"h":t>=r?Math.round(e/r)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}function l(e){var t=Math.abs(e);return t>=s?d(e,t,s,"day"):t>=o?d(e,t,o,"hour"):t>=r?d(e,t,r,"minute"):t>=n?d(e,t,n,"second"):e+" ms"}function d(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return c(e);if("number"===n&&isFinite(e))return t.long?l(e):u(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"24fb":function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var s=o(r),i=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(i).concat([s]).join("\n")}return[n].join("\n")}function o(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=r(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var s=this[o][0];null!=s&&(r[s]=!0)}for(var i=0;i<e.length;i++){var a=e[i];null!=a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="(".concat(a[2],") and (").concat(n,")")),t.push(a))}},t}},"34bf":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("6365")),r(n("89ed"))},"34eb":function(e,t,n){(function(r){function o(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function s(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)}function i(...e){return"object"===typeof console&&console.log&&console.log(...e)}function a(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}}function c(){let e;try{e=t.storage.getItem("debug")}catch(n){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",BASE_URL:"/"}).DEBUG),e}function u(){try{return localStorage}catch(e){}}t.log=i,t.formatArgs=s,t.save=a,t.load=c,t.useColors=o,t.storage=u(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n("dc90")(t);const{formatters:l}=e.exports;l.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n("a3cb"))},"42a3":function(t,n){t.exports=e},"499e":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var s=t[o],i=s[0],a=s[1],c=s[2],u=s[3],l={id:e+":"+o,css:a,media:c,sourceMap:u};r[i]?r[i].parts.push(l):n.push(r[i]={id:i,parts:[l]})}return n}n.r(t),n.d(t,"default",function(){return h});var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var s={},i=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,u=!1,l=function(){},d=null,f="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){u=n,d=o||{};var i=r(e,t);return m(i),function(t){for(var n=[],o=0;o<i.length;o++){var a=i[o],c=s[a.id];c.refs--,n.push(c)}t?(i=r(e,t),m(i)):i=[];for(o=0;o<n.length;o++){c=n[o];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete s[c.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=s[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(b(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(o=0;o<n.parts.length;o++)i.push(b(n.parts[o]));s[n.id]={id:n.id,refs:1,parts:i}}}}function C(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function b(e){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(p){var o=c++;r=a||(a=C()),t=g.bind(null,r,o,!1),n=g.bind(null,r,o,!0)}else r=C(),t=y.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var v=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function g(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,o);else{var s=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(s,i[t]):e.appendChild(s)}}function y(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(f,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},5301:function(e,t,n){var r=n("696c");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var o=n("499e").default;o("1843a637",r,!0,{sourceMap:!1,shadowMode:!1})},"576d":function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("07ee"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));function o(e,t,n,r){return new(n||(n=Promise))(function(o,s){function i(e){try{c(r.next(e))}catch(t){s(t)}}function a(e){try{c(r["throw"](e))}catch(t){s(t)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(i,a)}c((r=r.apply(e,t||[])).next())})}var s=n("8bbf"),i=n.n(s),a=n("9224"),c=n("34eb"),u=n.n(c);const l={install(e){Object.defineProperty(e.prototype,"$d",{value:function(...e){this._debugger||(this._debugger=u()(this.$options.pkgName+":"+this.$options.name)),this._debugger.apply(this._debugger,e)}})}};i.a.use(l);const d=new i.a({pkgName:a.name,name:"helloWorld",data(){return{counter:0}},computed:{},methods:{},created(){return o(this,void 0,void 0,function*(){this.$d("create ... "),setInterval(()=>{this.counter++},1e3)})}});var f=d,p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{staticClass:"developer"},[n("h1",[e._v("Hello World !!!")])]):e._e()},h=[],m=i.a.extend({components:{},props:[],data(){return{show:!0}},methods:{},created(){}}),C=m;n("5f09");function b(e,t,n,r,o,s,i,a){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}var v=b(C,p,h,!1,null,"78bb44fe",null),g=v.exports,y=n("78a4"),w=n("34bf"),F={hello:Object(w["HTTP"])(["user"],""),adminHello:Object(w["HTTP"])(["user"],"admin")},T={user:F},_=Object(w["createDbSchemas"])({hello:new w["DbSchema"]({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),world:new w["DbSchema"]({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}})}),x={helloAdmin:Object(w["DB_CRUD"])(_.hello,{},["user"],"admin"),worldAdmin:Object(w["DB_CRUD"])(_.world,{},["user"],"admin"),hello:Object(w["DB_R"])(_.hello,{excludeFields:[]},["user"],"")},j={hello:x},O={hello:{client:{hello:"this is hello"},server:{worldCounter:999}}},P={hello:O},S={pkg:y,api:T,db:j,session:P},E=n("42a3"),D=n.n(E);const R=D.a.logger(`${a["name"]}:project`);R.debug("load modules:",name,S);const k={helloWorld:f,Hello:g,api:S};window[a["name"].replace(/[@\/-]/g,"_")]=k;var M=k;t["default"]=M},"5f09":function(e,t,n){"use strict";var r=n("5301"),o=n.n(r);o.a},6365:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("89ed");function o(e){for(const t of Object.keys(e))e[t].collName=t;return e}t.createDbSchemas=o;class s{constructor(e,t,n){this.collName="",this.docSchema={},this.indexSchema=t,this.collOptions=e,this.collOptions._extDb=n}}function i(e,t){return{C:{insertOne:r.HTTP(e,t),insertMany:r.HTTP(e,t)},R:{findOne:r.HTTP(e,t),find:r.HTTP(e,t),countDocuments:r.HTTP(e,t),estimatedDocumentCount:r.HTTP(e,t),geoHaystackSearch:r.HTTP(e,t),distinct:r.HTTP(e,t)},U:{updateOne:r.HTTP(e,t),updateMany:r.HTTP(e,t),findOneAndReplace:r.HTTP(e,t),findOneAndUpdate:r.HTTP(e,t)},D:{deleteOne:r.HTTP(e,t),deleteMany:r.HTTP(e,t),findOneAndDelete:r.HTTP(e,t)}}}t.DbSchema=s;function a(e,t,n,r){const o=i(n,r),s=o["R"];return Object.defineProperty(s,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(s,"_schema",{enumerable:!1,writable:!1,value:e}),s}function c(e,t,n,r){const o=i(n,r),s={...o["U"],...o["R"]};return Object.defineProperty(s,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(s,"_schema",{enumerable:!1,writable:!1,value:e}),s}function u(e,t,n,r){const o=i(n,r),s={...o["C"],...o["U"],...o["R"]};return Object.defineProperty(s,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(s,"_schema",{enumerable:!1,writable:!1,value:e}),s}function l(e,t,n,r){const o=i(n,r),s={...o["C"],...o["R"],...o["U"],...o["D"]};return Object.defineProperty(s,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(s,"_schema",{enumerable:!1,writable:!1,value:e}),s}t.DB_R=a,t.DB_RU=c,t.DB_CRU=u,t.DB_CRUD=l},"696c":function(e,t,n){t=e.exports=n("24fb")(!1),t.push([e.i,".developer[data-v-78bb44fe]{position:fixed;left:0;top:0;z-index:99999999;width:100%;height:100%;background-color:rgba(20,30,80,.7);color:#f0f8ff;overflow:scroll}.title[data-v-78bb44fe]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}",""])},"78a4":function(e){e.exports={name:"@vmm/hello-world-service",version:"1.0.11",description:"你好示例服务"}},"89ed":function(e,t,n){"use strict";function r(e,t){const n=function(){throw new Error("INVALID HTTP API")},r=n;return r._sessions=e,r._actor=t,n}Object.defineProperty(t,"__esModule",{value:!0}),t.HTTP=r},"8bbf":function(e,n){e.exports=t},9224:function(e){e.exports={name:"@vmm/hello-world",version:"1.0.63",description:" 全局库",icon:"ios-people",moduleType:"html",jslib:"@vmm/jslib",distFiles:["index.js"],debugFiles:["js/chunk-vendors.js","js/app.js"],types:"./types/src/main.d.ts",exports:{},scripts:{serve:"vue-cli-service serve --host localhost",build:"./build.sh"},dependencies:{"@vmm/html":"^1.0.57",vue:"^2.6.10"},devDependencies:{"@types/debug":"^4.1.5","@vmm/api":"^1.0.7","@vmm/jslib":"^1.0.62","@vue/cli-plugin-typescript":"^4.0.4","@vue/cli-service":"^4.0.4",debug:"^4.1.1","declaration-bundler-webpack-plugin":"^1.0.3","tsconfig-paths-webpack-plugin":"^3.2.0",typescript:"^3.4.3","typescript-declaration-webpack-plugin":"^0.1.1","vue-template-compiler":"^2.6.10"},license:"MIT"}},a3cb:function(e,t){var n,r,o=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function c(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:s}catch(e){n=s}try{r="function"===typeof clearTimeout?clearTimeout:i}catch(e){r=i}})();var u,l=[],d=!1,f=-1;function p(){d&&u&&(d=!1,u.length?l=u.concat(l):f=-1,l.length&&h())}function h(){if(!d){var e=a(p);d=!0;var t=l.length;while(t){u=l,l=[];while(++f<t)u&&u[f].run();f=-1,t=l.length}u=null,d=!1,c(e)}}function m(e,t){this.fun=e,this.array=t}function C(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),1!==l.length||d||a(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=C,o.addListener=C,o.once=C,o.off=C,o.removeListener=C,o.removeAllListeners=C,o.emit=C,o.prependListener=C,o.prependOnceListener=C,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},dc90:function(e,t,n){function r(e){function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){let n;function i(...e){if(!i.enabled)return;const t=i,o=Number(new Date),s=o-(n||o);t.diff=s,t.prev=n,t.curr=o,n=o,e[0]=r.coerce(e[0]),"string"!==typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return n;a++;const s=r.formatters[o];if("function"===typeof s){const r=e[a];n=s.call(t,r),e.splice(a,1),a--}return n}),r.formatArgs.call(t,e);const c=t.log||r.log;c.apply(t,e)}return i.namespace=e,i.enabled=r.enabled(e),i.useColors=r.useColors(),i.color=t(e),i.destroy=o,i.extend=s,"function"===typeof r.init&&r.init(i),r.instances.push(i),i}function o(){const e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function s(e,t){const n=r(this.namespace+("undefined"===typeof t?":":t)+e);return n.log=this.log,n}function i(e){let t;r.save(e),r.names=[],r.skips=[];const n=("string"===typeof e?e:"").split(/[\s,]+/),o=n.length;for(t=0;t<o;t++)n[t]&&(e=n[t].replace(/\*/g,".*?"),"-"===e[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){const e=r.instances[t];e.enabled=r.enabled(e.namespace)}}function a(){const e=[...r.names.map(u),...r.skips.map(u).map(e=>"-"+e)].join(",");return r.enable(""),e}function c(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1}function u(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function l(e){return e instanceof Error?e.stack||e.message:e}return r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=i,r.enabled=c,r.humanize=n("1468"),Object.keys(e).forEach(t=>{r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}e.exports=r}})});
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("_vmm_html"),require("Vue")):"function"===typeof define&&define.amd?define(["_vmm_html","Vue"],t):"object"===typeof exports?exports["main"]=t(require("_vmm_html"),require("Vue")):e["main"]=t(e["_vmm_html"],e["Vue"])})("undefined"!==typeof self?self:this,function(e,t){return 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 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="576d")}({"07ee":function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},"22d4":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{staticClass:"developer"},[n("h1",[e._v("Hello World !!!")])]):e._e()},o=[],i=n("8bbf"),a=n.n(i),c=a.a.extend({components:{},props:[],data(){return{show:!0}},methods:{},created(){}}),u=c;n("5f09");function s(e,t,n,r,o,i,a,c){var u,s="function"===typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},s._ssrRegister=u):o&&(u=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var l=s.render;s.render=function(e,t){return u.call(t),l(e,t)}}else{var d=s.beforeCreate;s.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:s}}var l=s(u,r,o,!1,null,"78bb44fe",null);t["default"]=l.exports},"24fb":function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var i=o(r),a=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}function o(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=r(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var c=e[a];null!=c[0]&&r[c[0]]||(n&&!c[2]?c[2]=n:n&&(c[2]="(".concat(c[2],") and (").concat(n,")")),t.push(c))}},t}},"2c9d":function(e,t,n){var r={"./Hello.vue":"22d4"};function o(e){var t=i(e);return n(t)}function i(e){var t=r[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="2c9d"},"42a3":function(t,n){t.exports=e},"499e":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=i[0],c=i[1],u=i[2],s=i[3],l={id:e+":"+o,css:c,media:u,sourceMap:s};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}n.r(t),n.d(t,"default",function(){return h});var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,u=0,s=!1,l=function(){},d=null,f="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){s=n,d=o||{};var a=r(e,t);return v(a),function(t){for(var n=[],o=0;o<a.length;o++){var c=a[o],u=i[c.id];u.refs--,n.push(u)}t?(a=r(e,t),v(a)):a=[];for(o=0;o<n.length;o++){u=n[o];if(0===u.refs){for(var s=0;s<u.parts.length;s++)u.parts[s]();delete i[u.id]}}}}function v(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(b(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(b(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function b(e){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(s)return l;r.parentNode.removeChild(r)}if(p){var o=u++;r=c||(c=m()),t=_.bind(null,r,o,!1),n=_.bind(null,r,o,!0)}else r=m(),t=g.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function _(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function g(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(f,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"4d75":function(e){e.exports={name:"@vmm/hello-world-service",version:"1.0.12",description:"你好示例服务"}},5301:function(e,t,n){var r=n("696c");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var o=n("499e").default;o("1843a637",r,!0,{sourceMap:!1,shadowMode:!1})},"576d":function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("07ee"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));function o(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,c)}u((r=r.apply(e,t||[])).next())})}var i=n("8bbf"),a=n.n(i);const c=new a.a({data(){return{counter:0}},computed:{},methods:{},created(){return o(this,void 0,void 0,function*(){setInterval(()=>{this.counter++},1e3)})}});var u=c,s=n("22d4"),l=n("4d75"),d=n("db9b"),f={hello:Object(d["HTTP"])(["user"],""),adminHello:Object(d["HTTP"])(["user"],"admin")},p={user:f},h=Object(d["createDbSchemas"])({hello:new d["DbSchema"]({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),world:new d["DbSchema"]({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}})}),v={helloAdmin:Object(d["DB_CRUD"])(h.hello,{},["user"],"admin"),worldAdmin:Object(d["DB_CRUD"])(h.world,{},["user"],"admin"),hello:Object(d["DB_R"])(h.hello,{excludeFields:[]},["user"],"")},m={hello:v},b={hello:{client:{hello:"this is hello"},server:{worldCounter:999}}},y={hello:b},_={pkg:l,api:p,db:m,session:y},g=n("9224"),T=n("42a3"),w=n.n(T);w.a.logger(`${g["a"]}:main`);w.a.project.loadVueDir(g["a"],n("2c9d"));const O={helloWorld:u,Hello:s["default"],api:_};w.a.project.loadApi(_),window[g["a"].replace(/[@\/-]/g,"_")]=O;var j=O;t["default"]=j},"5f09":function(e,t,n){"use strict";var r=n("5301"),o=n.n(r);o.a},"696c":function(e,t,n){t=e.exports=n("24fb")(!1),t.push([e.i,".developer[data-v-78bb44fe]{position:fixed;left:0;top:0;z-index:99999999;width:100%;height:100%;background-color:rgba(20,30,80,.7);color:#f0f8ff;overflow:scroll}.title[data-v-78bb44fe]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}",""])},"7d21":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("8b83");function o(e){for(const t of Object.keys(e))e[t].collName=t;return e}t.createDbSchemas=o;class i{constructor(e,t,n){this.collName="",this.docSchema={},this.indexSchema=t,this.collOptions=e,this.collOptions._extDb=n}}function a(e,t){return{C:{insertOne:r.HTTP(e,t),insertMany:r.HTTP(e,t)},R:{findOne:r.HTTP(e,t),find:r.HTTP(e,t),countDocuments:r.HTTP(e,t),estimatedDocumentCount:r.HTTP(e,t),geoHaystackSearch:r.HTTP(e,t),distinct:r.HTTP(e,t)},U:{updateOne:r.HTTP(e,t),updateMany:r.HTTP(e,t),findOneAndReplace:r.HTTP(e,t),findOneAndUpdate:r.HTTP(e,t)},D:{deleteOne:r.HTTP(e,t),deleteMany:r.HTTP(e,t),findOneAndDelete:r.HTTP(e,t)}}}t.DbSchema=i;function c(e,t,n,r){const o=a(n,r),i=o["R"];return Object.defineProperty(i,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(i,"_schema",{enumerable:!1,writable:!1,value:e}),i}function u(e,t,n,r){const o=a(n,r),i={...o["U"],...o["R"]};return Object.defineProperty(i,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(i,"_schema",{enumerable:!1,writable:!1,value:e}),i}function s(e,t,n,r){const o=a(n,r),i={...o["C"],...o["U"],...o["R"]};return Object.defineProperty(i,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(i,"_schema",{enumerable:!1,writable:!1,value:e}),i}function l(e,t,n,r){const o=a(n,r),i={...o["C"],...o["R"],...o["U"],...o["D"]};return Object.defineProperty(i,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(i,"_schema",{enumerable:!1,writable:!1,value:e}),i}t.DB_R=c,t.DB_RU=u,t.DB_CRU=s,t.DB_CRUD=l},"8b83":function(e,t,n){"use strict";function r(e,t){const n=function(){throw new Error("INVALID HTTP API")},r=n;return r._sessions=e,r._actor=t,n}Object.defineProperty(t,"__esModule",{value:!0}),t.HTTP=r},"8bbf":function(e,n){e.exports=t},9224:function(e){e.exports={a:"@vmm/hello-world"}},db9b:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("7d21")),r(n("8b83"))}})});
{
"name": "@vmm/hello-world",
"version": "1.0.63",
"version": "1.0.74",
"description": " 全局库",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc