Commit 35b6b5fc authored by maggie's avatar maggie

Merge branch 'c_server_ts_perf' of...

Merge branch 'c_server_ts_perf' of http://gitlab2.dui88.com/qinhaitao/taobao-mini-template into c_server_ts_perf
parents ff0eace9 137dfd58
/** @format */
const fs = require('fs-extra')
const config = require('./config.json')
const serverTemplatePath = 'templates'
const run = async (gulp, nunjucksRender, rename, nunjucksRenderConfig) => {
//编译controller.common
for (let commonController in config.controllers.common) {
await gulp
.src(`${serverTemplatePath}/controllers/common/${commonController}.controller.njk`)
.pipe(
nunjucksRender({
...nunjucksRenderConfig,
data: {
model: config.controllers.common[commonController]
}
})
)
.pipe(rename(`${commonController}.controller.ts`))
.pipe(gulp.dest(nunjucksRenderConfig.ServerFullPath + '/controller/common'))
}
}
module.exports = {
run
}
// module.exports = {
// run: async function(gulp, nunjucksRender, rename, nunjucksRenderConfig) {
// nunjucksRenderConfig.data = {
// model: CodeGenerateConfig.model,
// config: CodeGenerateConfig.config
// }
// const ServerProjectRootPath = nunjucksRenderConfig.ServerFullPath
// //server
// const serverTemplatePath = 'templates/taobao_mini'
// const customService = {}
// for(let controller in Model) {
// const fnServices = {}
// for(let fn in Model[controller]) {
// fnServices[fn] = {}
// for(let decorator of Model[controller][fn].decorator) {
// if(decorator.type === 'custom') {
// await gulp.src(`${serverTemplatePath}/decorator/decorator.njk`)
// .pipe(nunjucksRender({
// ...nunjucksRenderConfig,
// data: {
// model: decorator,
// }
// }))
// .pipe(rename(`${decorator.name}.ts`))
// .pipe(
// gulp.dest(
// ServerProjectRootPath +
// CodeGenerateConfig.config.CustomDecoratorRelativePath
// )
// )
// }
// }
// for(let main of Model[controller][fn].main) {
// if(main.type === 'custom') {
// if(!customService[main.service]) {
// customService[main.service] = {}
// }
// if(!customService[main.service][main.function]) {
// customService[main.service][main.function] = main
// }
// }
// fnServices[fn][`${main.type}_${main.service}`] = main
// }
// }
// // 编译common/controller
// await gulp.src(`${serverTemplatePath}/controller/${controller}.controller.njk`)
// .pipe(nunjucksRender({
// ...nunjucksRenderConfig,
// data: {
// model: CodeGenerateConfig.model[controller],
// config: CodeGenerateConfig.config,
// services: fnServices
// }
// }))
// .pipe(rename(`${controller}.controller.ts`))
// .pipe(
// gulp.dest(
// ServerProjectRootPath +
// CodeGenerateConfig.config.ControllerRelativePath + 'common/'
// )
// )
// }
// // 编译custom/service
// for(let service in customService) {
// await gulp.src(`${serverTemplatePath}/service/service.njk`)
// .pipe(nunjucksRender({
// ...nunjucksRenderConfig,
// data: {
// model: {
// name: service,
// functions: customService[service]
// },
// }
// }))
// .pipe(rename(`${service}.service.ts`))
// .pipe(
// gulp.dest(
// ServerProjectRootPath +
// CodeGenerateConfig.config.CustomServiceRelativePath
// )
// )
// }
// await gulp.src(`${serverTemplatePath}/service/index.njk`)
// .pipe(nunjucksRender({
// ...nunjucksRenderConfig,
// data: {
// model: {
// customService
// }
// }
// }))
// .pipe(rename(`index.ts`))
// .pipe(
// gulp.dest(
// ServerProjectRootPath +
// CodeGenerateConfig.config.CustomServiceRelativePath
// )
// )
// }
// }
\ No newline at end of file
/** @format */
const gulp = require('gulp')
const rename = require('gulp-rename')
const nunjucksRender = require('gulp-nunjucks-render')
const codeGenerate = require('./generate')
var jsScript = 'node'
if (process.env.npm_config_argv !== undefined && process.env.npm_config_argv.indexOf('debug') > 0) {
jsScript = 'node debug'
}
const ServerFullPath = '../src'
const nunjucksRenderConfig = {
path: 'templates',
ext: '.ts',
ServerFullPath
}
gulp.task('code', function () {
require('events').EventEmitter.defaultMaxListeners = 0
return codeGenerate.run(gulp, nunjucksRender, rename, nunjucksRenderConfig)
})
{
"name": "nunjucks-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"gulp": "^4.0.2",
"gulp-nunjucks-render": "^2.2.3",
"gulp-rename": "^2.0.0"
},
"dependencies": {
"fs-extra": "^9.0.1"
}
}
/** @format */
export const <$ decoratorName $> = (target: any, name: string, descriptor: PropertyDescriptor) => {
const method = descriptor.value
descriptor.value = async function (...args: any[]) {
const [context, otherArgs = {}] = args
return method.apply(this, [context, { ...otherArgs }])
}
}
\ No newline at end of file
/**
* @format
*/
export default class <$ serviceName $> {
context: IContext<any>
constructor(context: IContext<any>) {
this.context = context
}
/**
* @desc 活动基本信息
* @param {活动id} activityId
* @returns 返回活动详情,若不存在活动,返回为null
*/
async getBaseInfo(activityId: string): Promise<IActivityInfo> {
return await this.activitydao.findOne({ _id: activityId, deleteStatus: ACTIVITY_STATUS.NORMAL })
}
/**
*
* 根据itemIds获取商品列表
*
* @param {string} itemIds
* @param {string} session
* @return {Array}
* @memberof BaseService
*/
async getItemListByIds(itemIds: string, session: string): Promise<Array<ITaoBaoItems>> {
const GOODSINFO =
'detail_url,approve_status,num_iid,title,nick,type,cid,pic_url,num,props,valid_thru,list_time,desc,price,has_discount,has_invoice,has_warranty,has_showcase,modified,delist_time,postage_id,seller_cids,outer_id,sold_quantity'
const result = await TBAPIS.getItemListByItemIds(this.context, session, itemIds, { fields: GOODSINFO })
const items = result?.items?.item || []
const list = items.map(
(v: { num_iid: string; title: string; price: string; detail_url: string; pic_url: string; desc: string }) => {
return {
itemId: v.num_iid,
name: v.title,
price: v.price,
url: v.detail_url,
image: v.pic_url,
desc: v.desc
}
}
)
return list
}
}
\ No newline at end of file
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
a-sync-waterfall@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/a-sync-waterfall/-/a-sync-waterfall-1.0.1.tgz#75b6b6aa72598b497a125e7a2770f14f4c8a1fa7"
integrity sha1-dba2qnJZi0l6El56J3DxT0yKH6c=
ansi-colors@^1.0.1:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/ansi-colors/-/ansi-colors-1.1.0.tgz#6374b4dd5d4718ff3ce27a671a3b1cad077132a9"
integrity sha1-Y3S03V1HGP884npnGjscrQdxMqk=
dependencies:
ansi-wrap "^0.1.0"
ansi-gray@^0.1.1:
version "0.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/ansi-gray/-/ansi-gray-0.1.1.tgz#2962cf54ec9792c48510a3deb524436861ef7251"
integrity sha1-KWLPVOyXksSFEKPetSRDaGHvclE=
dependencies:
ansi-wrap "0.1.0"
ansi-regex@^2.0.0:
version "2.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8=
ansi-wrap@0.1.0, ansi-wrap@^0.1.0:
version "0.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/ansi-wrap/-/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf"
integrity sha1-qCJQ3bABXponyoLoLqYDu/pF768=
anymatch@^2.0.0:
version "2.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb"
integrity sha1-vLJLTzeTTZqnrBe0ra+J58du8us=
dependencies:
micromatch "^3.1.4"
normalize-path "^2.1.1"
anymatch@~3.1.1:
version "3.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142"
integrity sha1-xV7PAhheJGklk5kxDBc84xIzsUI=
dependencies:
normalize-path "^3.0.0"
picomatch "^2.0.4"
append-buffer@^1.0.2:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/append-buffer/-/append-buffer-1.0.2.tgz#d8220cf466081525efea50614f3de6514dfa58f1"
integrity sha1-2CIM9GYIFSXv6lBhTz3mUU36WPE=
dependencies:
buffer-equal "^1.0.0"
archy@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40"
integrity sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=
arr-diff@^4.0.0:
version "4.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520"
integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=
arr-filter@^1.1.1:
version "1.1.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/arr-filter/-/arr-filter-1.1.2.tgz#43fdddd091e8ef11aa4c45d9cdc18e2dff1711ee"
integrity sha1-Q/3d0JHo7xGqTEXZzcGOLf8XEe4=
dependencies:
make-iterator "^1.0.0"
arr-flatten@^1.0.1, arr-flatten@^1.1.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1"
integrity sha1-NgSLv/TntH4TZkQxbJlmnqWukfE=
arr-map@^2.0.0, arr-map@^2.0.2:
version "2.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/arr-map/-/arr-map-2.0.2.tgz#3a77345ffc1cf35e2a91825601f9e58f2e24cac4"
integrity sha1-Onc0X/wc814qkYJWAfnljy4kysQ=
dependencies:
make-iterator "^1.0.0"
arr-union@^3.1.0:
version "3.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4"
integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=
array-each@^1.0.0, array-each@^1.0.1:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/array-each/-/array-each-1.0.1.tgz#a794af0c05ab1752846ee753a1f211a05ba0c44f"
integrity sha1-p5SvDAWrF1KEbudTofIRoFugxE8=
array-initial@^1.0.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/array-initial/-/array-initial-1.1.0.tgz#2fa74b26739371c3947bd7a7adc73be334b3d795"
integrity sha1-L6dLJnOTccOUe9enrcc74zSz15U=
dependencies:
array-slice "^1.0.0"
is-number "^4.0.0"
array-last@^1.1.1:
version "1.3.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/array-last/-/array-last-1.3.0.tgz#7aa77073fec565ddab2493f5f88185f404a9d336"
integrity sha1-eqdwc/7FZd2rJJP1+IGF9ASp0zY=
dependencies:
is-number "^4.0.0"
array-slice@^1.0.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/array-slice/-/array-slice-1.1.0.tgz#e368ea15f89bc7069f7ffb89aec3a6c7d4ac22d4"
integrity sha1-42jqFfibxwaff/uJrsOmx9SsItQ=
array-sort@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/array-sort/-/array-sort-1.0.0.tgz#e4c05356453f56f53512a7d1d6123f2c54c0a88a"
integrity sha1-5MBTVkU/VvU1EqfR1hI/LFTAqIo=
dependencies:
default-compare "^1.0.0"
get-value "^2.0.6"
kind-of "^5.0.2"
array-unique@^0.3.2:
version "0.3.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428"
integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=
asap@^2.0.3:
version "2.0.6"
resolved "http://registry.eazytec.com/repository/npm-eazytec/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46"
integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=
assign-symbols@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367"
integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=
async-done@^1.2.0, async-done@^1.2.2:
version "1.3.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/async-done/-/async-done-1.3.2.tgz#5e15aa729962a4b07414f528a88cdf18e0b290a2"
integrity sha1-XhWqcplipLB0FPUoqIzfGOCykKI=
dependencies:
end-of-stream "^1.1.0"
once "^1.3.2"
process-nextick-args "^2.0.0"
stream-exhaust "^1.0.1"
async-each@^1.0.1:
version "1.0.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf"
integrity sha1-tyfb+H12UWAvBvTUrDh/R9kbDL8=
async-settle@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/async-settle/-/async-settle-1.0.0.tgz#1d0a914bb02575bec8a8f3a74e5080f72b2c0c6b"
integrity sha1-HQqRS7Aldb7IqPOnTlCA9yssDGs=
dependencies:
async-done "^1.2.2"
at-least-node@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2"
integrity sha1-YCzUtG6EStTv/JKoARo8RuAjjcI=
atob@^2.1.2:
version "2.1.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
integrity sha1-bZUX654DDSQ2ZmZR6GvZ9vE1M8k=
bach@^1.0.0:
version "1.2.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/bach/-/bach-1.2.0.tgz#4b3ce96bf27134f79a1b414a51c14e34c3bd9880"
integrity sha1-Szzpa/JxNPeaG0FKUcFONMO9mIA=
dependencies:
arr-filter "^1.1.1"
arr-flatten "^1.0.1"
arr-map "^2.0.0"
array-each "^1.0.0"
array-initial "^1.0.0"
array-last "^1.1.1"
async-done "^1.2.2"
async-settle "^1.0.0"
now-and-later "^2.0.0"
balanced-match@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
base@^0.11.1:
version "0.11.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f"
integrity sha1-e95c7RRbbVUakNuH+DxVi060io8=
dependencies:
cache-base "^1.0.1"
class-utils "^0.3.5"
component-emitter "^1.2.1"
define-property "^1.0.0"
isobject "^3.0.1"
mixin-deep "^1.2.0"
pascalcase "^0.1.1"
binary-extensions@^1.0.0:
version "1.13.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65"
integrity sha1-WYr+VHVbKGilMw0q/51Ou1Mgm2U=
binary-extensions@^2.0.0:
version "2.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/binary-extensions/-/binary-extensions-2.1.0.tgz#30fa40c9e7fe07dbc895678cd287024dea241dd9"
integrity sha1-MPpAyef+B9vIlWeM0ocCTeokHdk=
bindings@^1.5.0:
version "1.5.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df"
integrity sha1-EDU8npRTNLwFEabZCzj7x8nFBN8=
dependencies:
file-uri-to-path "1.0.0"
brace-expansion@^1.1.7:
version "1.1.11"
resolved "http://registry.eazytec.com/repository/npm-eazytec/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
integrity sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=
dependencies:
balanced-match "^1.0.0"
concat-map "0.0.1"
braces@^2.3.1, braces@^2.3.2:
version "2.3.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729"
integrity sha1-WXn9PxTNUxVl5fot8av/8d+u5yk=
dependencies:
arr-flatten "^1.1.0"
array-unique "^0.3.2"
extend-shallow "^2.0.1"
fill-range "^4.0.0"
isobject "^3.0.1"
repeat-element "^1.1.2"
snapdragon "^0.8.1"
snapdragon-node "^2.0.1"
split-string "^3.0.2"
to-regex "^3.0.1"
braces@~3.0.2:
version "3.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
integrity sha1-NFThpGLujVmeI23zNs2epPiv4Qc=
dependencies:
fill-range "^7.0.1"
buffer-equal@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/buffer-equal/-/buffer-equal-1.0.0.tgz#59616b498304d556abd466966b22eeda3eca5fbe"
integrity sha1-WWFrSYME1Var1GaWayLu2j7KX74=
buffer-from@^1.0.0:
version "1.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
integrity sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8=
cache-base@^1.0.1:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2"
integrity sha1-Cn9GQWgxyLZi7jb+TnxZ129marI=
dependencies:
collection-visit "^1.0.0"
component-emitter "^1.2.1"
get-value "^2.0.6"
has-value "^1.0.0"
isobject "^3.0.1"
set-value "^2.0.0"
to-object-path "^0.3.0"
union-value "^1.0.0"
unset-value "^1.0.0"
call-bind@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/call-bind/-/call-bind-1.0.0.tgz#24127054bb3f9bdcb4b1fb82418186072f77b8ce"
integrity sha1-JBJwVLs/m9y0sfuCQYGGBy93uM4=
dependencies:
function-bind "^1.1.1"
get-intrinsic "^1.0.0"
camelcase@^3.0.0:
version "3.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a"
integrity sha1-MvxLn82vhF/N9+c7uXysImHwqwo=
chokidar@^2.0.0:
version "2.1.8"
resolved "http://registry.eazytec.com/repository/npm-eazytec/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917"
integrity sha1-gEs6e2qZNYw8XGHnHYco8EHP+Rc=
dependencies:
anymatch "^2.0.0"
async-each "^1.0.1"
braces "^2.3.2"
glob-parent "^3.1.0"
inherits "^2.0.3"
is-binary-path "^1.0.0"
is-glob "^4.0.0"
normalize-path "^3.0.0"
path-is-absolute "^1.0.0"
readdirp "^2.2.1"
upath "^1.1.1"
optionalDependencies:
fsevents "^1.2.7"
chokidar@^3.3.0:
version "3.4.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/chokidar/-/chokidar-3.4.3.tgz#c1df38231448e45ca4ac588e6c79573ba6a57d5b"
integrity sha1-wd84IxRI5FykrFiObHlXO6alfVs=
dependencies:
anymatch "~3.1.1"
braces "~3.0.2"
glob-parent "~5.1.0"
is-binary-path "~2.1.0"
is-glob "~4.0.1"
normalize-path "~3.0.0"
readdirp "~3.5.0"
optionalDependencies:
fsevents "~2.1.2"
class-utils@^0.3.5:
version "0.3.6"
resolved "http://registry.eazytec.com/repository/npm-eazytec/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463"
integrity sha1-+TNprouafOAv1B+q0MqDAzGQxGM=
dependencies:
arr-union "^3.1.0"
define-property "^0.2.5"
isobject "^3.0.0"
static-extend "^0.1.1"
cliui@^3.2.0:
version "3.2.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d"
integrity sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=
dependencies:
string-width "^1.0.1"
strip-ansi "^3.0.1"
wrap-ansi "^2.0.0"
clone-buffer@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/clone-buffer/-/clone-buffer-1.0.0.tgz#e3e25b207ac4e701af721e2cb5a16792cac3dc58"
integrity sha1-4+JbIHrE5wGvch4staFnksrD3Fg=
clone-stats@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/clone-stats/-/clone-stats-1.0.0.tgz#b3782dff8bb5474e18b9b6bf0fdfe782f8777680"
integrity sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=
clone@^2.1.1:
version "2.1.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f"
integrity sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=
cloneable-readable@^1.0.0:
version "1.1.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/cloneable-readable/-/cloneable-readable-1.1.3.tgz#120a00cb053bfb63a222e709f9683ea2e11d8cec"
integrity sha1-EgoAywU7+2OiIucJ+Wg+ouEdjOw=
dependencies:
inherits "^2.0.1"
process-nextick-args "^2.0.0"
readable-stream "^2.3.5"
code-point-at@^1.0.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=
collection-map@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/collection-map/-/collection-map-1.0.0.tgz#aea0f06f8d26c780c2b75494385544b2255af18c"
integrity sha1-rqDwb40mx4DCt1SUOFVEsiVa8Yw=
dependencies:
arr-map "^2.0.2"
for-own "^1.0.0"
make-iterator "^1.0.0"
collection-visit@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0"
integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=
dependencies:
map-visit "^1.0.0"
object-visit "^1.0.0"
color-support@^1.1.3:
version "1.1.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2"
integrity sha1-k4NDeaHMmgxh+C9S8NBDIiUb1aI=
commander@^5.1.0:
version "5.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae"
integrity sha1-Rqu9FlL44Fm92u+Zu9yyrZzxea4=
component-emitter@^1.2.1:
version "1.3.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0"
integrity sha1-FuQHD7qK4ptnnyIVhT7hgasuq8A=
concat-map@0.0.1:
version "0.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
concat-stream@^1.6.0:
version "1.6.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34"
integrity sha1-kEvfGUzTEi/Gdcd/xKw9T/D9GjQ=
dependencies:
buffer-from "^1.0.0"
inherits "^2.0.3"
readable-stream "^2.2.2"
typedarray "^0.0.6"
convert-source-map@^1.5.0:
version "1.7.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442"
integrity sha1-F6LLiC1/d9NJBYXizmxSRCSjpEI=
dependencies:
safe-buffer "~5.1.1"
copy-descriptor@^0.1.0:
version "0.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=
copy-props@^2.0.1:
version "2.0.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/copy-props/-/copy-props-2.0.4.tgz#93bb1cadfafd31da5bb8a9d4b41f471ec3a72dfe"
integrity sha1-k7scrfr9MdpbuKnUtB9HHsOnLf4=
dependencies:
each-props "^1.3.0"
is-plain-object "^2.0.1"
core-util-is@~1.0.0:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=
d@1, d@^1.0.1:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a"
integrity sha1-hpgJU3LVjb7jRv/Qxwk/mfj561o=
dependencies:
es5-ext "^0.10.50"
type "^1.0.1"
debug@^2.2.0, debug@^2.3.3:
version "2.6.9"
resolved "http://registry.eazytec.com/repository/npm-eazytec/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
integrity sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=
dependencies:
ms "2.0.0"
decamelize@^1.1.1:
version "1.2.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=
decode-uri-component@^0.2.0:
version "0.2.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545"
integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=
default-compare@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/default-compare/-/default-compare-1.0.0.tgz#cb61131844ad84d84788fb68fd01681ca7781a2f"
integrity sha1-y2ETGESthNhHiPto/QFoHKd4Gi8=
dependencies:
kind-of "^5.0.2"
default-resolution@^2.0.0:
version "2.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/default-resolution/-/default-resolution-2.0.0.tgz#bcb82baa72ad79b426a76732f1a81ad6df26d684"
integrity sha1-vLgrqnKtebQmp2cy8aga1t8m1oQ=
define-properties@^1.1.3:
version "1.1.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1"
integrity sha1-z4jabL7ib+bbcJT2HYcMvYTO6fE=
dependencies:
object-keys "^1.0.12"
define-property@^0.2.5:
version "0.2.5"
resolved "http://registry.eazytec.com/repository/npm-eazytec/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116"
integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=
dependencies:
is-descriptor "^0.1.0"
define-property@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6"
integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY=
dependencies:
is-descriptor "^1.0.0"
define-property@^2.0.2:
version "2.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d"
integrity sha1-1Flono1lS6d+AqgX+HENcCyxbp0=
dependencies:
is-descriptor "^1.0.2"
isobject "^3.0.1"
detect-file@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/detect-file/-/detect-file-1.0.0.tgz#f0d66d03672a825cb1b73bdb3fe62310c8e552b7"
integrity sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=
duplexify@^3.6.0:
version "3.7.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/duplexify/-/duplexify-3.7.1.tgz#2a4df5317f6ccfd91f86d6fd25d8d8a103b88309"
integrity sha1-Kk31MX9sz9kfhtb9JdjYoQO4gwk=
dependencies:
end-of-stream "^1.0.0"
inherits "^2.0.1"
readable-stream "^2.0.0"
stream-shift "^1.0.0"
each-props@^1.3.0:
version "1.3.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/each-props/-/each-props-1.3.2.tgz#ea45a414d16dd5cfa419b1a81720d5ca06892333"
integrity sha1-6kWkFNFt1c+kGbGoFyDVygaJIzM=
dependencies:
is-plain-object "^2.0.1"
object.defaults "^1.1.0"
end-of-stream@^1.0.0, end-of-stream@^1.1.0:
version "1.4.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
integrity sha1-WuZKX0UFe682JuwU2gyl5LJDHrA=
dependencies:
once "^1.4.0"
error-ex@^1.2.0:
version "1.3.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"
integrity sha1-tKxAZIEH/c3PriQvQovqihTU8b8=
dependencies:
is-arrayish "^0.2.1"
es5-ext@^0.10.35, es5-ext@^0.10.46, es5-ext@^0.10.50:
version "0.10.53"
resolved "http://registry.eazytec.com/repository/npm-eazytec/es5-ext/-/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1"
integrity sha1-k8WjrP2+8nUiCtcmRK0C7hg2jeE=
dependencies:
es6-iterator "~2.0.3"
es6-symbol "~3.1.3"
next-tick "~1.0.0"
es6-iterator@^2.0.1, es6-iterator@^2.0.3, es6-iterator@~2.0.3:
version "2.0.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7"
integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c=
dependencies:
d "1"
es5-ext "^0.10.35"
es6-symbol "^3.1.1"
es6-symbol@^3.1.1, es6-symbol@~3.1.3:
version "3.1.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/es6-symbol/-/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18"
integrity sha1-utXTwbzawoJp9MszHkMceKxwXRg=
dependencies:
d "^1.0.1"
ext "^1.1.2"
es6-weak-map@^2.0.1:
version "2.0.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/es6-weak-map/-/es6-weak-map-2.0.3.tgz#b6da1f16cc2cc0d9be43e6bdbfc5e7dfcdf31d53"
integrity sha1-ttofFswswNm+Q+a9v8Xn383zHVM=
dependencies:
d "1"
es5-ext "^0.10.46"
es6-iterator "^2.0.3"
es6-symbol "^3.1.1"
expand-brackets@^2.1.4:
version "2.1.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622"
integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI=
dependencies:
debug "^2.3.3"
define-property "^0.2.5"
extend-shallow "^2.0.1"
posix-character-classes "^0.1.0"
regex-not "^1.0.0"
snapdragon "^0.8.1"
to-regex "^3.0.1"
expand-tilde@^2.0.0, expand-tilde@^2.0.2:
version "2.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/expand-tilde/-/expand-tilde-2.0.2.tgz#97e801aa052df02454de46b02bf621642cdc8502"
integrity sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=
dependencies:
homedir-polyfill "^1.0.1"
ext@^1.1.2:
version "1.4.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/ext/-/ext-1.4.0.tgz#89ae7a07158f79d35517882904324077e4379244"
integrity sha1-ia56BxWPedNVF4gpBDJAd+Q3kkQ=
dependencies:
type "^2.0.0"
extend-shallow@^2.0.1:
version "2.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f"
integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=
dependencies:
is-extendable "^0.1.0"
extend-shallow@^3.0.0, extend-shallow@^3.0.2:
version "3.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8"
integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=
dependencies:
assign-symbols "^1.0.0"
is-extendable "^1.0.1"
extend@^3.0.0:
version "3.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa"
integrity sha1-+LETa0Bx+9jrFAr/hYsQGewpFfo=
extglob@^2.0.4:
version "2.0.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543"
integrity sha1-rQD+TcYSqSMuhxhxHcXLWrAoVUM=
dependencies:
array-unique "^0.3.2"
define-property "^1.0.0"
expand-brackets "^2.1.4"
extend-shallow "^2.0.1"
fragment-cache "^0.2.1"
regex-not "^1.0.0"
snapdragon "^0.8.1"
to-regex "^3.0.1"
fancy-log@^1.3.2:
version "1.3.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/fancy-log/-/fancy-log-1.3.3.tgz#dbc19154f558690150a23953a0adbd035be45fc7"
integrity sha1-28GRVPVYaQFQojlToK29A1vkX8c=
dependencies:
ansi-gray "^0.1.1"
color-support "^1.1.3"
parse-node-version "^1.0.0"
time-stamp "^1.0.0"
fast-levenshtein@^1.0.0:
version "1.1.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/fast-levenshtein/-/fast-levenshtein-1.1.4.tgz#e6a754cc8f15e58987aa9cbd27af66fd6f4e5af9"
integrity sha1-5qdUzI8V5YmHqpy9J69m/W9OWvk=
file-uri-to-path@1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd"
integrity sha1-VTp7hEb/b2hDWcRF8eN6BdrMM90=
fill-range@^4.0.0:
version "4.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7"
integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=
dependencies:
extend-shallow "^2.0.1"
is-number "^3.0.0"
repeat-string "^1.6.1"
to-regex-range "^2.1.0"
fill-range@^7.0.1:
version "7.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
integrity sha1-GRmmp8df44ssfHflGYU12prN2kA=
dependencies:
to-regex-range "^5.0.1"
find-up@^1.0.0:
version "1.1.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
integrity sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=
dependencies:
path-exists "^2.0.0"
pinkie-promise "^2.0.0"
findup-sync@^2.0.0:
version "2.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/findup-sync/-/findup-sync-2.0.0.tgz#9326b1488c22d1a6088650a86901b2d9a90a2cbc"
integrity sha1-kyaxSIwi0aYIhlCoaQGy2akKLLw=
dependencies:
detect-file "^1.0.0"
is-glob "^3.1.0"
micromatch "^3.0.4"
resolve-dir "^1.0.1"
findup-sync@^3.0.0:
version "3.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/findup-sync/-/findup-sync-3.0.0.tgz#17b108f9ee512dfb7a5c7f3c8b27ea9e1a9c08d1"
integrity sha1-F7EI+e5RLft6XH88iyfqnhqcCNE=
dependencies:
detect-file "^1.0.0"
is-glob "^4.0.0"
micromatch "^3.0.4"
resolve-dir "^1.0.1"
fined@^1.0.1:
version "1.2.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/fined/-/fined-1.2.0.tgz#d00beccf1aa2b475d16d423b0238b713a2c4a37b"
integrity sha1-0AvszxqitHXRbUI7Aji3E6LEo3s=
dependencies:
expand-tilde "^2.0.2"
is-plain-object "^2.0.3"
object.defaults "^1.1.0"
object.pick "^1.2.0"
parse-filepath "^1.0.1"
flagged-respawn@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/flagged-respawn/-/flagged-respawn-1.0.1.tgz#e7de6f1279ddd9ca9aac8a5971d618606b3aab41"
integrity sha1-595vEnnd2cqarIpZcdYYYGs6q0E=
flush-write-stream@^1.0.2:
version "1.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/flush-write-stream/-/flush-write-stream-1.1.1.tgz#8dd7d873a1babc207d94ead0c2e0e44276ebf2e8"
integrity sha1-jdfYc6G6vCB9lOrQwuDkQnbr8ug=
dependencies:
inherits "^2.0.3"
readable-stream "^2.3.6"
for-in@^1.0.1, for-in@^1.0.2:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=
for-own@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/for-own/-/for-own-1.0.0.tgz#c63332f415cedc4b04dbfe70cf836494c53cb44b"
integrity sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=
dependencies:
for-in "^1.0.1"
fragment-cache@^0.2.1:
version "0.2.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19"
integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=
dependencies:
map-cache "^0.2.2"
fs-extra@^9.0.1:
version "9.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc"
integrity sha1-kQ2gBiQ3ukw5/t2GPxZ1zP78ufw=
dependencies:
at-least-node "^1.0.0"
graceful-fs "^4.2.0"
jsonfile "^6.0.1"
universalify "^1.0.0"
fs-mkdirp-stream@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz#0b7815fc3201c6a69e14db98ce098c16935259eb"
integrity sha1-C3gV/DIBxqaeFNuYzgmMFpNSWes=
dependencies:
graceful-fs "^4.1.11"
through2 "^2.0.3"
fs.realpath@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8=
fsevents@^1.2.7:
version "1.2.13"
resolved "http://registry.eazytec.com/repository/npm-eazytec/fsevents/-/fsevents-1.2.13.tgz#f325cb0455592428bcf11b383370ef70e3bfcc38"
integrity sha1-8yXLBFVZJCi88Rs4M3DvcOO/zDg=
dependencies:
bindings "^1.5.0"
nan "^2.12.1"
fsevents@~2.1.2:
version "2.1.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e"
integrity sha1-+3OHA66NL5/pAMM4Nt3r7ouX8j4=
function-bind@^1.1.1:
version "1.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
integrity sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0=
get-caller-file@^1.0.1:
version "1.0.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a"
integrity sha1-+Xj6TJDR3+f/LWvtoqUV5xO9z0o=
get-intrinsic@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/get-intrinsic/-/get-intrinsic-1.0.1.tgz#94a9768fcbdd0595a1c9273aacf4c89d075631be"
integrity sha1-lKl2j8vdBZWhySc6rPTInQdWMb4=
dependencies:
function-bind "^1.1.1"
has "^1.0.3"
has-symbols "^1.0.1"
get-value@^2.0.3, get-value@^2.0.6:
version "2.0.6"
resolved "http://registry.eazytec.com/repository/npm-eazytec/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28"
integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=
glob-parent@^3.1.0:
version "3.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae"
integrity sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=
dependencies:
is-glob "^3.1.0"
path-dirname "^1.0.0"
glob-parent@~5.1.0:
version "5.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/glob-parent/-/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229"
integrity sha1-tsHvQXxOVmPqSY8cRa+saRa7wik=
dependencies:
is-glob "^4.0.1"
glob-stream@^6.1.0:
version "6.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/glob-stream/-/glob-stream-6.1.0.tgz#7045c99413b3eb94888d83ab46d0b404cc7bdde4"
integrity sha1-cEXJlBOz65SIjYOrRtC0BMx73eQ=
dependencies:
extend "^3.0.0"
glob "^7.1.1"
glob-parent "^3.1.0"
is-negated-glob "^1.0.0"
ordered-read-streams "^1.0.0"
pumpify "^1.3.5"
readable-stream "^2.1.5"
remove-trailing-separator "^1.0.1"
to-absolute-glob "^2.0.0"
unique-stream "^2.0.2"
glob-watcher@^5.0.3:
version "5.0.5"
resolved "http://registry.eazytec.com/repository/npm-eazytec/glob-watcher/-/glob-watcher-5.0.5.tgz#aa6bce648332924d9a8489be41e3e5c52d4186dc"
integrity sha1-qmvOZIMykk2ahIm+QePlxS1Bhtw=
dependencies:
anymatch "^2.0.0"
async-done "^1.2.0"
chokidar "^2.0.0"
is-negated-glob "^1.0.0"
just-debounce "^1.0.0"
normalize-path "^3.0.0"
object.defaults "^1.1.0"
glob@^7.1.1:
version "7.1.6"
resolved "http://registry.eazytec.com/repository/npm-eazytec/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
integrity sha1-FB8zuBp8JJLhJVlDB0gMRmeSeKY=
dependencies:
fs.realpath "^1.0.0"
inflight "^1.0.4"
inherits "2"
minimatch "^3.0.4"
once "^1.3.0"
path-is-absolute "^1.0.0"
global-modules@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/global-modules/-/global-modules-1.0.0.tgz#6d770f0eb523ac78164d72b5e71a8877265cc3ea"
integrity sha1-bXcPDrUjrHgWTXK15xqIdyZcw+o=
dependencies:
global-prefix "^1.0.1"
is-windows "^1.0.1"
resolve-dir "^1.0.0"
global-prefix@^1.0.1:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/global-prefix/-/global-prefix-1.0.2.tgz#dbf743c6c14992593c655568cb66ed32c0122ebe"
integrity sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=
dependencies:
expand-tilde "^2.0.2"
homedir-polyfill "^1.0.1"
ini "^1.3.4"
is-windows "^1.0.1"
which "^1.2.14"
glogg@^1.0.0:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/glogg/-/glogg-1.0.2.tgz#2d7dd702beda22eb3bffadf880696da6d846313f"
integrity sha1-LX3XAr7aIus7/634gGltpthGMT8=
dependencies:
sparkles "^1.0.0"
graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0:
version "4.2.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb"
integrity sha1-Ila94U02MpWMRl68ltxGfKB6Kfs=
gulp-cli@^2.2.0:
version "2.3.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/gulp-cli/-/gulp-cli-2.3.0.tgz#ec0d380e29e52aa45e47977f0d32e18fd161122f"
integrity sha1-7A04DinlKqReR5d/DTLhj9FhEi8=
dependencies:
ansi-colors "^1.0.1"
archy "^1.0.0"
array-sort "^1.0.0"
color-support "^1.1.3"
concat-stream "^1.6.0"
copy-props "^2.0.1"
fancy-log "^1.3.2"
gulplog "^1.0.0"
interpret "^1.4.0"
isobject "^3.0.1"
liftoff "^3.1.0"
matchdep "^2.0.0"
mute-stdout "^1.0.0"
pretty-hrtime "^1.0.0"
replace-homedir "^1.0.0"
semver-greatest-satisfied-range "^1.1.0"
v8flags "^3.2.0"
yargs "^7.1.0"
gulp-nunjucks-render@^2.2.3:
version "2.2.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/gulp-nunjucks-render/-/gulp-nunjucks-render-2.2.3.tgz#e42b5d8e107a9ac56aa900c2def00003e06e8990"
integrity sha1-5CtdjhB6msVqqQDC3vAAA+BuiZA=
dependencies:
lodash "^4.17.11"
nunjucks "^3.1.2"
plugin-error "^1.0.1"
replace-ext "^1.0.0"
through2 "^2.0.3"
gulp-rename@^2.0.0:
version "2.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/gulp-rename/-/gulp-rename-2.0.0.tgz#9bbc3962b0c0f52fc67cd5eaff6c223ec5b9cf6c"
integrity sha1-m7w5YrDA9S/GfNXq/2wiPsW5z2w=
gulp@^4.0.2:
version "4.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/gulp/-/gulp-4.0.2.tgz#543651070fd0f6ab0a0650c6a3e6ff5a7cb09caa"
integrity sha1-VDZRBw/Q9qsKBlDGo+b/WnywnKo=
dependencies:
glob-watcher "^5.0.3"
gulp-cli "^2.2.0"
undertaker "^1.2.1"
vinyl-fs "^3.0.0"
gulplog@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/gulplog/-/gulplog-1.0.0.tgz#e28c4d45d05ecbbed818363ce8f9c5926229ffe5"
integrity sha1-4oxNRdBey77YGDY86PnFkmIp/+U=
dependencies:
glogg "^1.0.0"
has-symbols@^1.0.1:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8"
integrity sha1-n1IUdYpEGWxAbZvXbOv4HsLdMeg=
has-value@^0.3.1:
version "0.3.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f"
integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=
dependencies:
get-value "^2.0.3"
has-values "^0.1.4"
isobject "^2.0.0"
has-value@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177"
integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=
dependencies:
get-value "^2.0.6"
has-values "^1.0.0"
isobject "^3.0.0"
has-values@^0.1.4:
version "0.1.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771"
integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E=
has-values@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f"
integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=
dependencies:
is-number "^3.0.0"
kind-of "^4.0.0"
has@^1.0.3:
version "1.0.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
integrity sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y=
dependencies:
function-bind "^1.1.1"
homedir-polyfill@^1.0.1:
version "1.0.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8"
integrity sha1-dDKYzvTlrz4ZQWH7rcwhUdOgWOg=
dependencies:
parse-passwd "^1.0.0"
hosted-git-info@^2.1.4:
version "2.8.8"
resolved "http://registry.eazytec.com/repository/npm-eazytec/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488"
integrity sha1-dTm9S8Hg4KiVgVouAmJCCxKFhIg=
inflight@^1.0.4:
version "1.0.6"
resolved "http://registry.eazytec.com/repository/npm-eazytec/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=
dependencies:
once "^1.3.0"
wrappy "1"
inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.3:
version "2.0.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
integrity sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w=
ini@^1.3.4:
version "1.3.5"
resolved "http://registry.eazytec.com/repository/npm-eazytec/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927"
integrity sha1-7uJfVtscnsYIXgwid4CD9Zar+Sc=
interpret@^1.4.0:
version "1.4.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e"
integrity sha1-Zlq4vE2iendKQFhOgS4+D6RbGh4=
invert-kv@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6"
integrity sha1-EEqOSqym09jNFXqO+L+rLXo//bY=
is-absolute@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576"
integrity sha1-OV4a6EsR8mrReV5zwXN45IowFXY=
dependencies:
is-relative "^1.0.0"
is-windows "^1.0.1"
is-accessor-descriptor@^0.1.6:
version "0.1.6"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6"
integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=
dependencies:
kind-of "^3.0.2"
is-accessor-descriptor@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656"
integrity sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=
dependencies:
kind-of "^6.0.0"
is-arrayish@^0.2.1:
version "0.2.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=
is-binary-path@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898"
integrity sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=
dependencies:
binary-extensions "^1.0.0"
is-binary-path@~2.1.0:
version "2.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
integrity sha1-6h9/O4DwZCNug0cPhsCcJU+0Wwk=
dependencies:
binary-extensions "^2.0.0"
is-buffer@^1.1.5:
version "1.1.6"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
integrity sha1-76ouqdqg16suoTqXsritUf776L4=
is-core-module@^2.0.0:
version "2.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-core-module/-/is-core-module-2.0.0.tgz#58531b70aed1db7c0e8d4eb1a0a2d1ddd64bd12d"
integrity sha1-WFMbcK7R23wOjU6xoKLR3dZL0S0=
dependencies:
has "^1.0.3"
is-data-descriptor@^0.1.4:
version "0.1.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56"
integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=
dependencies:
kind-of "^3.0.2"
is-data-descriptor@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7"
integrity sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=
dependencies:
kind-of "^6.0.0"
is-descriptor@^0.1.0:
version "0.1.6"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca"
integrity sha1-Nm2CQN3kh8pRgjsaufB6EKeCUco=
dependencies:
is-accessor-descriptor "^0.1.6"
is-data-descriptor "^0.1.4"
kind-of "^5.0.0"
is-descriptor@^1.0.0, is-descriptor@^1.0.2:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec"
integrity sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=
dependencies:
is-accessor-descriptor "^1.0.0"
is-data-descriptor "^1.0.0"
kind-of "^6.0.2"
is-extendable@^0.1.0, is-extendable@^0.1.1:
version "0.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89"
integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=
is-extendable@^1.0.1:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4"
integrity sha1-p0cPnkJnM9gb2B4RVSZOOjUHyrQ=
dependencies:
is-plain-object "^2.0.4"
is-extglob@^2.1.0, is-extglob@^2.1.1:
version "2.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=
is-fullwidth-code-point@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb"
integrity sha1-754xOG8DGn8NZDr4L95QxFfvAMs=
dependencies:
number-is-nan "^1.0.0"
is-glob@^3.1.0:
version "3.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a"
integrity sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=
dependencies:
is-extglob "^2.1.0"
is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1:
version "4.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc"
integrity sha1-dWfb6fL14kZ7x3q4PEopSCQHpdw=
dependencies:
is-extglob "^2.1.1"
is-negated-glob@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-negated-glob/-/is-negated-glob-1.0.0.tgz#6910bca5da8c95e784b5751b976cf5a10fee36d2"
integrity sha1-aRC8pdqMleeEtXUbl2z1oQ/uNtI=
is-number@^3.0.0:
version "3.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195"
integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=
dependencies:
kind-of "^3.0.2"
is-number@^4.0.0:
version "4.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff"
integrity sha1-ACbjf1RU1z41bf5lZGmYZ8an8P8=
is-number@^7.0.0:
version "7.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
integrity sha1-dTU0W4lnNNX4DE0GxQlVUnoU8Ss=
is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4:
version "2.0.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677"
integrity sha1-LBY7P6+xtgbZ0Xko8FwqHDjgdnc=
dependencies:
isobject "^3.0.1"
is-relative@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d"
integrity sha1-obtpNc6MXboei5dUubLcwCDiJg0=
dependencies:
is-unc-path "^1.0.0"
is-unc-path@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d"
integrity sha1-1zHoiY7QkKEsNSrS6u1Qla0yLJ0=
dependencies:
unc-path-regex "^0.1.2"
is-utf8@^0.2.0, is-utf8@^0.2.1:
version "0.2.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72"
integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=
is-valid-glob@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-valid-glob/-/is-valid-glob-1.0.0.tgz#29bf3eff701be2d4d315dbacc39bc39fe8f601aa"
integrity sha1-Kb8+/3Ab4tTTFdusw5vDn+j2Aao=
is-windows@^1.0.1, is-windows@^1.0.2:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"
integrity sha1-0YUOuXkezRjmGCzhKjDzlmNLsZ0=
isarray@1.0.0, isarray@~1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=
isexe@^2.0.0:
version "2.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=
isobject@^2.0.0:
version "2.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89"
integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=
dependencies:
isarray "1.0.0"
isobject@^3.0.0, isobject@^3.0.1:
version "3.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8=
json-stable-stringify-without-jsonify@^1.0.1:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=
jsonfile@^6.0.1:
version "6.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae"
integrity sha1-vFWyY0eTxnnsZAMJTrE2mKbsCq4=
dependencies:
universalify "^2.0.0"
optionalDependencies:
graceful-fs "^4.1.6"
just-debounce@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/just-debounce/-/just-debounce-1.0.0.tgz#87fccfaeffc0b68cd19d55f6722943f929ea35ea"
integrity sha1-h/zPrv/AtozRnVX2cilD+SnqNeo=
kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0:
version "3.2.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=
dependencies:
is-buffer "^1.1.5"
kind-of@^4.0.0:
version "4.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57"
integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc=
dependencies:
is-buffer "^1.1.5"
kind-of@^5.0.0, kind-of@^5.0.2:
version "5.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d"
integrity sha1-cpyR4thXt6QZofmqZWhcTDP1hF0=
kind-of@^6.0.0, kind-of@^6.0.2:
version "6.0.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd"
integrity sha1-B8BQNKbDSfoG4k+jWqdttFgM5N0=
last-run@^1.1.0:
version "1.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/last-run/-/last-run-1.1.1.tgz#45b96942c17b1c79c772198259ba943bebf8ca5b"
integrity sha1-RblpQsF7HHnHchmCWbqUO+v4yls=
dependencies:
default-resolution "^2.0.0"
es6-weak-map "^2.0.1"
lazystream@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/lazystream/-/lazystream-1.0.0.tgz#f6995fe0f820392f61396be89462407bb77168e4"
integrity sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=
dependencies:
readable-stream "^2.0.5"
lcid@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835"
integrity sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=
dependencies:
invert-kv "^1.0.0"
lead@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/lead/-/lead-1.0.0.tgz#6f14f99a37be3a9dd784f5495690e5903466ee42"
integrity sha1-bxT5mje+Op3XhPVJVpDlkDRm7kI=
dependencies:
flush-write-stream "^1.0.2"
liftoff@^3.1.0:
version "3.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/liftoff/-/liftoff-3.1.0.tgz#c9ba6081f908670607ee79062d700df062c52ed3"
integrity sha1-ybpggfkIZwYH7nkGLXAN8GLFLtM=
dependencies:
extend "^3.0.0"
findup-sync "^3.0.0"
fined "^1.0.1"
flagged-respawn "^1.0.0"
is-plain-object "^2.0.4"
object.map "^1.0.0"
rechoir "^0.6.2"
resolve "^1.1.7"
load-json-file@^1.0.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0"
integrity sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=
dependencies:
graceful-fs "^4.1.2"
parse-json "^2.2.0"
pify "^2.0.0"
pinkie-promise "^2.0.0"
strip-bom "^2.0.0"
lodash@^4.17.11:
version "4.17.20"
resolved "http://registry.eazytec.com/repository/npm-eazytec/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
integrity sha1-tEqbYpe8tpjxxRo1RaKzs2jVnFI=
make-iterator@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/make-iterator/-/make-iterator-1.0.1.tgz#29b33f312aa8f547c4a5e490f56afcec99133ad6"
integrity sha1-KbM/MSqo9UfEpeSQ9Wr87JkTOtY=
dependencies:
kind-of "^6.0.2"
map-cache@^0.2.0, map-cache@^0.2.2:
version "0.2.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf"
integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=
map-visit@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f"
integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=
dependencies:
object-visit "^1.0.0"
matchdep@^2.0.0:
version "2.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/matchdep/-/matchdep-2.0.0.tgz#c6f34834a0d8dbc3b37c27ee8bbcb27c7775582e"
integrity sha1-xvNINKDY28OzfCfui7yyfHd1WC4=
dependencies:
findup-sync "^2.0.0"
micromatch "^3.0.4"
resolve "^1.4.0"
stack-trace "0.0.10"
micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4:
version "3.1.10"
resolved "http://registry.eazytec.com/repository/npm-eazytec/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23"
integrity sha1-cIWbyVyYQJUvNZoGij/En57PrCM=
dependencies:
arr-diff "^4.0.0"
array-unique "^0.3.2"
braces "^2.3.1"
define-property "^2.0.2"
extend-shallow "^3.0.2"
extglob "^2.0.4"
fragment-cache "^0.2.1"
kind-of "^6.0.2"
nanomatch "^1.2.9"
object.pick "^1.3.0"
regex-not "^1.0.0"
snapdragon "^0.8.1"
to-regex "^3.0.2"
minimatch@^3.0.4:
version "3.0.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
integrity sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=
dependencies:
brace-expansion "^1.1.7"
mixin-deep@^1.2.0:
version "1.3.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566"
integrity sha1-ESC0PcNZp4Xc5ltVuC4lfM9HlWY=
dependencies:
for-in "^1.0.2"
is-extendable "^1.0.1"
ms@2.0.0:
version "2.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=
mute-stdout@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/mute-stdout/-/mute-stdout-1.0.1.tgz#acb0300eb4de23a7ddeec014e3e96044b3472331"
integrity sha1-rLAwDrTeI6fd7sAU4+lgRLNHIzE=
nan@^2.12.1:
version "2.14.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19"
integrity sha1-9TdkAGlRaPTMaUrJOT0MlYXu6hk=
nanomatch@^1.2.9:
version "1.2.13"
resolved "http://registry.eazytec.com/repository/npm-eazytec/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
integrity sha1-uHqKpPwN6P5r6IiVs4mD/yZb0Rk=
dependencies:
arr-diff "^4.0.0"
array-unique "^0.3.2"
define-property "^2.0.2"
extend-shallow "^3.0.2"
fragment-cache "^0.2.1"
is-windows "^1.0.2"
kind-of "^6.0.2"
object.pick "^1.3.0"
regex-not "^1.0.0"
snapdragon "^0.8.1"
to-regex "^3.0.1"
next-tick@~1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c"
integrity sha1-yobR/ogoFpsBICCOPchCS524NCw=
normalize-package-data@^2.3.2:
version "2.5.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8"
integrity sha1-5m2xg4sgDB38IzIl0SyzZSDiNKg=
dependencies:
hosted-git-info "^2.1.4"
resolve "^1.10.0"
semver "2 || 3 || 4 || 5"
validate-npm-package-license "^3.0.1"
normalize-path@^2.1.1:
version "2.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=
dependencies:
remove-trailing-separator "^1.0.1"
normalize-path@^3.0.0, normalize-path@~3.0.0:
version "3.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
integrity sha1-Dc1p/yOhybEf0JeDFmRKA4ghamU=
now-and-later@^2.0.0:
version "2.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/now-and-later/-/now-and-later-2.0.1.tgz#8e579c8685764a7cc02cb680380e94f43ccb1f7c"
integrity sha1-jlechoV2SnzALLaAOA6U9DzLH3w=
dependencies:
once "^1.3.2"
number-is-nan@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=
nunjucks@^3.1.2:
version "3.2.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/nunjucks/-/nunjucks-3.2.2.tgz#45f915fef0f89fbab38c489dc85025f64859f466"
integrity sha1-RfkV/vD4n7qzjEidyFAl9khZ9GY=
dependencies:
a-sync-waterfall "^1.0.0"
asap "^2.0.3"
commander "^5.1.0"
optionalDependencies:
chokidar "^3.3.0"
object-copy@^0.1.0:
version "0.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c"
integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw=
dependencies:
copy-descriptor "^0.1.0"
define-property "^0.2.5"
kind-of "^3.0.3"
object-keys@^1.0.12, object-keys@^1.1.1:
version "1.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
integrity sha1-HEfyct8nfzsdrwYWd9nILiMixg4=
object-visit@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb"
integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=
dependencies:
isobject "^3.0.0"
object.assign@^4.0.4, object.assign@^4.1.0:
version "4.1.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/object.assign/-/object.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940"
integrity sha1-DtVKNC7Os3s4/3brgxoOeIy2OUA=
dependencies:
call-bind "^1.0.0"
define-properties "^1.1.3"
has-symbols "^1.0.1"
object-keys "^1.1.1"
object.defaults@^1.0.0, object.defaults@^1.1.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/object.defaults/-/object.defaults-1.1.0.tgz#3a7f868334b407dea06da16d88d5cd29e435fecf"
integrity sha1-On+GgzS0B96gbaFtiNXNKeQ1/s8=
dependencies:
array-each "^1.0.1"
array-slice "^1.0.0"
for-own "^1.0.0"
isobject "^3.0.0"
object.map@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/object.map/-/object.map-1.0.1.tgz#cf83e59dc8fcc0ad5f4250e1f78b3b81bd801d37"
integrity sha1-z4Plncj8wK1fQlDh94s7gb2AHTc=
dependencies:
for-own "^1.0.0"
make-iterator "^1.0.0"
object.pick@^1.2.0, object.pick@^1.3.0:
version "1.3.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747"
integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=
dependencies:
isobject "^3.0.1"
object.reduce@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/object.reduce/-/object.reduce-1.0.1.tgz#6fe348f2ac7fa0f95ca621226599096825bb03ad"
integrity sha1-b+NI8qx/oPlcpiEiZZkJaCW7A60=
dependencies:
for-own "^1.0.0"
make-iterator "^1.0.0"
once@^1.3.0, once@^1.3.1, once@^1.3.2, once@^1.4.0:
version "1.4.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E=
dependencies:
wrappy "1"
ordered-read-streams@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz#77c0cb37c41525d64166d990ffad7ec6a0e1363e"
integrity sha1-d8DLN8QVJdZBZtmQ/61+xqDhNj4=
dependencies:
readable-stream "^2.0.1"
os-locale@^1.4.0:
version "1.4.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9"
integrity sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=
dependencies:
lcid "^1.0.0"
parse-filepath@^1.0.1:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/parse-filepath/-/parse-filepath-1.0.2.tgz#a632127f53aaf3d15876f5872f3ffac763d6c891"
integrity sha1-pjISf1Oq89FYdvWHLz/6x2PWyJE=
dependencies:
is-absolute "^1.0.0"
map-cache "^0.2.0"
path-root "^0.1.1"
parse-json@^2.2.0:
version "2.2.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9"
integrity sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=
dependencies:
error-ex "^1.2.0"
parse-node-version@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/parse-node-version/-/parse-node-version-1.0.1.tgz#e2b5dbede00e7fa9bc363607f53327e8b073189b"
integrity sha1-4rXb7eAOf6m8NjYH9TMn6LBzGJs=
parse-passwd@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6"
integrity sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=
pascalcase@^0.1.1:
version "0.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"
integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=
path-dirname@^1.0.0:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0"
integrity sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=
path-exists@^2.0.0:
version "2.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b"
integrity sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=
dependencies:
pinkie-promise "^2.0.0"
path-is-absolute@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
path-parse@^1.0.6:
version "1.0.6"
resolved "http://registry.eazytec.com/repository/npm-eazytec/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
integrity sha1-1i27VnlAXXLEc37FhgDp3c8G0kw=
path-root-regex@^0.1.0:
version "0.1.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/path-root-regex/-/path-root-regex-0.1.2.tgz#bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d"
integrity sha1-v8zcjfWxLcUsi0PsONGNcsBLqW0=
path-root@^0.1.1:
version "0.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/path-root/-/path-root-0.1.1.tgz#9a4a6814cac1c0cd73360a95f32083c8ea4745b7"
integrity sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc=
dependencies:
path-root-regex "^0.1.0"
path-type@^1.0.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441"
integrity sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=
dependencies:
graceful-fs "^4.1.2"
pify "^2.0.0"
pinkie-promise "^2.0.0"
picomatch@^2.0.4, picomatch@^2.2.1:
version "2.2.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad"
integrity sha1-IfMz6ba46v8CRo9RRupAbTRfTa0=
pify@^2.0.0:
version "2.3.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw=
pinkie-promise@^2.0.0:
version "2.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa"
integrity sha1-ITXW36ejWMBprJsXh3YogihFD/o=
dependencies:
pinkie "^2.0.0"
pinkie@^2.0.0:
version "2.0.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA=
plugin-error@^1.0.1:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/plugin-error/-/plugin-error-1.0.1.tgz#77016bd8919d0ac377fdcdd0322328953ca5781c"
integrity sha1-dwFr2JGdCsN3/c3QMiMolTyleBw=
dependencies:
ansi-colors "^1.0.1"
arr-diff "^4.0.0"
arr-union "^3.1.0"
extend-shallow "^3.0.2"
posix-character-classes@^0.1.0:
version "0.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=
pretty-hrtime@^1.0.0:
version "1.0.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz#b7e3ea42435a4c9b2759d99e0f201eb195802ee1"
integrity sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=
process-nextick-args@^2.0.0, process-nextick-args@~2.0.0:
version "2.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
integrity sha1-eCDZsWEgzFXKmud5JoCufbptf+I=
pump@^2.0.0:
version "2.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909"
integrity sha1-Ejma3W5M91Jtlzy8i1zi4pCLOQk=
dependencies:
end-of-stream "^1.1.0"
once "^1.3.1"
pumpify@^1.3.5:
version "1.5.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/pumpify/-/pumpify-1.5.1.tgz#36513be246ab27570b1a374a5ce278bfd74370ce"
integrity sha1-NlE74karJ1cLGjdKXOJ4v9dDcM4=
dependencies:
duplexify "^3.6.0"
inherits "^2.0.3"
pump "^2.0.0"
read-pkg-up@^1.0.1:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02"
integrity sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=
dependencies:
find-up "^1.0.0"
read-pkg "^1.0.0"
read-pkg@^1.0.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28"
integrity sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=
dependencies:
load-json-file "^1.0.0"
normalize-package-data "^2.3.2"
path-type "^1.0.0"
readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.3, readable-stream@^2.3.5, readable-stream@^2.3.6, readable-stream@~2.3.6:
version "2.3.7"
resolved "http://registry.eazytec.com/repository/npm-eazytec/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57"
integrity sha1-Hsoc9xGu+BTAT2IlKjamL2yyO1c=
dependencies:
core-util-is "~1.0.0"
inherits "~2.0.3"
isarray "~1.0.0"
process-nextick-args "~2.0.0"
safe-buffer "~5.1.1"
string_decoder "~1.1.1"
util-deprecate "~1.0.1"
readdirp@^2.2.1:
version "2.2.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/readdirp/-/readdirp-2.2.1.tgz#0e87622a3325aa33e892285caf8b4e846529a525"
integrity sha1-DodiKjMlqjPokihcr4tOhGUppSU=
dependencies:
graceful-fs "^4.1.11"
micromatch "^3.1.10"
readable-stream "^2.0.2"
readdirp@~3.5.0:
version "3.5.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/readdirp/-/readdirp-3.5.0.tgz#9ba74c019b15d365278d2e91bb8c48d7b4d42c9e"
integrity sha1-m6dMAZsV02UnjS6Ru4xI17TULJ4=
dependencies:
picomatch "^2.2.1"
rechoir@^0.6.2:
version "0.6.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
integrity sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=
dependencies:
resolve "^1.1.6"
regex-not@^1.0.0, regex-not@^1.0.2:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c"
integrity sha1-H07OJ+ALC2XgJHpoEOaoXYOldSw=
dependencies:
extend-shallow "^3.0.2"
safe-regex "^1.1.0"
remove-bom-buffer@^3.0.0:
version "3.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz#c2bf1e377520d324f623892e33c10cac2c252b53"
integrity sha1-wr8eN3Ug0yT2I4kuM8EMrCwlK1M=
dependencies:
is-buffer "^1.1.5"
is-utf8 "^0.2.1"
remove-bom-stream@^1.2.0:
version "1.2.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz#05f1a593f16e42e1fb90ebf59de8e569525f9523"
integrity sha1-BfGlk/FuQuH7kOv1nejlaVJflSM=
dependencies:
remove-bom-buffer "^3.0.0"
safe-buffer "^5.1.0"
through2 "^2.0.3"
remove-trailing-separator@^1.0.1, remove-trailing-separator@^1.1.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef"
integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8=
repeat-element@^1.1.2:
version "1.1.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce"
integrity sha1-eC4NglwMWjuzlzH4Tv7mt0Lmsc4=
repeat-string@^1.6.1:
version "1.6.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637"
integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc=
replace-ext@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/replace-ext/-/replace-ext-1.0.1.tgz#2d6d996d04a15855d967443631dd5f77825b016a"
integrity sha1-LW2ZbQShWFXZZ0Q2Md1fd4JbAWo=
replace-homedir@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/replace-homedir/-/replace-homedir-1.0.0.tgz#e87f6d513b928dde808260c12be7fec6ff6e798c"
integrity sha1-6H9tUTuSjd6AgmDBK+f+xv9ueYw=
dependencies:
homedir-polyfill "^1.0.1"
is-absolute "^1.0.0"
remove-trailing-separator "^1.1.0"
require-directory@^2.1.1:
version "2.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I=
require-main-filename@^1.0.1:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1"
integrity sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=
resolve-dir@^1.0.0, resolve-dir@^1.0.1:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/resolve-dir/-/resolve-dir-1.0.1.tgz#79a40644c362be82f26effe739c9bb5382046f43"
integrity sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=
dependencies:
expand-tilde "^2.0.0"
global-modules "^1.0.0"
resolve-options@^1.1.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/resolve-options/-/resolve-options-1.1.0.tgz#32bb9e39c06d67338dc9378c0d6d6074566ad131"
integrity sha1-MrueOcBtZzONyTeMDW1gdFZq0TE=
dependencies:
value-or-function "^3.0.0"
resolve-url@^0.2.1:
version "0.2.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=
resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.4.0:
version "1.18.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/resolve/-/resolve-1.18.1.tgz#018fcb2c5b207d2a6424aee361c5a266da8f4130"
integrity sha1-AY/LLFsgfSpkJK7jYcWiZtqPQTA=
dependencies:
is-core-module "^2.0.0"
path-parse "^1.0.6"
ret@~0.1.10:
version "0.1.15"
resolved "http://registry.eazytec.com/repository/npm-eazytec/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"
integrity sha1-uKSCXVvbH8P29Twrwz+BOIaBx7w=
safe-buffer@^5.1.0:
version "5.2.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
integrity sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY=
safe-buffer@~5.1.0, safe-buffer@~5.1.1:
version "5.1.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
integrity sha1-mR7GnSluAxN0fVm9/St0XDX4go0=
safe-regex@^1.1.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e"
integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4=
dependencies:
ret "~0.1.10"
semver-greatest-satisfied-range@^1.1.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/semver-greatest-satisfied-range/-/semver-greatest-satisfied-range-1.1.0.tgz#13e8c2658ab9691cb0cd71093240280d36f77a5b"
integrity sha1-E+jCZYq5aRywzXEJMkAoDTb3els=
dependencies:
sver-compat "^1.5.0"
"semver@2 || 3 || 4 || 5":
version "5.7.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
integrity sha1-qVT5Ma66UI0we78Gnv8MAclhFvc=
set-blocking@^2.0.0:
version "2.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc=
set-value@^2.0.0, set-value@^2.0.1:
version "2.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b"
integrity sha1-oY1AUw5vB95CKMfe/kInr4ytAFs=
dependencies:
extend-shallow "^2.0.1"
is-extendable "^0.1.1"
is-plain-object "^2.0.3"
split-string "^3.0.1"
snapdragon-node@^2.0.1:
version "2.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b"
integrity sha1-bBdfhv8UvbByRWPo88GwIaKGhTs=
dependencies:
define-property "^1.0.0"
isobject "^3.0.0"
snapdragon-util "^3.0.1"
snapdragon-util@^3.0.1:
version "3.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2"
integrity sha1-+VZHlIbyrNeXAGk/b3uAXkWrVuI=
dependencies:
kind-of "^3.2.0"
snapdragon@^0.8.1:
version "0.8.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d"
integrity sha1-ZJIufFZbDhQgS6GqfWlkJ40lGC0=
dependencies:
base "^0.11.1"
debug "^2.2.0"
define-property "^0.2.5"
extend-shallow "^2.0.1"
map-cache "^0.2.2"
source-map "^0.5.6"
source-map-resolve "^0.5.0"
use "^3.1.0"
source-map-resolve@^0.5.0:
version "0.5.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a"
integrity sha1-GQhmvs51U+H48mei7oLGBrVQmho=
dependencies:
atob "^2.1.2"
decode-uri-component "^0.2.0"
resolve-url "^0.2.1"
source-map-url "^0.4.0"
urix "^0.1.0"
source-map-url@^0.4.0:
version "0.4.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3"
integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=
source-map@^0.5.6:
version "0.5.7"
resolved "http://registry.eazytec.com/repository/npm-eazytec/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=
sparkles@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/sparkles/-/sparkles-1.0.1.tgz#008db65edce6c50eec0c5e228e1945061dd0437c"
integrity sha1-AI22XtzmxQ7sDF4ijhlFBh3QQ3w=
spdx-correct@^3.0.0:
version "3.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9"
integrity sha1-3s6BrJweZxPl99G28X1Gj6U9iak=
dependencies:
spdx-expression-parse "^3.0.0"
spdx-license-ids "^3.0.0"
spdx-exceptions@^2.1.0:
version "2.3.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d"
integrity sha1-PyjOGnegA3JoPq3kpDMYNSeiFj0=
spdx-expression-parse@^3.0.0:
version "3.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679"
integrity sha1-z3D1BILu/cmOPOCmgz5KU87rpnk=
dependencies:
spdx-exceptions "^2.1.0"
spdx-license-ids "^3.0.0"
spdx-license-ids@^3.0.0:
version "3.0.6"
resolved "http://registry.eazytec.com/repository/npm-eazytec/spdx-license-ids/-/spdx-license-ids-3.0.6.tgz#c80757383c28abf7296744998cbc106ae8b854ce"
integrity sha1-yAdXODwoq/cpZ0SZjLwQaui4VM4=
split-string@^3.0.1, split-string@^3.0.2:
version "3.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2"
integrity sha1-fLCd2jqGWFcFxks5pkZgOGguj+I=
dependencies:
extend-shallow "^3.0.0"
stack-trace@0.0.10:
version "0.0.10"
resolved "http://registry.eazytec.com/repository/npm-eazytec/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0"
integrity sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=
static-extend@^0.1.1:
version "0.1.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6"
integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=
dependencies:
define-property "^0.2.5"
object-copy "^0.1.0"
stream-exhaust@^1.0.1:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/stream-exhaust/-/stream-exhaust-1.0.2.tgz#acdac8da59ef2bc1e17a2c0ccf6c320d120e555d"
integrity sha1-rNrI2lnvK8HheiwMz2wyDRIOVV0=
stream-shift@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/stream-shift/-/stream-shift-1.0.1.tgz#d7088281559ab2778424279b0877da3c392d5a3d"
integrity sha1-1wiCgVWasneEJCebCHfaPDktWj0=
string-width@^1.0.1, string-width@^1.0.2:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
integrity sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=
dependencies:
code-point-at "^1.0.0"
is-fullwidth-code-point "^1.0.0"
strip-ansi "^3.0.0"
string_decoder@~1.1.1:
version "1.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
integrity sha1-nPFhG6YmhdcDCunkujQUnDrwP8g=
dependencies:
safe-buffer "~5.1.0"
strip-ansi@^3.0.0, strip-ansi@^3.0.1:
version "3.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=
dependencies:
ansi-regex "^2.0.0"
strip-bom@^2.0.0:
version "2.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e"
integrity sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=
dependencies:
is-utf8 "^0.2.0"
sver-compat@^1.5.0:
version "1.5.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/sver-compat/-/sver-compat-1.5.0.tgz#3cf87dfeb4d07b4a3f14827bc186b3fd0c645cd8"
integrity sha1-PPh9/rTQe0o/FIJ7wYaz/QxkXNg=
dependencies:
es6-iterator "^2.0.1"
es6-symbol "^3.1.1"
through2-filter@^3.0.0:
version "3.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/through2-filter/-/through2-filter-3.0.0.tgz#700e786df2367c2c88cd8aa5be4cf9c1e7831254"
integrity sha1-cA54bfI2fCyIzYqlvkz5weeDElQ=
dependencies:
through2 "~2.0.0"
xtend "~4.0.0"
through2@^2.0.0, through2@^2.0.3, through2@~2.0.0:
version "2.0.5"
resolved "http://registry.eazytec.com/repository/npm-eazytec/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd"
integrity sha1-AcHjnrMdB8t9A6lqcIIyYLIxMs0=
dependencies:
readable-stream "~2.3.6"
xtend "~4.0.1"
time-stamp@^1.0.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3"
integrity sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=
to-absolute-glob@^2.0.0:
version "2.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz#1865f43d9e74b0822db9f145b78cff7d0f7c849b"
integrity sha1-GGX0PZ50sIItufFFt4z/fQ98hJs=
dependencies:
is-absolute "^1.0.0"
is-negated-glob "^1.0.0"
to-object-path@^0.3.0:
version "0.3.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af"
integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=
dependencies:
kind-of "^3.0.2"
to-regex-range@^2.1.0:
version "2.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38"
integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=
dependencies:
is-number "^3.0.0"
repeat-string "^1.6.1"
to-regex-range@^5.0.1:
version "5.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
integrity sha1-FkjESq58jZiKMmAY7XL1tN0DkuQ=
dependencies:
is-number "^7.0.0"
to-regex@^3.0.1, to-regex@^3.0.2:
version "3.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce"
integrity sha1-E8/dmzNlUvMLUfM6iuG0Knp1mc4=
dependencies:
define-property "^2.0.2"
extend-shallow "^3.0.2"
regex-not "^1.0.2"
safe-regex "^1.1.0"
to-through@^2.0.0:
version "2.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/to-through/-/to-through-2.0.0.tgz#fc92adaba072647bc0b67d6b03664aa195093af6"
integrity sha1-/JKtq6ByZHvAtn1rA2ZKoZUJOvY=
dependencies:
through2 "^2.0.3"
type@^1.0.1:
version "1.2.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/type/-/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0"
integrity sha1-hI3XaY2vo+VKbEeedZxLw/GIR6A=
type@^2.0.0:
version "2.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/type/-/type-2.1.0.tgz#9bdc22c648cf8cf86dd23d32336a41cfb6475e3f"
integrity sha1-m9wixkjPjPht0j0yM2pBz7ZHXj8=
typedarray@^0.0.6:
version "0.0.6"
resolved "http://registry.eazytec.com/repository/npm-eazytec/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
unc-path-regex@^0.1.2:
version "0.1.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa"
integrity sha1-5z3T17DXxe2G+6xrCufYxqadUPo=
undertaker-registry@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/undertaker-registry/-/undertaker-registry-1.0.1.tgz#5e4bda308e4a8a2ae584f9b9a4359a499825cc50"
integrity sha1-XkvaMI5KiirlhPm5pDWaSZglzFA=
undertaker@^1.2.1:
version "1.3.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/undertaker/-/undertaker-1.3.0.tgz#363a6e541f27954d5791d6fa3c1d321666f86d18"
integrity sha1-NjpuVB8nlU1Xkdb6PB0yFmb4bRg=
dependencies:
arr-flatten "^1.0.1"
arr-map "^2.0.0"
bach "^1.0.0"
collection-map "^1.0.0"
es6-weak-map "^2.0.1"
fast-levenshtein "^1.0.0"
last-run "^1.1.0"
object.defaults "^1.0.0"
object.reduce "^1.0.0"
undertaker-registry "^1.0.0"
union-value@^1.0.0:
version "1.0.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847"
integrity sha1-C2/nuDWuzaYcbqTU8CwUIh4QmEc=
dependencies:
arr-union "^3.1.0"
get-value "^2.0.6"
is-extendable "^0.1.1"
set-value "^2.0.1"
unique-stream@^2.0.2:
version "2.3.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/unique-stream/-/unique-stream-2.3.1.tgz#c65d110e9a4adf9a6c5948b28053d9a8d04cbeac"
integrity sha1-xl0RDppK35psWUiygFPZqNBMvqw=
dependencies:
json-stable-stringify-without-jsonify "^1.0.1"
through2-filter "^3.0.0"
universalify@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/universalify/-/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d"
integrity sha1-thodoXPoQ1sv48Z9Kbmt+FlL0W0=
universalify@^2.0.0:
version "2.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
integrity sha1-daSYTv7cSwiXXFrrc/Uw0C3yVxc=
unset-value@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559"
integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=
dependencies:
has-value "^0.3.1"
isobject "^3.0.0"
upath@^1.1.1:
version "1.2.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894"
integrity sha1-j2bbzVWog6za5ECK+LA1pQRMGJQ=
urix@^0.1.0:
version "0.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=
use@^3.1.0:
version "3.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"
integrity sha1-1QyMrHmhn7wg8pEfVuuXP04QBw8=
util-deprecate@~1.0.1:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
v8flags@^3.2.0:
version "3.2.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/v8flags/-/v8flags-3.2.0.tgz#b243e3b4dfd731fa774e7492128109a0fe66d656"
integrity sha1-skPjtN/XMfp3TnSSEoEJoP5m1lY=
dependencies:
homedir-polyfill "^1.0.1"
validate-npm-package-license@^3.0.1:
version "3.0.4"
resolved "http://registry.eazytec.com/repository/npm-eazytec/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a"
integrity sha1-/JH2uce6FchX9MssXe/uw51PQQo=
dependencies:
spdx-correct "^3.0.0"
spdx-expression-parse "^3.0.0"
value-or-function@^3.0.0:
version "3.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/value-or-function/-/value-or-function-3.0.0.tgz#1c243a50b595c1be54a754bfece8563b9ff8d813"
integrity sha1-HCQ6ULWVwb5Up1S/7OhWO5/42BM=
vinyl-fs@^3.0.0:
version "3.0.3"
resolved "http://registry.eazytec.com/repository/npm-eazytec/vinyl-fs/-/vinyl-fs-3.0.3.tgz#c85849405f67428feabbbd5c5dbdd64f47d31bc7"
integrity sha1-yFhJQF9nQo/qu71cXb3WT0fTG8c=
dependencies:
fs-mkdirp-stream "^1.0.0"
glob-stream "^6.1.0"
graceful-fs "^4.0.0"
is-valid-glob "^1.0.0"
lazystream "^1.0.0"
lead "^1.0.0"
object.assign "^4.0.4"
pumpify "^1.3.5"
readable-stream "^2.3.3"
remove-bom-buffer "^3.0.0"
remove-bom-stream "^1.2.0"
resolve-options "^1.1.0"
through2 "^2.0.0"
to-through "^2.0.0"
value-or-function "^3.0.0"
vinyl "^2.0.0"
vinyl-sourcemap "^1.1.0"
vinyl-sourcemap@^1.1.0:
version "1.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz#92a800593a38703a8cdb11d8b300ad4be63b3e16"
integrity sha1-kqgAWTo4cDqM2xHYswCtS+Y7PhY=
dependencies:
append-buffer "^1.0.2"
convert-source-map "^1.5.0"
graceful-fs "^4.1.6"
normalize-path "^2.1.1"
now-and-later "^2.0.0"
remove-bom-buffer "^3.0.0"
vinyl "^2.0.0"
vinyl@^2.0.0:
version "2.2.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/vinyl/-/vinyl-2.2.1.tgz#23cfb8bbab5ece3803aa2c0a1eb28af7cbba1974"
integrity sha1-I8+4u6tezjgDqiwKHrKK98u6GXQ=
dependencies:
clone "^2.1.1"
clone-buffer "^1.0.0"
clone-stats "^1.0.0"
cloneable-readable "^1.0.0"
remove-trailing-separator "^1.0.1"
replace-ext "^1.0.0"
which-module@^1.0.0:
version "1.0.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f"
integrity sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=
which@^1.2.14:
version "1.3.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
integrity sha1-pFBD1U9YBTFtqNYvn1CRjT2nCwo=
dependencies:
isexe "^2.0.0"
wrap-ansi@^2.0.0:
version "2.1.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85"
integrity sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=
dependencies:
string-width "^1.0.1"
strip-ansi "^3.0.1"
wrappy@1:
version "1.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
xtend@~4.0.0, xtend@~4.0.1:
version "4.0.2"
resolved "http://registry.eazytec.com/repository/npm-eazytec/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
integrity sha1-u3J3n1+kZRhrH0OPZ0+jR/2121Q=
y18n@^3.2.1:
version "3.2.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41"
integrity sha1-bRX7qITAhnnA136I53WegR4H+kE=
yargs-parser@5.0.0-security.0:
version "5.0.0-security.0"
resolved "http://registry.eazytec.com/repository/npm-eazytec/yargs-parser/-/yargs-parser-5.0.0-security.0.tgz#4ff7271d25f90ac15643b86076a2ab499ec9ee24"
integrity sha1-T/cnHSX5CsFWQ7hgdqKrSZ7J7iQ=
dependencies:
camelcase "^3.0.0"
object.assign "^4.1.0"
yargs@^7.1.0:
version "7.1.1"
resolved "http://registry.eazytec.com/repository/npm-eazytec/yargs/-/yargs-7.1.1.tgz#67f0ef52e228d4ee0d6311acede8850f53464df6"
integrity sha1-Z/DvUuIo1O4NYxGs7eiFD1NGTfY=
dependencies:
camelcase "^3.0.0"
cliui "^3.2.0"
decamelize "^1.1.1"
get-caller-file "^1.0.1"
os-locale "^1.4.0"
read-pkg-up "^1.0.1"
require-directory "^2.1.1"
require-main-filename "^1.0.1"
set-blocking "^2.0.0"
string-width "^1.0.2"
which-module "^1.0.0"
y18n "^3.2.1"
yargs-parser "5.0.0-security.0"
......@@ -36,7 +36,7 @@ export default class AwardsController {
/**
* 权益重新领取
*/
receiveEnamePrize(context: IContext<IReceiveEnameParams>, { awardInfo, session }: IReceivePrizeControllerInfos, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | number[] | object[] | string[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<CodeType | IAwards, true>>;
receiveEnamePrize(context: IContext<IReceiveEnameParams>, { awardInfo, session }: IReceivePrizeControllerInfos, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | string[] | number[] | object[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<CodeType | IAwards, true>>;
/**
* 概率抽奖
*/
......
......@@ -52,9 +52,7 @@ var service_1 = require("../service");
var constants_1 = require("../constants");
var utils_1 = require("../utils/");
var preCheck_1 = require("../decorator/common/preCheck");
var checkActivityTime_1 = require("../utils/common/check/checkActivityTime");
var checkPrizeExpired_1 = require("../utils/common/check/checkPrizeExpired");
var checkValidPrize_1 = require("../utils/common/check/checkValidPrize");
var check_1 = require("../utils/common/check/");
var AwardsController = /** @class */ (function () {
function AwardsController() {
}
......@@ -65,43 +63,14 @@ var AwardsController = /** @class */ (function () {
var activityInfo = _a.activityInfo;
var awardSer = _b[0];
return __awaiter(this, void 0, void 0, function () {
var openId, activityId, awardReceiveExpiredTime, myPrizeList;
var list;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
openId = context.openId, activityId = context.data.activityId;
awardReceiveExpiredTime = activityInfo.awardReceiveExpiredTime;
return [4 /*yield*/, awardSer.getAwardsInfoList({
openId: openId,
activityId: activityId,
type: { $ne: constants_1.PRIZE_TYPE.THANKS }
}, {
projection: {
_id: 1,
name: 1,
image: 1,
type: 1,
drawStatus: 1,
shipStatus: 1,
receiveName: 1,
phone: 1,
address: 1,
provice: 1,
city: 1,
area: 1,
remark: 1,
useUrl: 1,
shipCompany: 1,
shipNum: 1
},
sort: {
createTime: -1
}
})];
case 0: return [4 /*yield*/, awardSer.getMyPrizeList(activityInfo)];
case 1:
myPrizeList = _c.sent();
list = _c.sent();
return [2 /*return*/, sdk_1.resultsModel.success({
list: awardSer.formatMyPrizeList(myPrizeList, awardReceiveExpiredTime)
list: list
})];
}
});
......@@ -250,7 +219,7 @@ var AwardsController = /** @class */ (function () {
__decorate([
common_1.checkParams(['activityId', 'id', 'name', 'phone', 'province', 'city', 'area', 'addressDetail', 'streetName']),
common_1.services([service_1.AwardsService]),
preCheck_1.preCheck([checkPrizeExpired_1.checkPrizeExpired, checkValidPrize_1.checkValidPrize([constants_1.PRIZE_TYPE.OBJECT])]),
preCheck_1.default([check_1.checkPrizeExpired]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
......@@ -259,7 +228,7 @@ var AwardsController = /** @class */ (function () {
common_1.checkParams(['activityId', 'id']),
common_1.registeInfos(['session']),
common_1.services([service_1.AwardsService]),
preCheck_1.preCheck([checkPrizeExpired_1.checkPrizeExpired, checkValidPrize_1.checkValidPrize([constants_1.PRIZE_TYPE.ENAME, constants_1.PRIZE_TYPE.CREDITS])]),
preCheck_1.default([check_1.checkPrizeExpired]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
......@@ -267,7 +236,7 @@ var AwardsController = /** @class */ (function () {
__decorate([
common_1.checkParams(['activityId', 'prizeDataType']),
common_1.services([service_1.AwardsService]),
preCheck_1.preCheck([checkActivityTime_1.checkActivityTime]),
preCheck_1.default([check_1.checkActivityTime]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
......
{"version":3,"file":"awards.controller.js","sourceRoot":"","sources":["../../src/controller/awards.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,8CAAyE;AACzE,8BAAqC;AACrC,sCAA0C;AAC1C,0CAAkE;AAClE,mCAAoC;AAEpC,yDAAuD;AACvD,6EAA2E;AAC3E,6EAA2E;AAC3E,yEAAuE;AA2BvE;IAAA;I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AQ,CAAC,CAAC,qCAAiB,EAAE,iCAAe,CAAC,CAAC,sBAAU,CAAC,KAAK,EAAE,sBAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;;;;6DAiBtF;IAQD;QAHC,oBAAW,CAAC,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QAC5C,iBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;QACzB,mBAAQ,CAAC,CAAC,qCAAiB,CAAC,CAAC;;;;4DAkE7B;IACH,uBAAC;CAAA,AApLD,IAoLC;kBApLoB,gBAAgB"}
\ No newline at end of file
{"version":3,"file":"awards.controller.js","sourceRoot":"","sources":["../../src/controller/awards.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,8CAAyE;AACzE,8BAAqC;AACrC,sCAA0C;AAC1C,0CAAkE;AAClE,mCAAoC;AAEpC,yDAAmD;AACnD,gDAA8F;AA2B9F;IAAA;IAgJA,CAAC;IA/IC;;OAEG;IAGG,yCAAc,GAApB,UACE,OAAmC,EACnC,EAAkC,EAClC,EAA2B;YADzB,YAAY,kBAAA;YACb,QAAQ,QAAA;;;;;4BAEI,qBAAM,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,EAAA;;wBAAlD,IAAI,GAAG,SAA2C;wBAExD,sBAAO,kBAAY,CAAC,OAAO,CAAC;gCAC1B,IAAI,MAAA;6BACL,CAAC,EAAA;;;;KACH;IAED;;OAEG;IAIG,6CAAkB,GAAxB,UACE,OAAsC,EACtC,EAA8C,EAC9C,EAA2B;YADzB,YAAY,kBAAA;YACb,QAAQ,QAAA;;;;;;wBAEL,KAAuE,OAAO,CAAC,IAAI,EAAjF,QAAQ,cAAA,EAAE,IAAI,UAAA,EAAE,IAAI,UAAA,EAAE,UAAU,gBAAA,EAAE,aAAa,mBAAA,EAAE,EAAE,QAAA,EAAE,IAAI,UAAA,EAAE,KAAK,WAAA,CAAiB;wBAE1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AAC,yBAAiB,CAAC,CAAC;;;;4DAkE7B;IACH,uBAAC;CAAA,AAhJD,IAgJC;kBAhJoB,gBAAgB"}
\ No newline at end of file
......@@ -47,17 +47,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
};
Object.defineProperty(exports, "__esModule", { value: true });
var common_1 = require("../decorator/common/");
var common_2 = require("../decorator/common/");
var sdk_1 = require("../sdk");
var service_1 = require("../service");
var constants_1 = require("../constants");
var checkActivityTime_1 = require("../utils/common/check/checkActivityTime");
var checkInviteId_1 = require("../utils/common/check/checkInviteId");
var checkHelpRecord_1 = require("../utils/common/check/checkHelpRecord");
var checkNewVip_1 = require("../utils/common/check/checkNewVip");
var check_1 = require("../utils/common/check");
var errorCode_1 = require("../errorCode");
var update_1 = require("../decorator/common/update");
var updateVip_1 = require("../utils/common/update/updateVip");
var update_1 = require("../utils/common/update/");
var Share = /** @class */ (function () {
function Share() {
}
......@@ -105,17 +100,17 @@ var Share = /** @class */ (function () {
};
__decorate([
common_1.checkParams(['activityId']),
common_2.services([service_1.UserService]),
common_1.services([service_1.UserService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object]),
__metadata("design:returntype", Promise)
], Share.prototype, "getShareInfo", null);
__decorate([
common_1.checkParams(['activityId', 'inviteId']),
common_2.registeInfos(['vipInfo']),
common_2.services([service_1.TaskService, service_1.StatService]),
common_2.preCheck([checkActivityTime_1.checkActivityTime, checkInviteId_1.checkInviteId, checkNewVip_1.checkNewVip, checkHelpRecord_1.checkHelpRecord]),
update_1.update([updateVip_1.updateVip]),
common_1.registeInfos(['vipInfo']),
common_1.services([service_1.TaskService, service_1.StatService]),
common_1.preCheck([check_1.checkActivityTime, check_1.checkInviteId, check_1.checkNewVip, check_1.checkHelpRecord]),
common_1.preUpdate([update_1.updateVip]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
......
{"version":3,"file":"share.controller.js","sourceRoot":"","sources":["../../src/controller/share.controller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;;;6CAYvB;IASD;QALC,oBAAW,CAAC,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QACvC,qBAAY,CAAC,CAAC,SAAS,CAAC,CAAC;QACzB,iBAAQ,CAAC,CAAC,qBAAW,EAAE,qBAAW,CAAC,CAAC;QACpC,iBAAQ,CAAC,CAAC,qCAAiB,EAAE,6BAAa,EAAE,yBAAW,EAAE,iCAAe,CAAC,CAAC;QAC1E,eAAM,CAAC,CAAC,qBAAS,CAAC,CAAC;;;;uCAoBnB;IACH,YAAC;CAAA,AA9CD,IA8CC;kBA9CoB,KAAK"}
\ No newline at end of file
{"version":3,"file":"share.controller.js","sourceRoot":"","sources":["../../src/controller/share.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,+CAA+F;AAC/F,8BAAqC;AACrC,sCAAkE;AAClE,0CAAwC;AACxC,+CAAsG;AACtG,0CAAyC;AACzC,kDAAmD;AAKnD;IAAA;IA8CA,CAAC;IA7CC;;OAEG;IAGG,4BAAY,GAAlB,UACE,OAAyC,EACzC,EAA8B;YAA5B,QAAQ,cAAA;;;;gBAGO,OAAO,GACpB,QAAQ,oBADY,CACZ;gBAEZ,sBAAO,kBAAY,CAAC,OAAO,CAAC;wBAC1B,OAAO,EAAE,OAAO;qBACjB,CAAC,EAAA;;;KACH;IACD;;OAEG;IAMG,sBAAM,GAAZ,UACE,OAGE,EACF,EAAwD,EACxD,EAAsD;YADpD,QAAQ,cAAA,EAAE,YAAY,kBAAA,EAAE,cAAc,oBAAA;YACvC,WAAW,QAAA,EAAE,WAAW,QAAA;;;;;;wBAEjB,MAAM,GAAK,OAAO,OAAZ,CAAY;wBAEX,qBAAM,WAAW,CAAC,YAAY,CAAC,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE;gCACrF,MAAM,QAAA;6BACP,CAAC,EAAA;;wBAFI,MAAM,GAAG,SAEb;wBAEF,IAAI,CAAC,MAAM;4BAAE,sBAAO,kBAAY,CAAC,KAAK,CAAC,sBAAU,CAAC,YAAY,EAAE,OAAO,CAAC,EAAA;wBAExE,qBAAM,WAAW,CAAC,OAAO,CAAC,qBAAS,CAAC,aAAa,EAAE,QAAQ,CAAC,EAAA;;wBAA5D,SAA4D,CAAA;wBAE5D,sBAAO,kBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;;;;KAClC;IAvCD;QAFC,oBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,iBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;6CAYvB;IASD;QALC,oBAAW,CAAC,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QACvC,qBAAY,CAAC,CAAC,SAAS,CAAC,CAAC;QACzB,iBAAQ,CAAC,CAAC,qBAAW,EAAE,qBAAW,CAAC,CAAC;QACpC,iBAAQ,CAAC,CAAC,yBAAiB,EAAE,qBAAa,EAAE,mBAAW,EAAE,uBAAe,CAAC,CAAC;QAC1E,kBAAS,CAAC,CAAC,kBAAS,CAAC,CAAC;;;;uCAoBtB;IACH,YAAC;CAAA,AA9CD,IA8CC;kBA9CoB,KAAK"}
\ No newline at end of file
......@@ -33,7 +33,7 @@ export default class Task {
/**
* 获取收藏商品列表
*/
getCollectGoodsList(context: IContext<IParams>, { session, userInfo }: IControllerInfos, [baseService]: [BaseService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<{
getCollectGoodsList(context: IContext<IParams>, { session, userInfo }: IControllerInfos, [baseService, taskService]: [BaseService, TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<{
collected: boolean;
itemId: string;
name: string;
......
"use strict";
/** @format */
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
......@@ -61,13 +50,9 @@ var constants_1 = require("./../constants");
var common_1 = require("../decorator/common");
var sdk_1 = require("../sdk");
var service_1 = require("../service");
var checkActivityTime_1 = require("../utils/common/check/checkActivityTime");
var task_1 = require("../utils/common/task");
var update_1 = require("../decorator/common/update");
var updateVip_1 = require("../utils/common/update/updateVip");
var checkTaskLimit_1 = require("../utils/common/check/checkTaskLimit");
var checkExchangeCreditsTask_1 = require("../utils/common/check/checkExchangeCreditsTask");
var checkRemainTimes_1 = require("../utils/common/check/checkRemainTimes");
var check_1 = require("../utils/common/check/");
var common_2 = require("../decorator/common");
var update_1 = require("../utils/common/update");
var Task = /** @class */ (function () {
function Task() {
}
......@@ -88,7 +73,7 @@ var Task = /** @class */ (function () {
// taskService.initTask('collectGoods', '收藏商品', activityInfo, userInfo),
// taskService.initTask('jumpLink', '浏览页面', activityInfo, userInfo),
// taskService.initTask('invites', '邀请好友', activityInfo, userInfo)
// taskService.initTask('exchangeCredits', '积分兑换', activityInfo, updatedUserInfo)
// taskService.initTask('exchangeCredits', '积分兑换', activityInfo, userInfo)
])];
});
});
......@@ -144,9 +129,9 @@ var Task = /** @class */ (function () {
*/
Task.prototype.getCollectGoodsList = function (context, _a, _b) {
var session = _a.session, userInfo = _a.userInfo;
var baseService = _b[0];
var baseService = _b[0], taskService = _b[1];
return __awaiter(this, void 0, void 0, function () {
var itemIds, list, taskInfo, listWithCollectStatus;
var itemIds, list, listWithCollectStatus;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
......@@ -154,12 +139,7 @@ var Task = /** @class */ (function () {
return [4 /*yield*/, baseService.getItemListByIds(itemIds, session)];
case 1:
list = _c.sent();
taskInfo = task_1.getTotalCompleteTask('collectGoods', userInfo).taskInfo;
listWithCollectStatus = list.map(function (v) {
return __assign(__assign({}, v), {
// 完成列表是否含有itemId
collected: taskInfo.some(function (completeItem) { return completeItem.itemId === v.itemId; }) });
});
listWithCollectStatus = taskService.getItemListWithCollectStatus(list, userInfo);
return [2 /*return*/, sdk_1.resultsModel.success(listWithCollectStatus)];
}
});
......@@ -169,8 +149,8 @@ var Task = /** @class */ (function () {
common_1.checkParams(['activityId']),
common_1.registeInfos(['vipInfo']),
common_1.services([service_1.TaskService]),
common_1.preCheck([checkActivityTime_1.checkActivityTime]),
update_1.update([updateVip_1.updateVip]),
common_1.preCheck([check_1.checkActivityTime]),
common_2.preUpdate([update_1.updateVip, update_1.updateSignTask]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
......@@ -179,7 +159,7 @@ var Task = /** @class */ (function () {
common_1.checkParams(['activityId', 'taskType']),
common_1.registeInfos(['session']),
common_1.services([service_1.TaskService]),
common_1.preCheck([checkActivityTime_1.checkActivityTime, checkTaskLimit_1.checkTaskLimit, checkExchangeCreditsTask_1.checkExchangeCreditsTask]),
common_1.preCheck([check_1.checkActivityTime, check_1.checkTaskLimit, check_1.checkExchangeCreditsTask]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
......@@ -187,7 +167,7 @@ var Task = /** @class */ (function () {
__decorate([
common_1.checkParams(['activityId', 'taskType', 'rewardsKey']),
common_1.services([service_1.TaskService]),
common_1.preCheck([checkActivityTime_1.checkActivityTime, checkRemainTimes_1.checkRemainTimes]),
common_1.preCheck([check_1.checkActivityTime, check_1.checkRemainTimes]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
......@@ -195,7 +175,7 @@ var Task = /** @class */ (function () {
__decorate([
common_1.checkParams(['activityId', 'itemIds']),
common_1.registeInfos(['session']),
common_1.services([service_1.BaseService]),
common_1.services([service_1.BaseService, service_1.TaskService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
......
{"version":3,"file":"task.controller.js","sourceRoot":"","sources":["../../src/controller/task.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,4CAA2C;AAC3C,8CAAmF;AACnF,8BAAqC;AACrC,sCAAqD;AAErD,6EAA2E;AAC3E,6CAA2D;AAC3D,qDAAmD;AACnD,8DAA4D;AAC5D,uEAAqE;AACrE,2FAAyF;AACzF,2EAAyE;AAEzE;IAAA;IA0GA,CAAC;IAzGC;;OAEG;IAMG,0BAAW,GAAjB,UACE,OAAyC,EACzC,EAA4C,EAC5C,EAA4B;YAD1B,QAAQ,cAAA,EAAE,YAAY,kBAAA;YACvB,WAAW,QAAA;;;gBAEZ,sBAAO,kBAAY,CAAC,OAAO,CAAC;wBAC1B,WAAW,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,CAAC;wBAC9D,WAAW,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,CAAC;wBAC9D,8DAA8D;wBAC9D,sEAAsE;wBACtE,uEAAuE;wBACvE,wEAAwE;wBACxE,oEAAoE;wBACpE,kEAAkE;wBAClE,iFAAiF;qBAClF,CAAC,EAAA;;;KACH;IAED;;;;;OAKG;IAKG,6BAAc,GAApB,UACE,OAKE,EACF,EAA4C,EAC5C,EAA4B;YAD1B,QAAQ,cAAA,EAAE,YAAY,kBAAA;YACvB,WAAW,QAAA;;;;;;wBAEN,KAAuB,OAAO,CAAC,IAAI,EAAjC,QAAQ,cAAA,EAAE,MAAM,YAAA,CAAiB;wBAG1B,qBAAM,WAAW,CAAC,YAAY,CAAC,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,MAAM,QAAA,EAAE,CAAC,EAAA;;wBAArF,MAAM,GAAG,SAA4E;wBAE3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AY,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAA;;;;KACnD;IAhGD;QALC,oBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,qBAAY,CAAC,CAAC,SAAS,CAAC,CAAC;QACzB,iBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;QACvB,iBAAQ,CAAC,CAAC,qCAAiB,CAAC,CAAC;QAC7B,eAAM,CAAC,CAAC,qBAAS,CAAC,CAAC;;;;2CAiBnB;IAYD;QAJC,oBAAW,CAAC,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QACvC,qBAAY,CAAC,CAAC,SAAS,CAAC,CAAC;QACzB,iBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;QACvB,iBAAQ,CAAC,CAAC,qCAAiB,EAAE,+BAAc,EAAE,mDAAwB,CAAC,CAAC;;;;8CAiBvE;IAQD;QAHC,oBAAW,CAAC,CAAC,YAAY,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;QACrD,iBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;QACvB,iBAAQ,CAAC,CAAC,qCAAiB,EAAE,mCAAgB,CAAC,CAAC;;;;kDAkB/C;IAQD;QAHC,oBAAW,CAAC,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QACtC,qBAAY,CAAC,CAAC,SAAS,CAAC,CAAC;QACzB,iBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;mDAoBvB;IACH,WAAC;CAAA,AA1GD,IA0GC;kBA1GoB,IAAI"}
\ No newline at end of file
{"version":3,"file":"task.controller.js","sourceRoot":"","sources":["../../src/controller/task.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,4CAA2C;AAC3C,8CAAmF;AACnF,8BAAqC;AACrC,sCAAqD;AAErD,gDAAsH;AACtH,8CAA+C;AAC/C,iDAAkE;AAElE;IAAA;IAmGA,CAAC;IAlGC;;OAEG;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Q,CAAC,CAAC,qBAAW,CAAC,CAAC;QACvB,iBAAQ,CAAC,CAAC,yBAAiB,EAAE,wBAAgB,CAAC,CAAC;;;;kDAkB/C;IAQD;QAHC,oBAAW,CAAC,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QACtC,qBAAY,CAAC,CAAC,SAAS,CAAC,CAAC;QACzB,iBAAQ,CAAC,CAAC,qBAAW,EAAE,qBAAW,CAAC,CAAC;;;;mDAapC;IACH,WAAC;CAAA,AAnGD,IAmGC;kBAnGoB,IAAI"}
\ No newline at end of file
......@@ -5,11 +5,24 @@ export interface IVipParams {
callbackUrl?: string;
inviteId?: string;
}
interface IRankList {
userNick: string;
avatar: string;
score: any;
rank: number;
}
export interface IRankResult {
rank: number;
userNick: string;
avatar: string;
score: number;
list: IRankList[];
}
export default class User {
/**
* 获取会员信息
*/
getVipInfo(context: IContext<IVipParams>, { session, activityUserNick }: IControllerInfos): Promise<IResult<IVipInfo>>;
getVipInfo(context: IContext<IVipParams>, { session, activityUserNick }: IControllerInfos, [userService]: [UserService]): Promise<IResult<IVipInfo>>;
/**
* 获取排行榜
*/
......@@ -19,27 +32,16 @@ export default class User {
timeKey: string;
limit: number;
}>, { userInfo }: IControllerInfos, [userService]: [UserService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<{
userNick: string;
avatar: string;
rank: number;
score: any;
list: {
score: any;
avatar: string;
userNick: string;
rank: number;
_id?: string;
id?: string;
activityId: string;
avatar: string;
openId: string;
createTime: number;
updateTime: number;
createDay?: string;
inviteId?: string;
member?: IMemberInfo;
follow?: IFollowInfo;
remainTimes?: IRemainTimesInfo;
taskInfo?: object;
login?: object;
}[];
rank: number;
userNick: string;
avatar: string;
score: any;
}, true>>;
}
export {};
"use strict";
/** @format */
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
......@@ -49,24 +60,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
var common_1 = require("../decorator/common");
var sdk_1 = require("../sdk");
var service_1 = require("../service");
var vip_1 = require("../utils/common/vip");
var User = /** @class */ (function () {
function User() {
}
/**
* 获取会员信息
*/
User.prototype.getVipInfo = function (context, _a) {
User.prototype.getVipInfo = function (context, _a, _b) {
var session = _a.session, activityUserNick = _a.activityUserNick;
var userService = _b[0];
return __awaiter(this, void 0, void 0, function () {
var callbackUrl, result;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
callbackUrl = context.data.callbackUrl;
return [4 /*yield*/, vip_1.getShopVip(context, session, callbackUrl || vip_1.formatVipCbUrl(context), activityUserNick)];
var result;
return __generator(this, function (_c) {
switch (_c.label) {
case 0: return [4 /*yield*/, userService.getShopVip(context, session, activityUserNick)];
case 1:
result = _b.sent();
result = _c.sent();
return [2 /*return*/, sdk_1.resultsModel.success(result)];
}
});
......@@ -79,25 +88,18 @@ var User = /** @class */ (function () {
var userInfo = _a.userInfo;
var userService = _b[0];
return __awaiter(this, void 0, void 0, function () {
var _c, key, timeKey, _d, limit, userNick, avatar, rank, list;
var _c, key, timeKey, _d, limit, rankInfo, list;
return __generator(this, function (_e) {
switch (_e.label) {
case 0:
_c = context.data, key = _c.key, timeKey = _c.timeKey, _d = _c.limit, limit = _d === void 0 ? 200 : _d;
userNick = userInfo.userNick, avatar = userInfo.avatar;
return [4 /*yield*/, userService.getMyRank(key, timeKey, userInfo[key])];
return [4 /*yield*/, userService.getMyRankInfo(key, timeKey, userInfo)];
case 1:
rank = _e.sent();
rankInfo = _e.sent();
return [4 /*yield*/, userService.getRank(key, timeKey, limit)];
case 2:
list = _e.sent();
return [2 /*return*/, sdk_1.resultsModel.success({
userNick: userNick,
avatar: avatar,
rank: rank,
score: userInfo[key],
list: list
})];
return [2 /*return*/, sdk_1.resultsModel.success(__assign(__assign({}, rankInfo), list))];
}
});
});
......@@ -105,9 +107,9 @@ var User = /** @class */ (function () {
__decorate([
common_1.checkParams(['activityId']),
common_1.registeInfos(['session']),
common_1.services([]),
common_1.services([service_1.UserService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object]),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], User.prototype, "getVipInfo", null);
__decorate([
......
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../src/controller/user.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,8CAAyE;AACzE,8BAAqC;AACrC,sCAAwC;AACxC,2CAAgE;AAOhE;IAAA;IAiDA,CAAC;IAhDC;;OAEG;IAIG,yBAAU,GAAhB,UACE,OAA6B,EAC7B,EAA+C;YAA7C,OAAO,aAAA,EAAE,gBAAgB,sBAAA;;;;;;wBAEnB,WAAW,GAAK,OAAO,CAAC,IAAI,YAAjB,CAAiB;wBAErB,qBAAM,gBAAU,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,IAAI,oBAAc,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC,EAAA;;wBAArG,MAAM,GAAG,SAA4F;wBAE3G,sBAAO,kBAAY,CAAC,OAAO,CAAC,MAAM,CAAC,EAAA;;;;KACpC;IAED;;OAEG;IAGG,0BAAW,GAAjB,UACE,OAKE,EACF,EAA8B,EAC9B,EAA4B;YAD1B,QAAQ,cAAA;YACT,WAAW,QAAA;;;;;;wBAEN,KAAgC,OAAO,CAAC,IAAI,EAA1C,GAAG,SAAA,EAAE,OAAO,aAAA,EAAE,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,CAAiB;wBAE1C,QAA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C,EAAA;;wBAAzE,MAAM,GAAG,SAAgE;wBAE/E,sBAAO,kBAAY,CAAC,OAAO,CAAC,MAAM,CAAC,EAAA;;;;KACpC;IAED;;OAEG;IAGG,0BAAW,GAAjB,UACE,OAKE,EACF,EAA8B,EAC9B,EAA4B;YAD1B,QAAQ,cAAA;YACT,WAAW,QAAA;;;;;;wBAEN,KAAgC,OAAO,CAAC,IAAI,EAA1C,GAAG,SAAA,EAAE,OAAO,aAAA,EAAE,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,CAAiB;wBAEjC,qBAAM,WAAW,CAAC,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAA;;wBAAlE,QAAQ,GAAG,SAAuD;wBAE3D,qBAAM,WAAW,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,EAAA;;wBAArD,IAAI,GAAG,SAA8C;wBAE3D,sBAAO,kBAAY,CAAC,OAAO,uBACtB,QAAQ,GACR,IAAI,EACP,EAAA;;;;KACH;IApCD;QAHC,oBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,qBAAY,CAAC,CAAC,SAAS,CAAC,CAAC;QACzB,iBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;0CAUvB;IAOD;QAFC,oBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,iBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;2CAqBvB;IACH,WAAC;CAAA,AA5CD,IA4CC;kBA5CoB,IAAI"}
\ No newline at end of file
/** @format */
declare const _default: {
login: (context: IContext<import("./controller/login.controller").ILoginParams>, { userInfo, vipInfo, activityInfo }: IControllerInfos, [userService, accessService]: [import("./service/user.service").default, import("./service").AccessService]) => Promise<IResult<{
login: (context: IContext<import("./controller/login.controller").ILoginParams>, { userInfo, activityInfo, vipInfo }: IControllerInfos, [userService, accessService]: [import("./service/user.service").default, import("./service").AccessService]) => Promise<IResult<{
openId: string;
}>>;
getVipInfo: (context: IContext<import("./controller/user.controller").IVipParams>, { session, activityUserNick }: IControllerInfos) => Promise<IResult<IVipInfo>>;
getVipInfo: (context: IContext<import("./controller/user.controller").IVipParams>, { session, activityUserNick }: IControllerInfos, [userService]: [import("./service/user.service").default]) => Promise<IResult<IVipInfo>>;
getTaskList: (context: IContext<{
activityId: string;
}>, { userInfo, activityInfo }: IControllerInfos, [taskService]: [import("./service").TaskService]) => Promise<IResult<import("./service/task.service").ITaskInfo[]>>;
......@@ -27,12 +27,12 @@ declare const _default: {
list: IAwards[];
}>>;
receiveObjectPrize: (context: IContext<import("./controller/awards.controller").IReceiveOjectParams>, { activityInfo }: import("./controller/awards.controller").IReceivePrizeControllerInfos, [awardSer]: [import("./service").AwardsService]) => Promise<IResult<boolean>>;
receiveEnamePrize: (context: IContext<import("./controller/awards.controller").IReceiveEnameParams>, { awardInfo, session }: import("./controller/awards.controller").IReceivePrizeControllerInfos, [awardSer]: [import("./service").AwardsService]) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | number[] | object[] | string[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<import("taobao-mini-sdk/lib/utils/codetypes").CodeType | IAwards, true>>;
receiveEnamePrize: (context: IContext<import("./controller/awards.controller").IReceiveEnameParams>, { awardInfo, session }: import("./controller/awards.controller").IReceivePrizeControllerInfos, [awardSer]: [import("./service").AwardsService]) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | string[] | number[] | object[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<import("taobao-mini-sdk/lib/utils/codetypes").CodeType | IAwards, true>>;
doHelp: (context: IContext<{
activityId: string;
inviteId: string;
}>, { userInfo, activityInfo, inviteUserInfo }: import("./controller/share.controller").IdoHelpInfos, [taskService, statService]: [import("./service").TaskService, import("./service").StatService]) => Promise<IResult<boolean>>;
getStats: (context: IContext<import("./controller/stat.controller").IGetStatsParams>) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | number[] | object[] | string[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<any, true>>;
getStats: (context: IContext<import("./controller/stat.controller").IGetStatsParams>) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | string[] | number[] | object[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<any, true>>;
addStat: (context: IContext<import("./controller/stat.controller").IAddStatsParams>, { userInfo }: IControllerInfos, [statService]: [import("./service").StatService]) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<boolean, true>>;
getRankList: (context: IContext<{
activityId: string;
......@@ -40,28 +40,16 @@ declare const _default: {
timeKey: string;
limit: number;
}>, { userInfo }: IControllerInfos, [userService]: [import("./service/user.service").default]) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<{
userNick: string;
avatar: string;
rank: number;
score: any;
list: {
score: any;
avatar: string;
userNick: string;
rank: number;
_id?: string;
id?: string;
activityId: string;
avatar: string;
openId: string;
createTime: number;
updateTime: number;
createDay?: string;
inviteId?: string;
member?: IMemberInfo;
follow?: IFollowInfo;
remainTimes?: IRemainTimesInfo;
taskInfo?: object;
login?: object;
}[];
rank: number;
userNick: string;
avatar: string;
score: any;
}, true>>;
};
export default _default;
......@@ -10,6 +10,7 @@ export default class AwardsService extends UserService {
activityprizedao: IBaseDao;
constructor(context: IContext<IParams>);
reduceStock(_id: string): Promise<1 | CodeType>;
getMyPrizeList(activityInfo: IActivityInfo): Promise<IAwards[]>;
/**
* 插入奖品记录
* @param {*} award
......@@ -21,35 +22,7 @@ export default class AwardsService extends UserService {
*/
sendAward(document: IAwards): Promise<CodeType | IAwards>;
getAwardsInfoList(query: object, projection?: IFindProjection): Promise<IAwards[]>;
formatMyPrizeList(myPrizeList: IAwards[], awardReceiveExpiredTime?: number): {
expiredTime: number;
id: string;
_id?: string;
openId: string;
activityId: string;
prizeId: string;
ename?: string;
credits?: number;
type: number;
image: string;
name: string;
drawStatus: number;
receiveName?: string;
userNick?: string;
phone?: string;
addressDetail?: string;
provice?: string;
city?: string;
area?: string;
receiveTime?: number;
shipStatus?: number;
shipCompany?: string;
shipNum?: string | number;
remark: string;
createTime?: number;
updateTime?: number;
awardsType?: string;
}[];
formatMyPrizeList(myPrizeList: IAwards[], awardReceiveExpiredTime?: number): IAwards[];
recieveObjectPrize(_id: string, { province, city, area, streetName, addressDetail, name, phone }: {
province: string;
city: string;
......
......@@ -125,6 +125,48 @@ var AwardsService = /** @class */ (function (_super) {
});
});
};
AwardsService.prototype.getMyPrizeList = function (activityInfo) {
return __awaiter(this, void 0, void 0, function () {
var openId, activityId, myPrizeList;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
openId = this.context.openId;
activityId = this.context.data.activityId;
return [4 /*yield*/, this.getAwardsInfoList({
openId: openId,
activityId: activityId,
type: { $ne: constants_1.PRIZE_TYPE.THANKS }
}, {
projection: {
_id: 1,
name: 1,
image: 1,
type: 1,
drawStatus: 1,
shipStatus: 1,
receiveName: 1,
phone: 1,
address: 1,
provice: 1,
city: 1,
area: 1,
remark: 1,
useUrl: 1,
shipCompany: 1,
shipNum: 1
},
sort: {
createTime: -1
}
})];
case 1:
myPrizeList = _a.sent();
return [2 /*return*/, this.formatMyPrizeList(myPrizeList, activityInfo.awardReceiveExpiredTime)];
}
});
});
};
/**
* 插入奖品记录
* @param {*} award
......
{"version":3,"file":"awards.service.js","sourceRoot":"","sources":["../../src/service/awards.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAgC;AAChC,+CAAwC;AACxC,0CAQqB;AACrB,4BAA4D;AAC5D,kCAA2E;AAG3E;IAA2C,iCAAW;IAGpD,uBAAY,OAA0B;QAAtC,YACE,kBAAM,OAAO,CAAC,SAGf;QAFC,KAAI,CAAC,SAAS,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,mBAAc,CAAC,CAAA;QAC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,KAAA,EAAE,YAAY,gBAAwB,EAAE,EAC7C;4BACE,IAAI,EAAE;gCACJ,KAAK,EAAE,CAAC;6BACT;yBACF,CACF,EAAA;4BAPD,sBAAO,SAON,EAAA;;;;KACF;IACH,oBAAC;AAAD,CAAC,AA9MD,CAA2C,sBAAW,GA8MrD"}
\ No newline at end of file
{"version":3,"file":"awards.service.js","sourceRoot":"","sources":["../../src/service/awards.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAgC;AAChC,+CAAwC;AACxC,0CAQqB;AACrB,4BAA4D;AAC5D,kCAA2E;AAG3E;IAA2C,iCAAW;IAGpD,uBAAY,OAA0B;QAAtC,YACE,kBAAM,OAAO,CAAC,SAGf;QAFC,KAAI,CAAC,SAAS,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,mBAAc,CAAC,CAAA;QACrD,KAAI,CAAC,gBAAgB,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,yBAAoB,CAAC,CAAA;;IACpE,CAAC;IAED,uBAAuB;IACjB,mCAAW,GAAjB,UAAkB,GAAW;;;;;4BACd,qBAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAiB,EAAE,GAAG,KAAA,EAAE,YAAY,gBAAwB,EAAE,CAAC;wBAC/G,QAAQ;sBADuG;;wBAA3G,MAAM,GAAG,SAAkG;wBAC/G,QAAQ;wBACR,IAAI,CAAC,MAAM,EAAE;4BACX,sBAAO,sBAAU,CAAC,cAAc,EAAA;yBACjC;wBACK,WAAW,GAAsB,MAAM,YAA5B,EAAE,KAAK,GAAe,MAAM,MAArB,EAAE,QAAQ,GAAK,MAAM,SAAX,CAAW;wBAC7C,SAAS;wBACT,IAAI,WAAW,KAAK,sBAAU,CAAC,QAAQ,EAAE;4BACvC,sBAAO,CAAC,EAAA;yBACT;wBACD,QAAQ;wBACR,IAAI,QAAQ,IAAI,KA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;gBAE/B,sBAAO,MAAM,CAAC,IAAI,CAAC,UAAA,CAAC,IAAI,OAAA,WAAW,IAAI,CAAC,CAAC,WAAW,IAAI,WAAW,IAAI,CAAC,CAAC,aAAa,EAA9D,CAA8D,CAAC,EAAA;;;KACxF;IAED;;;OAGG;IACG,4CAAoB,GAA1B,UAA2B,GAAW;;;;4BAC7B,qBAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CACxC,EAAE,GAAG,KAAA,EAAE,YAAY,gBAAwB,EAAE,EAC7C;4BACE,IAAI,EAAE;gCACJ,KAAK,EAAE,CAAC;6BACT;yBACF,CACF,EAAA;4BAPD,sBAAO,SAON,EAAA;;;;KACF;IACH,oBAAC;AAAD,CAAC,AAnPD,CAA2C,sBAAW,GAmPrD"}
\ No newline at end of file
......@@ -53,28 +53,13 @@ export default class TaskService extends UserService {
*/
completeTask(taskType: ITaskType, activityInfo: IActivityInfo, userInfo: IUserInfo, customRecord?: object): Promise<number>;
updateOrderGoodsTask(userInfo: IUserInfo, tasks: ITasks, activityStartTime: number, session?: string): Promise<{}>;
updateSignTask(userInfo: IUserInfo, tasks: ITasks): {
$inc: {
'remainTimes.sign': number;
};
$push: {
[x: string]: {
createTime: number;
};
};
} | {
$inc?: undefined;
$push?: undefined;
};
/**
*
* 更新user表中,任务相关字段
*
* @param {string} id
* @param {object[]} needUpdateKeysArray
* @param {IUserInfo} userInfo
* @returns {IUserInfo | boolean} userInfo
* @memberof TaskService
*/
updateTasks(id: string, needUpdateKeysArray: object[], userInfo: IUserInfo): Promise<false | IUserInfo>;
getItemListWithCollectStatus(list: ITaoBaoItems[], userInfo: IUserInfo): {
collected: boolean;
itemId: string;
name: string;
price: string;
url: string;
image: string;
desc: string;
}[];
}
......@@ -64,15 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var lodash_1 = require("lodash");
var user_service_1 = require("./user.service");
var utils_1 = require("../utils");
var constants_1 = require("../constants");
......@@ -238,74 +230,12 @@ var TaskService = /** @class */ (function (_super) {
});
});
};
// 更新签到任务数据
TaskService.prototype.updateSignTask = function (userInfo, tasks) {
var _a;
// 获取签到奖励
var value = (tasks || {}).sign.value;
var todayCompleteTimes = task_1.getTodayCompleteTask('sign', userInfo).todayCompleteTimes;
var today = utils_1.getToday();
// 今天没有有完成记录
return todayCompleteTimes === 0
? {
$inc: {
'remainTimes.sign': value
},
$push: (_a = {},
_a["taskInfo." + today + ".sign"] = { createTime: Date.now() },
_a)
}
: {};
};
/**
*
* 更新user表中,任务相关字段
*
* @param {string} id
* @param {object[]} needUpdateKeysArray
* @param {IUserInfo} userInfo
* @returns {IUserInfo | boolean} userInfo
* @memberof TaskService
*/
TaskService.prototype.updateTasks = function (id, needUpdateKeysArray, userInfo) {
return __awaiter(this, void 0, void 0, function () {
var updateKeys, _$inc, _$set, _$push;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
utils_1.logger(needUpdateKeysArray);
updateKeys = lodash_1.merge.apply(void 0, __spreadArrays([{}], needUpdateKeysArray));
utils_1.logger(updateKeys);
_$inc = updateKeys.$inc || {};
_$set = updateKeys.$set || {};
_$push = updateKeys.$push || {};
// 删除空的操作
if (!Object.keys(_$inc).length && updateKeys.$inc) {
delete updateKeys.$inc;
}
if (!Object.keys(_$set).length && updateKeys.$set) {
delete updateKeys.$set;
}
if (!Object.keys(_$push).length && updateKeys.$push) {
delete updateKeys.$push;
}
if (!Object.keys(updateKeys).length) {
return [2 /*return*/, userInfo];
}
return [4 /*yield*/, this.updateUser(id, updateKeys)
// 更新数据库后 延迟10ms 执行
];
case 1:
_a.sent();
// 更新数据库后 延迟10ms 执行
return [4 /*yield*/, utils_1.sleep(10)];
case 2:
// 更新数据库后 延迟10ms 执行
_a.sent();
return [4 /*yield*/, this.getUserInfo()];
case 3: return [2 /*return*/, _a.sent()];
}
});
TaskService.prototype.getItemListWithCollectStatus = function (list, userInfo) {
var taskInfo = task_1.getTotalCompleteTask('collectGoods', userInfo).taskInfo;
return list.map(function (v) {
return __assign(__assign({}, v), {
// 完成列表是否含有itemId
collected: taskInfo.some(function (completeItem) { return completeItem.itemId === v.itemId; }) });
});
};
return TaskService;
......
{"version":3,"file":"task.service.js","sourceRoot":"","sources":["../../src/service/task.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iCAA8B;AAC9B,+CAAwC;AACxC,kCAUiB;AACjB,0CAA0D;AAC1D,6CAAgG;AAehG;IAAyC,+BAAW;IAClD,qBAAY,OAA0B;eACpC,kBAAM,OAAO,CAAC;IAChB,CAAC;IACD;;;;;;;;;OASG;IACH,8BAAQ,GAAR,UAAS,QAAmB,EAAE,KAAa,EAAE,YAA2B,EAAE,QAAmB;;QACrF,IAAA,KAA8D,OAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,KAAK,0CAAG,QAAQ,MAAK,EAAE,EAAjG,KAAK,WAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,YAAY,kBAAA,EAAE,aAAS,EAAT,KAAK,mBAAG,CAAC,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAA0C,CAAA;QACjG,IAAA,WAAW,GAAK,QAAQ,YAAb,CAAa;QACxB,IAAA,kBAAkB,GAAK,2BAAoB,CAAC,QAAQ,EAAE,QAAQ,CAAC,mBAA7C,CAA6C;QAC/D,IAAA,aAAa,GAAK,2BAAoB,CAAC,QAAQ,EAAE,QAAQ,CAAC,cAA7C,CAA6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D,OAAO,UAAU,CAAC,KAAK,CAAA;yBACxB;wBAED,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE;4BACnC,sBAAO,QAAQ,EAAA;yBAChB;wBAED,qBAAM,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC;4BAErC,mBAAmB;0BAFkB;;wBAArC,SAAqC,CAAA;wBAErC,mBAAmB;wBACnB,qBAAM,aAAK,CAAC,EAAE,CAAC,EAAA;;wBADf,mBAAmB;wBACnB,SAAe,CAAA;wBAER,qBAAM,IAAI,CAAC,WAAW,EAAE,EAAA;4BAA/B,sBAAO,SAAwB,EAAA;;;;KAChC;IACH,kBAAC;AAAD,CAAC,AArND,CAAyC,sBAAW,GAqNnD"}
\ No newline at end of file
{"version":3,"file":"task.service.js","sourceRoot":"","sources":["../../src/service/task.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,+CAAwC;AACxC,kCAUiB;AACjB,0CAA0D;AAC1D,6CAAgG;AAehG;IAAyC,+BAAW;IAClD,qBAAY,OAA0B;eACpC,kBAAM,OAAO,CAAC;IAChB,CAAC;IACD;;;;;;;;;OASG;IACH,8BAAQ,GAAR,UAAS,QAAmB,EAAE,KAAa,EAAE,YAA2B,EAAE,QAAmB;;QACrF,IAAA,KAA8D,OAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,KAAK,0CAAG,QAAQ,MAAK,EAAE,EAAjG,KAAK,WAAA,EAAE,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,YAAY,kBAAA,EAAE,aAAS,EAAT,KAAK,mBAAG,CAAC,KAAA,EAAE,YAAS,EAAT,IAAI,mBAAG,EAAE,KAA0C,CAAA;QACjG,IAAA,WAAW,GAAK,QAAQ,YAAb,CAAa;QACxB,IAAA,kBAAkB,GAAK,2BAAoB,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AA;wBAEF,sBAAO,UAAU,EAAA;;;;KAClB;IAED,kDAA4B,GAA5B,UAA6B,IAAoB,EAAE,QAAmB;QAC5D,IAAA,QAAQ,GAAK,2BAAoB,CAAC,cAAc,EAAE,QAAQ,CAAC,SAAnD,CAAmD;QAEnE,OAAO,IAAI,CAAC,GAAG,CAAC,UAAA,CAAC;YACf,6BACK,CAAC;gBACJ,iBAAiB;gBACjB,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAA,YAAY,IAAI,OAAA,YAAY,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,EAAhC,CAAgC,CAAC,IAC3E;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IACH,kBAAC;AAAD,CAAC,AA/JD,CAAyC,sBAAW,GA+JnD"}
\ No newline at end of file
......@@ -19,6 +19,7 @@ declare class UserService extends BaseService {
* @returns 若用户不存在,返回null; 用户存在,返回用户信息(object对象)
*/
getUserInfoByOpenId(openId: string): Promise<IUserInfo>;
doLogin(userInfo: IUserInfo, vipInfo: IVipInfo, activityInfo: IActivityInfo): Promise<IUserInfo>;
/**
* 初始化用户数据
*
......@@ -37,38 +38,37 @@ declare class UserService extends BaseService {
*/
updateUser(_id: string, projection: IUpdateQuery): Promise<number>;
getRank(sortValueKey: string, sortTimeKey: string, limit?: number): Promise<{
list: {
score: any;
avatar: string;
userNick: string;
rank: number;
_id?: string;
id?: string;
activityId: string;
avatar: string;
openId: string;
createTime: number;
updateTime: number;
createDay?: string;
inviteId?: string;
member?: IMemberInfo;
follow?: IFollowInfo;
remainTimes?: IRemainTimesInfo;
taskInfo?: object;
login?: object;
}[]>;
}[];
}>;
/**
* 获取用户排名
*
* @param {string} sortValueKey 排名字段
* @param {number} userValue
* @param {userInfo} IUserInfo
* @param {string} sortTimeKey
* @return {number} 排行
* @memberof UserService
*/
getMyRank(sortValueKey: string, sortTimeKey: string, userValue: number): Promise<number>;
getMyRankInfo(sortValueKey: string, sortTimeKey: string, userInfo: IUserInfo): Promise<{
rank: number;
userNick: string;
avatar: string;
score: any;
}>;
/**
* @desc 根据用户主键id查找用户详情
* @param {用户的主键id} _id
* @returns 若用户不存在,返回null; 用户存在,返回用户信息(object对象)
*/
getUserInfoById(_id: string): Promise<unknown>;
getShopVip(context: IContext<{
activityId: string;
callbackUrl?: string;
}>, session: string, activityUserNick: string): Promise<IVipInfo>;
}
export default UserService;
......@@ -71,6 +71,7 @@ var db_1 = require("../db");
var utils_1 = require("../utils");
var userUpdate_1 = require("../utils/common/userUpdate");
var format_1 = require("../utils/common/format");
var vip_1 = require("../utils/common/vip");
var UserService = /** @class */ (function (_super) {
__extends(UserService, _super);
function UserService(context) {
......@@ -119,6 +120,25 @@ var UserService = /** @class */ (function (_super) {
});
});
};
UserService.prototype.doLogin = function (userInfo, vipInfo, activityInfo) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
if (!!userInfo) return [3 /*break*/, 2];
return [4 /*yield*/, this.initUserData(vipInfo, activityInfo)];
case 1:
userInfo = _a.sent();
return [3 /*break*/, 4];
case 2: return [4 /*yield*/, this.updateUserData(vipInfo, userInfo, activityInfo)];
case 3:
userInfo = _a.sent();
_a.label = 4;
case 4: return [2 /*return*/, userInfo];
}
});
});
};
/**
* 初始化用户数据
*
......@@ -129,17 +149,17 @@ var UserService = /** @class */ (function (_super) {
*/
UserService.prototype.initUserData = function (vipInfo, activityInfo) {
return __awaiter(this, void 0, void 0, function () {
var _a, openId, data, activityId, isFollow, avatar, inviteId, userNick, today, tasks, follow, member, user;
var _b, _c;
return __generator(this, function (_d) {
switch (_d.label) {
var _a, openId, data, activityId, isFollow, avatar, inviteId, userNick, today, tasks, _b, follow, _c, member, user;
var _d, _e;
return __generator(this, function (_f) {
switch (_f.label) {
case 0:
_a = this.context, openId = _a.openId, data = _a.data;
activityId = data.activityId, isFollow = data.isFollow, avatar = data.avatar, inviteId = data.inviteId, userNick = data.userNick;
today = utils_1.getToday();
console.log("----------" + today + "----------", today);
tasks = activityInfo.tasks;
follow = tasks.follow, member = tasks.member;
_b = tasks.follow, follow = _b === void 0 ? {} : _b, _c = tasks.member, member = _c === void 0 ? {} : _c;
user = {
activityId: activityId,
avatar: avatar,
......@@ -157,12 +177,12 @@ var UserService = /** @class */ (function (_super) {
follow: {
flag: !!isFollow
},
login: (_b = {},
_b[today] = 1,
_b),
taskInfo: (_c = {},
_c[today] = {},
_c),
login: (_d = {},
_d[today] = 1,
_d),
taskInfo: (_e = {},
_e[today] = {},
_e),
createTime: Date.now(),
createDay: today,
updateTime: Date.now()
......@@ -177,7 +197,7 @@ var UserService = /** @class */ (function (_super) {
}
return [4 /*yield*/, this.userdao.insertOne(user)];
case 1:
_d.sent();
_f.sent();
return [2 /*return*/, user];
}
});
......@@ -268,9 +288,16 @@ var UserService = /** @class */ (function (_super) {
})];
case 1:
list = _d.sent();
return [2 /*return*/, list.map(function (v, i) {
return __assign(__assign({}, v), { userNick: format_1.formatUserNick(v.userNick), rank: i + 1 });
})];
return [2 /*return*/, {
list: list.map(function (v, i) {
return {
score: v[sortValueKey],
avatar: v.avatar,
userNick: format_1.formatUserNick(v.userNick),
rank: i + 1
};
})
}];
}
});
});
......@@ -279,20 +306,22 @@ var UserService = /** @class */ (function (_super) {
* 获取用户排名
*
* @param {string} sortValueKey 排名字段
* @param {number} userValue
* @param {userInfo} IUserInfo
* @param {string} sortTimeKey
* @return {number} 排行
* @memberof UserService
*/
UserService.prototype.getMyRank = function (sortValueKey, sortTimeKey, userValue) {
UserService.prototype.getMyRankInfo = function (sortValueKey, sortTimeKey, userInfo) {
return __awaiter(this, void 0, void 0, function () {
var activityId, openId, sameScoreList, rank, gap, j;
var activityId, openId, userValue, userNick, avatar, sameScoreList, rank, gap, j;
var _a, _b, _c;
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
activityId = this.context.data.activityId;
openId = this.context.openId;
userValue = userInfo[sortValueKey];
userNick = userInfo.userNick, avatar = userInfo.avatar;
return [4 /*yield*/, this.userdao.find((_a = {}, _a[sortValueKey] = userValue, _a.activityId = activityId, _a), {
sort: (_b = {}, _b[sortTimeKey] = 1, _b)
})];
......@@ -309,7 +338,12 @@ var UserService = /** @class */ (function (_super) {
case 2:
rank = _d.sent();
rank = rank + 1 + gap;
return [2 /*return*/, rank];
return [2 /*return*/, {
rank: rank,
userNick: userNick,
avatar: avatar,
score: userValue
}];
}
});
});
......@@ -329,6 +363,19 @@ var UserService = /** @class */ (function (_super) {
});
});
};
UserService.prototype.getShopVip = function (context, session, activityUserNick) {
return __awaiter(this, void 0, void 0, function () {
var callbackUrl;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
callbackUrl = context.data.callbackUrl;
return [4 /*yield*/, vip_1.getShopVip(context, session, callbackUrl || vip_1.formatVipCbUrl(context), activityUserNick)];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
return UserService;
}(base_service_1.default));
exports.default = UserService;
......
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../src/service/user.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAwC;AACxC,+CAAwC;AACxC,4BAAoC;AACpC,kCAA+D;AAC/D,yDAAqD;AACrD,iDAAuD;AACvD;IAA0B,+BAAW;IAEnC,qBAAY,OAA0B;QAAtC,YACE,kBAAM,OAAO,CAAC,SAEf;QADC,KAAI,CAAC,OAAO,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,iBAAY,CAAC,CAAA;;IACnD,CAAC;IACD;;;OAGG;IACG,iCAAW,GAAjB;;;;;;wBACM,KAAmB,IAAI,CAAC,OAAO,EAA7B,MAAM,YAAA,EAAE,IAAI,UAAA,CAAiB;wBAC7B,UAAU,GAAK,IAAI,WAAT,CAAS;wBACZ,qBAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAY,EAAE,MAAM,QAAA,EAAE,UAAU,YAAA,EAAE,CAAC,EAAA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AtB,CAAsB;wBAC9B,MAAM,GAAK,IAAI,CAAC,OAAO,OAAjB,CAAiB;wBACX,qBAAM,IAAI,CAAC,OAAO,CAAC,IAAI,WACvC,GAAC,YAAY,IAAG,SAAS,EAAE,aAAU,aAAA,OACvC;gCACE,IAAI,YAAI,GAAC,WAAW,IAAG,CAAC,KAAE;6BAC3B,CACF,EAAA;;wBALG,aAAa,GAAG,SAKnB;wBAEG,GAAG,GAAG,CAAC,CAAA;wBAEX,eAAe;wBACf,KAAS,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;4BAC7C,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,MAAM,EAAE;gCACtC,GAAG,GAAG,CAAC,CAAA;6BACR;yBACF;wBACM,qBAAM,IAAI,CAAC,OAAO,CAAC,KAAK,WAAG,GAAC,YAAY,IAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,aAAU,aAAA,MAAG,EAAA;;wBAAnF,IAAI,GAAG,SAA4E,CAAA;wBACnF,IAAI,GAAG,IAAI,GAAG,CAAC,GAAG,GAAG,CAAA;wBACrB,sBAAO,IAAI,EAAA;;;;KACZ;IAED;;;;OAIG;IACG,qCAAe,GAArB,UAAsB,GAAW;;;;4BACxB,qBAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,KAAA,EAAE,CAAC,EAAA;4BAA1C,sBAAO,SAAmC,EAAA;;;;KAC3C;IACH,kBAAC;AAAD,CAAC,AAlND,CAA0B,sBAAW,GAkNpC;AAED,kBAAe,WAAW,CAAA"}
\ No newline at end of file
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../src/service/user.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAwC;AACxC,+CAAwC;AACxC,4BAAoC;AACpC,kCAA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pC;AAED,kBAAe,WAAW,CAAA"}
\ No newline at end of file
......@@ -7,9 +7,7 @@ import { PRIZE_TYPE, DRAW_STATUS, CODE_TYPES } from '../constants'
import { getToday } from '../utils/'
import { CodeType } from 'taobao-mini-sdk/lib/utils/codetypes'
import preCheck from '../decorator/common/preCheck'
import { checkActivityTime } from '../utils/common/check/checkActivityTime'
import { checkPrizeExpired } from '../utils/common/check/checkPrizeExpired'
import { checkValidPrize } from '../utils/common/check/checkValidPrize'
import { checkActivityTime, checkPrizeExpired, checkValidPrize } from '../utils/common/check/'
export interface IPrizeListParams {
activityId: string
......@@ -47,46 +45,10 @@ export default class AwardsController {
{ activityInfo }: IControllerInfos,
[awardSer]: [AwardsService]
): Promise<IResult<{ list: IAwards[] }>> {
const {
openId,
data: { activityId }
} = context
const { awardReceiveExpiredTime } = activityInfo
const myPrizeList = await awardSer.getAwardsInfoList(
{
openId,
activityId,
type: { $ne: PRIZE_TYPE.THANKS }
},
{
projection: {
_id: 1,
name: 1,
image: 1,
type: 1,
drawStatus: 1,
shipStatus: 1,
receiveName: 1,
phone: 1,
address: 1,
provice: 1,
city: 1,
area: 1,
remark: 1,
useUrl: 1,
shipCompany: 1,
shipNum: 1
},
sort: {
createTime: -1
}
}
)
const list = await awardSer.getMyPrizeList(activityInfo)
return resultsModel.success({
list: awardSer.formatMyPrizeList(myPrizeList, awardReceiveExpiredTime)
list
})
}
......@@ -95,7 +57,7 @@ export default class AwardsController {
*/
@checkParams(['activityId', 'id', 'name', 'phone', 'province', 'city', 'area', 'addressDetail', 'streetName'])
@services([AwardsService])
@preCheck([checkPrizeExpired, checkValidPrize([PRIZE_TYPE.OBJECT])])
@preCheck([checkPrizeExpired])
async receiveObjectPrize(
context: IContext<IReceiveOjectParams>,
{ activityInfo }: IReceivePrizeControllerInfos,
......@@ -125,7 +87,7 @@ export default class AwardsController {
@checkParams(['activityId', 'id'])
@registeInfos(['session'])
@services([AwardsService])
@preCheck([checkPrizeExpired, checkValidPrize([PRIZE_TYPE.ENAME, PRIZE_TYPE.CREDITS])])
@preCheck([checkPrizeExpired])
async receiveEnamePrize(
context: IContext<IReceiveEnameParams>,
{ awardInfo, session }: IReceivePrizeControllerInfos,
......
......@@ -3,9 +3,8 @@
import { services, checkParams, registeInfos } from '../decorator/common'
import { resultsModel } from '../sdk'
import { UserService, AccessService } from '../service'
import preCheck from '../decorator/common/preCheck'
import { checkActivityTime } from '../utils/common/check/checkActivityTime'
import noCheckUser from '../decorator/common/noCheckUser'
import { noCheckUser } from '../decorator/common'
export interface ILoginParams {
activityId: string
......@@ -24,19 +23,14 @@ export default class User {
@services([UserService, AccessService])
async login(
context: IContext<ILoginParams>,
{ userInfo, vipInfo, activityInfo }: IControllerInfos,
{ userInfo, activityInfo, vipInfo }: IControllerInfos,
[userService, accessService]: [UserService, AccessService]
): Promise<IResult<{ openId: string }>> {
const { openId } = context
if (!userInfo) {
userInfo = await userService.initUserData(vipInfo, activityInfo)
} else {
userInfo = await userService.updateUserData(vipInfo, userInfo, activityInfo)
}
const updatedUserInfo = await userService.doLogin(userInfo, vipInfo, activityInfo)
// access表
await accessService.addAccess(userInfo)
await accessService.addAccess(updatedUserInfo)
return resultsModel.success({
openId
......
/** @format */
import { checkParams } from '../decorator/common/'
import { services, preCheck, registeInfos } from '../decorator/common/'
import { services, preCheck, registeInfos, preUpdate, checkParams } from '../decorator/common/'
import { resultsModel } from '../sdk'
import { UserService, StatService, TaskService } from '../service'
import { STAT_TYPE } from '../constants'
import { checkActivityTime } from '../utils/common/check/checkActivityTime'
import { checkInviteId } from '../utils/common/check/checkInviteId'
import { checkHelpRecord } from '../utils/common/check/checkHelpRecord'
import { checkNewVip } from '../utils/common/check/checkNewVip'
import { checkActivityTime, checkInviteId, checkHelpRecord, checkNewVip } from '../utils/common/check'
import { CODE_TYPES } from '../errorCode'
import update from '../decorator/common/update'
import { updateVip } from '../utils/common/update/updateVip'
import { updateVip } from '../utils/common/update/'
export interface IdoHelpInfos extends IControllerInfos {
inviteUserInfo: IUserInfo
}
......@@ -41,7 +36,7 @@ export default class Share {
@registeInfos(['vipInfo'])
@services([TaskService, StatService])
@preCheck([checkActivityTime, checkInviteId, checkNewVip, checkHelpRecord])
@update([updateVip])
@preUpdate([updateVip])
async doHelp(
context: IContext<{
activityId: string
......
......@@ -5,13 +5,9 @@ import { checkParams, services, registeInfos, preCheck } from '../decorator/comm
import { resultsModel } from '../sdk'
import { TaskService, BaseService } from '../service'
import { ITaskInfo } from '../service/task.service'
import { checkActivityTime } from '../utils/common/check/checkActivityTime'
import { getTotalCompleteTask } from '../utils/common/task'
import { update } from '../decorator/common/update'
import { updateVip } from '../utils/common/update/updateVip'
import { checkTaskLimit } from '../utils/common/check/checkTaskLimit'
import { checkExchangeCreditsTask } from '../utils/common/check/checkExchangeCreditsTask'
import { checkRemainTimes } from '../utils/common/check/checkRemainTimes'
import { checkActivityTime, checkTaskLimit, checkExchangeCreditsTask, checkRemainTimes } from '../utils/common/check/'
import { preUpdate } from '../decorator/common'
import { updateVip, updateSignTask } from '../utils/common/update'
export default class Task {
/**
......@@ -21,7 +17,7 @@ export default class Task {
@registeInfos(['vipInfo'])
@services([TaskService])
@preCheck([checkActivityTime])
@update([updateVip])
@preUpdate([updateVip, updateSignTask])
async getTaskList(
context: IContext<{ activityId: string }>,
{ userInfo, activityInfo }: IControllerInfos,
......@@ -36,7 +32,7 @@ export default class Task {
// taskService.initTask('collectGoods', '收藏商品', activityInfo, userInfo),
// taskService.initTask('jumpLink', '浏览页面', activityInfo, userInfo),
// taskService.initTask('invites', '邀请好友', activityInfo, userInfo)
// taskService.initTask('exchangeCredits', '积分兑换', activityInfo, updatedUserInfo)
// taskService.initTask('exchangeCredits', '积分兑换', activityInfo, userInfo)
])
}
......@@ -98,24 +94,17 @@ export default class Task {
*/
@checkParams(['activityId', 'itemIds'])
@registeInfos(['session'])
@services([BaseService])
@services([BaseService, TaskService])
async getCollectGoodsList(
context: IContext<IParams>,
{ session, userInfo }: IControllerInfos,
[baseService]: [BaseService]
[baseService, taskService]: [BaseService, TaskService]
) {
const { itemIds } = context.data
const list = await baseService.getItemListByIds(itemIds, session)
const { taskInfo } = getTotalCompleteTask('collectGoods', userInfo)
const list = await baseService.getItemListByIds(itemIds, session)
const listWithCollectStatus = list.map(v => {
return {
...v,
// 完成列表是否含有itemId
collected: taskInfo.some(completeItem => completeItem.itemId === v.itemId)
}
})
const listWithCollectStatus = taskService.getItemListWithCollectStatus(list, userInfo)
return resultsModel.success(listWithCollectStatus)
}
......
......@@ -10,17 +10,35 @@ export interface IVipParams {
callbackUrl?: string
inviteId?: string // 需要助力回调时请求该接口
}
interface IRankList {
userNick: string
avatar: string
score: any
rank: number
}
export interface IRankResult {
rank: number
userNick: string
avatar: string
score: number
list: IRankList[]
}
export default class User {
/**
* 获取会员信息
*/
@checkParams(['activityId'])
@registeInfos(['session'])
@services([UserService])
async getVipInfo(
context: IContext<IVipParams>,
{ session, activityUserNick }: IControllerInfos
{ session, activityUserNick }: IControllerInfos,
[userService]: [UserService]
): Promise<IResult<IVipInfo>> {
const { callbackUrl } = context.data
// 拼接回调参数
const result = await getShopVip(context, session, callbackUrl || formatVipCbUrl(context), activityUserNick)
const result = await userService.getShopVip(context, session, activityUserNick)
return resultsModel.success(result)
}
......@@ -42,18 +60,13 @@ export default class User {
) {
const { key, timeKey, limit = 200 } = context.data
const { userNick, avatar } = userInfo
const rank = await userService.getMyRank(key, timeKey, userInfo[key])
const rankInfo = await userService.getMyRankInfo(key, timeKey, userInfo)
const list = await userService.getRank(key, timeKey, limit)
return resultsModel.success({
userNick,
avatar,
rank,
score: userInfo[key],
list
...rankInfo,
...list
})
}
}
......@@ -3,7 +3,7 @@ import { resultsModel } from '../../sdk'
import { CODE_TYPES } from '../../constants'
import { logFn } from '../../utils'
// 检验参数是否存在
const checkParams = (params: string[]) => {
export default function checkParams(params: string[]) {
return function (target: Object, name: string, descriptor: PropertyDescriptor) {
const method = descriptor.value
......@@ -21,5 +21,3 @@ const checkParams = (params: string[]) => {
}
}
}
export default checkParams
......@@ -5,7 +5,7 @@ import checkParams from './checkParams'
import preCheck from './preCheck'
import registeInfos from './registeInfos'
import noCheckUser from './noCheckUser'
import update from './update'
import preUpdate from './preUpdate'
const common = {
services,
......@@ -14,9 +14,9 @@ const common = {
preCheck,
registeInfos,
noCheckUser,
update
preUpdate
}
export default common
export { services, noCatch, checkParams, preCheck, registeInfos, noCheckUser, update }
export { services, noCatch, checkParams, preCheck, registeInfos, noCheckUser, preUpdate }
/** @format */
const noCatch = (target: any, name: string, descriptor: PropertyDescriptor) => {
export default function noCatch(target: any, name: string, descriptor: PropertyDescriptor) {
const method = descriptor.value
descriptor.value = async function (...args: any[]) {
const [context, otherArgs = {}] = args
return method.apply(this, [context, { ...otherArgs, noCatch: true }])
}
}
export default noCatch
/** @format */
const noCheckUser = (target: any, name: string, descriptor: PropertyDescriptor) => {
export default function noCheckUser(target: any, name: string, descriptor: PropertyDescriptor) {
const method = descriptor.value
descriptor.value = async function (...args: any[]) {
const [context, otherArgs = {}] = args
return method.apply(this, [context, { ...otherArgs, noCheckUser: true }])
}
}
export default noCheckUser
/** @format */
// 检验参数是否存在
const preCheck = (checks: IFunction[]) => {
export default function preCheck(checks: IFunction[]) {
return function (target: Object, name: string, descriptor: PropertyDescriptor) {
const method = descriptor.value
......@@ -23,5 +23,3 @@ const preCheck = (checks: IFunction[]) => {
}
}
}
export default preCheck
/** @format */
import { merge } from 'lodash'
import { isEmpty, merge } from 'lodash'
import { UserService } from '../../service'
import { recordErrorLog } from '../../utils/common/logger'
import { resultsModel } from '../../sdk'
import { CODE_TYPES } from '../../errorCode'
import { formatUpdatedUserInfo } from '../../utils/common/format'
import { userInfo } from 'os'
// 检验参数是否存在
const update = (checks: IFunction[]) => {
export default function preUpdate(checks: IFunction[]) {
return function (target: Object, name: string, descriptor: PropertyDescriptor) {
const method = descriptor.value
descriptor.value = async function (...args: any[]) {
let [context, otherArgs = {}, services = []] = args
let totalUpdateProjection: IDecoratorUpdateQuery = {}
let [context, otherArgs = {} as IControllerInfos, services = []] = args
let totalUpdateProjection: IPreUpdateQuery = {}
for (let i = 0; i < checks.length; i++) {
const checkFn = checks[i]
let result: IDecoratorUpdateQuery = await checkFn.apply(target, [context, { ...otherArgs }, services])
let result: IPreUpdateQuery = await checkFn.apply(target, [context, { ...otherArgs }, services])
result = result || {}
// 校验报错
if ((result as IErrorResult)?.success === false && (result as IErrorResult)?.code) {
......@@ -24,9 +30,36 @@ const update = (checks: IFunction[]) => {
otherArgs = { ...otherArgs }
}
console.log(formatUpdatedUserInfo(otherArgs.userInfo, totalUpdateProjection))
// 更新数据
try {
await preUpdateUser(context, otherArgs.userInfo, totalUpdateProjection)
} catch (error) {
console.log(error, 'preUpdateUser-error')
recordErrorLog(context, otherArgs, error.toString(), error.stack)
return resultsModel.error(CODE_TYPES.SYSTEM_ERROR)
}
return method.apply(target, [context, { ...otherArgs }, services])
}
}
}
export default update
async function preUpdateUser(context: IContext<IParams>, userInfo: IUserInfo, updateProjection: IPreUpdateQuery) {
return true
// 删除空的操作
if (isEmpty(updateProjection.$inc)) {
delete updateProjection.$inc
}
if (isEmpty(updateProjection.$set)) {
delete updateProjection.$set
}
if (isEmpty(updateProjection.$push)) {
delete updateProjection.$push
}
if (isEmpty(updateProjection)) return true
const userService = new UserService(context)
return await userService.updateUser(userInfo._id, updateProjection)
}
......@@ -44,7 +44,7 @@ async function initBaseInfo(context: IContext<IParams>, baseInfos: ICheckControl
return baseInfos
}
const registeInfos = (needInfos: IInfo[]) => {
export default function registeInfos(needInfos: IInfo[]) {
return function (target: any, name: string, descriptor: PropertyDescriptor) {
const method = descriptor.value
descriptor.value = async function (...args: any[]) {
......@@ -58,5 +58,3 @@ const registeInfos = (needInfos: IInfo[]) => {
}
}
}
export default registeInfos
......@@ -31,7 +31,7 @@ async function formatBaseInfos(context: IContext<IParams>, baseInfos: ICheckCont
}
// 注入服务
const services = (services: Constructor[]) => {
export default function services(services: Constructor[]) {
return (target: Object, name: string, descriptor: PropertyDescriptor) => {
const method = descriptor.value
......@@ -57,5 +57,3 @@ const services = (services: Constructor[]) => {
}
}
}
export default services
......@@ -63,6 +63,43 @@ export default class AwardsService extends UserService {
}
}
async getMyPrizeList(activityInfo: IActivityInfo) {
const { openId } = this.context
const { activityId } = this.context.data
const myPrizeList = await this.getAwardsInfoList(
{
openId,
activityId,
type: { $ne: PRIZE_TYPE.THANKS }
},
{
projection: {
_id: 1,
name: 1,
image: 1,
type: 1,
drawStatus: 1,
shipStatus: 1,
receiveName: 1,
phone: 1,
address: 1,
provice: 1,
city: 1,
area: 1,
remark: 1,
useUrl: 1,
shipCompany: 1,
shipNum: 1
},
sort: {
createTime: -1
}
}
)
return this.formatMyPrizeList(myPrizeList, activityInfo.awardReceiveExpiredTime)
}
/**
* 插入奖品记录
* @param {*} award
......@@ -114,7 +151,7 @@ export default class AwardsService extends UserService {
return await this.awardsdao.find<IAwards>(query, projection)
}
formatMyPrizeList(myPrizeList: IAwards[], awardReceiveExpiredTime?: number) {
formatMyPrizeList(myPrizeList: IAwards[], awardReceiveExpiredTime?: number): IAwards[] {
const now = Date.now()
return myPrizeList.map(v => {
if (
......
......@@ -181,69 +181,15 @@ export default class TaskService extends UserService {
return projection
}
// 更新签到任务数据
updateSignTask(userInfo: IUserInfo, tasks: ITasks) {
// 获取签到奖励
const {
sign: { value }
} = tasks || {}
const { todayCompleteTimes } = getTodayCompleteTask('sign', userInfo)
const today = getToday()
// 今天没有有完成记录
return todayCompleteTimes === 0
? {
$inc: {
'remainTimes.sign': value
},
$push: {
[`taskInfo.${today}.sign`]: { createTime: Date.now() }
}
}
: {}
}
/**
*
* 更新user表中,任务相关字段
*
* @param {string} id
* @param {object[]} needUpdateKeysArray
* @param {IUserInfo} userInfo
* @returns {IUserInfo | boolean} userInfo
* @memberof TaskService
*/
async updateTasks(id: string, needUpdateKeysArray: object[], userInfo: IUserInfo): Promise<false | IUserInfo> {
logger(needUpdateKeysArray)
const updateKeys = merge({}, ...needUpdateKeysArray)
logger(updateKeys)
const _$inc = updateKeys.$inc || {}
const _$set = updateKeys.$set || {}
const _$push = updateKeys.$push || {}
// 删除空的操作
if (!Object.keys(_$inc).length && updateKeys.$inc) {
delete updateKeys.$inc
}
if (!Object.keys(_$set).length && updateKeys.$set) {
delete updateKeys.$set
}
if (!Object.keys(_$push).length && updateKeys.$push) {
delete updateKeys.$push
}
getItemListWithCollectStatus(list: ITaoBaoItems[], userInfo: IUserInfo) {
const { taskInfo } = getTotalCompleteTask('collectGoods', userInfo)
if (!Object.keys(updateKeys).length) {
return userInfo
return list.map(v => {
return {
...v,
// 完成列表是否含有itemId
collected: taskInfo.some(completeItem => completeItem.itemId === v.itemId)
}
await this.updateUser(id, updateKeys)
// 更新数据库后 延迟10ms 执行
await sleep(10)
return await this.getUserInfo()
})
}
}
......@@ -10,6 +10,8 @@ import { USER_DB_NAME } from '../db'
import { getToday, formatUpdateUserProjection } from '../utils'
import { isNewVip } from '../utils/common/userUpdate'
import { formatUserNick } from '../utils/common/format'
import { getShopVip, formatVipCbUrl } from '../utils/common/vip'
import { userInfo } from 'os'
class UserService extends BaseService {
userdao: IBaseDao
constructor(context: IContext<IParams>) {
......@@ -39,6 +41,15 @@ class UserService extends BaseService {
return record
}
async doLogin(userInfo: IUserInfo, vipInfo: IVipInfo, activityInfo: IActivityInfo) {
if (!userInfo) {
userInfo = await this.initUserData(vipInfo, activityInfo)
} else {
userInfo = await this.updateUserData(vipInfo, userInfo, activityInfo)
}
return userInfo
}
/**
* 初始化用户数据
*
......@@ -53,7 +64,7 @@ class UserService extends BaseService {
const today = getToday()
console.log(`----------${today}----------`, today)
const { tasks } = activityInfo
const { follow, member } = tasks
const { follow = {} as ITaskConfig, member = {} as ITaskConfig } = tasks
const user: IUserInfo = {
activityId,
avatar,
......@@ -171,27 +182,33 @@ class UserService extends BaseService {
}
)
return list.map((v, i) => {
return {
...v,
list: list.map((v, i) => {
return {
score: v[sortValueKey],
avatar: v.avatar,
userNick: formatUserNick(v.userNick),
rank: i + 1
}
})
}
}
/**
* 获取用户排名
*
* @param {string} sortValueKey 排名字段
* @param {number} userValue
* @param {userInfo} IUserInfo
* @param {string} sortTimeKey
* @return {number} 排行
* @memberof UserService
*/
async getMyRank(sortValueKey: string, sortTimeKey: string, userValue: number): Promise<number> {
async getMyRankInfo(sortValueKey: string, sortTimeKey: string, userInfo: IUserInfo) {
let { activityId } = this.context.data
const { openId } = this.context
const userValue = userInfo[sortValueKey]
const { userNick, avatar } = userInfo
let sameScoreList = await this.userdao.find<IUserInfo>(
{ [sortValueKey]: userValue, activityId },
{
......@@ -209,7 +226,12 @@ class UserService extends BaseService {
}
rank = await this.userdao.count({ [sortValueKey]: { $gt: userValue }, activityId })
rank = rank + 1 + gap
return rank
return {
rank,
userNick,
avatar,
score: userValue
}
}
/**
......@@ -220,6 +242,15 @@ class UserService extends BaseService {
async getUserInfoById(_id: string) {
return await this.userdao.findOne({ _id })
}
async getShopVip(
context: IContext<{ activityId: string; callbackUrl?: string }>,
session: string,
activityUserNick: string
) {
const { callbackUrl } = context.data
return await getShopVip(context, session, callbackUrl || formatVipCbUrl(context), activityUserNick)
}
}
export default UserService
......@@ -118,7 +118,7 @@ interface IUpdateQuery {
}
}
interface IDecoratorUpdateQuery {
interface IPreUpdateQuery {
$inc?: { [key: string]: number | undefined }
$set?: { [key: string]: any }
$push?: { [key: string]: any }
......
......@@ -3,7 +3,7 @@
import { resultsModel } from '../../../sdk'
import { CODE_TYPES } from '../../../errorCode'
export const checkActivityTime = async (context: IContext<IParams>, { activityInfo }: IControllerInfos) => {
export default async function checkActivityTime(context: IContext<IParams>, { activityInfo }: IControllerInfos) {
// 活动不存在
if (!activityInfo) {
return resultsModel.error(CODE_TYPES.ERROR_NO_ACTIVITY)
......
......@@ -3,10 +3,10 @@
import { resultsModel, TBAPIS } from '../../../sdk'
import { CODE_TYPES } from '../../../errorCode'
export const checkExchangeCreditsTask = async (
export default async function checkExchangeCreditsTask(
context: IContext<{ activityId: string; taskType: ITaskType; credits?: number }>,
{ session }: IControllerInfos
) => {
) {
const { taskType, credits } = context.data
// 不是兑换积分类型不校验
......
......@@ -6,7 +6,7 @@ import { dbCount } from '../../common/db'
import { STAT_DB_NAME } from '../../../db'
import { STAT_TYPE } from '../../../constants'
export const checkHelpRecord = async (context: IContext<{ activityId: string; inviteId: string }>) => {
export default async function checkHelpRecord(context: IContext<{ activityId: string; inviteId: string }>) {
const {
openId,
data: { activityId, inviteId }
......
......@@ -5,7 +5,7 @@ import { CODE_TYPES } from '../../../errorCode'
import { dbFindOne } from '../../common/db'
import { USER_DB_NAME } from '../../../db'
export const checkInviteId = async (context: IContext<{ activityId: string; inviteId: string }>) => {
export default async function checkInviteId(context: IContext<{ activityId: string; inviteId: string }>) {
const {
openId,
data: { activityId, inviteId }
......
......@@ -3,7 +3,7 @@
import { resultsModel } from '../../../sdk'
import { CODE_TYPES } from '../../../errorCode'
export const checkNewVip = async (context: IContext<IParams>, { vipInfo, userInfo }: IControllerInfos) => {
export default async function checkNewVip(context: IContext<IParams>, { vipInfo, userInfo }: IControllerInfos) {
if (!vipInfo) {
console.error(`使用checkNewVip registeInfos必须注册vipInfo`)
}
......
......@@ -3,7 +3,7 @@
import { resultsModel } from '../../../sdk'
import { CODE_TYPES } from '../../../errorCode'
export const checkPrizeExpired = async (context: IContext<IParams>, { activityInfo }: IControllerInfos) => {
export default async function checkPrizeExpired(context: IContext<IParams>, { activityInfo }: IControllerInfos) {
// 若有过期时间,且已过期
let { awardReceiveExpiredTime } = activityInfo
if (awardReceiveExpiredTime && Date.now() > awardReceiveExpiredTime) {
......
......@@ -3,7 +3,10 @@
import { resultsModel } from '../../../sdk'
import { CODE_TYPES } from '../../../errorCode'
export const checkRemainTimes = async (context: IContext<{ taskType: ITaskType }>, { userInfo }: IControllerInfos) => {
export default async function checkRemainTimes(
context: IContext<{ taskType: ITaskType }>,
{ userInfo }: IControllerInfos
) {
const { taskType } = context.data
const { remainTimes } = userInfo
......
......@@ -5,10 +5,10 @@ import { CODE_TYPES } from '../../../errorCode'
import { getTodayCompleteTask, getTotalCompleteTask } from '../task'
import { TASK_RATE_TYPE } from '../../../constants'
export const checkTaskLimit = async (
export default async function checkTaskLimit(
context: IContext<{ activityId: string; taskType: ITaskType; itemId?: string }>,
{ userInfo, activityInfo }: IControllerInfos
) => {
) {
const { taskType, itemId } = context.data
const { itemIds } = activityInfo?.tasks?.[taskType] || {}
if (!taskType) {
......
......@@ -6,7 +6,7 @@ import { DRAW_STATUS } from '../../../constants'
import { dbFindOne } from '../db'
import { AWARDS_DB_NAME } from '../../../db'
export const checkValidPrize = (prizeTypes: number[]) => {
export default async function checkValidPrize(prizeTypes: number[]) {
return async (context: IContext<{ id: string }>, { activityInfo }: IControllerInfos) => {
const { id } = context.data
let awardInfo = await dbFindOne<IAwards>(context, AWARDS_DB_NAME, {
......
......@@ -3,7 +3,7 @@
import { resultsModel } from '../../../sdk'
import { CODE_TYPES } from '../../../errorCode'
export const checkVip = async (context: IContext<IParams>, { vipInfo }: IControllerInfos) => {
export default async function checkVip(context: IContext<IParams>, { vipInfo }: IControllerInfos) {
if (!vipInfo) {
console.error(`使用checkVip registeInfos必须注册vipInfo`)
}
......
/** @format */
import checkActivityTime from './checkActivityTime'
import checkExchangeCreditsTask from './checkExchangeCreditsTask'
import checkHelpRecord from './checkHelpRecord'
import checkInviteId from './checkInviteId'
import checkNewVip from './checkNewVip'
import checkPrizeExpired from './checkPrizeExpired'
import checkRemainTimes from './checkRemainTimes'
import checkTaskLimit from './checkTaskLimit'
import checkValidPrize from './checkValidPrize'
import checkVip from './checkVip'
import { checkActivityTime } from './checkActivityTime'
import { checkHelpRecord } from './checkHelpRecord'
import { checkInviteId } from './checkInviteId'
import { checkNewVip } from './checkNewVip'
import { checkTaskLimit } from './checkTaskLimit'
import { checkVip } from './checkVip'
const check = {
checkActivityTime,
checkExchangeCreditsTask,
checkHelpRecord,
checkInviteId,
checkNewVip,
checkPrizeExpired,
checkRemainTimes,
checkTaskLimit,
checkValidPrize,
checkVip
}
export default check
export default {
export {
checkActivityTime,
checkExchangeCreditsTask,
checkHelpRecord,
checkInviteId,
checkNewVip,
checkPrizeExpired,
checkRemainTimes,
checkTaskLimit,
checkValidPrize,
checkVip
}
......@@ -11,7 +11,7 @@ export async function doHandler(target: Object, method: IFunction, args: any[])
ret = await method.apply(target, args)
} catch (error) {
console.log('error', error)
await recordErrorLog(args[0], args[1], error.toString(), error.stack)
recordErrorLog(args[0], args[1], error.toString(), error.stack)
ret = resultsModel.error(CODE_TYPES.SYSTEM_ERROR)
}
return ret
......
......@@ -42,7 +42,7 @@ export function formatUserNick(name: string) {
* @param {IUserInfo} userInfo
* @param {IDecoratorUpdateQuery} projection
*/
export function formatUpdatedUserInfo(userInfo: IUserInfo, projection: IDecoratorUpdateQuery) {
export function formatUpdatedUserInfo(userInfo: IUserInfo, projection: IPreUpdateQuery) {
let updatedUserInfo = assign({}, userInfo)
if (!isEmpty(projection.$set)) {
......@@ -56,3 +56,13 @@ export function formatUpdatedUserInfo(userInfo: IUserInfo, projection: IDecorato
updatedUserInfo = merge({}, userInfo, projection.$set)
}
}
function format$Set(userInfo: IUserInfo, setProjection: object) {
Object.keys(setProjection).forEach(setKey => {
const splitKey = setKey.split('.')
let result = {}
splitKey.forEach((key, i) => {
result[key] = i === splitKey.length - 1 ? setProjection[setKey] : {}
})
})
}
/** @format */
import * as check from './check'
import * as update from './update'
export default {
check,
update
}
/** @format */
import updateVip from './updateVip'
import updateSignTask from './updateSignTask'
import { updateVip } from './updateVip'
export default {
updateVip
const update = {
updateVip,
updateSignTask
}
export default update
export { updateVip, updateSignTask }
/** @format */
import { getToday } from '../getToday'
import { getTodayCompleteTask } from '../task'
export default async function updateSignTask(
context: IContext<IParams>,
{ userInfo, activityInfo }: IControllerInfos
): Promise<IPreUpdateQuery> {
// 获取签到奖励
const { value } = activityInfo?.tasks?.sign || {}
const { todayCompleteTimes } = getTodayCompleteTask('sign', userInfo)
const today = getToday()
// 今天没有有完成记录
return todayCompleteTimes === 0
? {
$inc: {
'remainTimes.sign': value || 0
},
$push: {
[`taskInfo.${today}.sign`]: { createTime: Date.now() }
}
}
: {}
}
/** @format */
import { resultsModel } from '../../../sdk'
import { CODE_TYPES } from '../../../errorCode'
import { dbCount } from '../../common/db'
import { STAT_DB_NAME, USER_DB_NAME } from '../../../db'
import { getToday } from '../getToday'
import { isNewVip, setNewVipUserData } from '../userUpdate'
import { update } from '../../../decorator/common/update'
export async function updateVip(
export default async function updateVip(
context: IContext<IParams>,
{ vipInfo, userInfo, activityInfo }: IControllerInfos
): Promise<IDecoratorUpdateQuery> {
): Promise<IPreUpdateQuery> {
let { member } = userInfo
const memberReWards = activityInfo?.tasks?.member?.value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment