{"_id":"@charles_yxh/nestjs-mp","_rev":"5-cb6220d76cf62487c8b9eef788945996","name":"@charles_yxh/nestjs-mp","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@charles_yxh/nestjs-mp","version":"1.0.0","description":"nestjs 微信小程序插件","author":{"name":"Charles","email":"charles_yxh@163.com"},"license":"MIT","main":"./dist/index.js","types":"./dist/index.d.ts","keywords":["nestjs","微信小程序","wechat","miniprogram","typescript"],"scripts":{"build:npm":"rimraf dist && nest build -p tsconfig.npm.build.json","start":"nest start","start:dev":"nest start --watch","lint":"cross-env NODE_ENV=production eslint \"{src,apps,libs,test}/**/*.ts\" --fix","test":"jest --runInBand"},"dependencies":{"form-data":"^4.0.0","ioredis":"^4.25.0","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.0.0","@nestjs/common":"^7.0.0","@nestjs/config":"^0.6.3","@nestjs/core":"^7.0.0","@nestjs/platform-express":"^7.0.0","@nestjs/schematics":"^7.0.0","@nestjs/testing":"^7.0.0","@types/express":"^4.17.3","@types/ioredis":"^4.22.2","@types/jest":"25.2.3","@types/node":"^13.9.1","@types/supertest":"^2.0.8","@types/uuid":"^8.0.1","@typescript-eslint/eslint-plugin":"3.0.2","@typescript-eslint/parser":"3.0.2","cross-env":"^7.0.3","eslint":"7.1.0","eslint-config-prettier":"^6.10.0","eslint-plugin-import":"^2.20.1","husky":"^6.0.0","jest":"^26.6.3","joi":"^17.4.0","lint-staged":"^10.5.4","nestjs-redis":"^1.3.3","prettier":"^1.19.1","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.5.4","supertest":"^4.0.2","ts-jest":"26.1.0","ts-loader":"^6.2.1","ts-node":"^8.6.2","tsconfig-paths":"^3.9.0","typescript":"^3.7.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"gitHead":"bf3428cdace5d0f6788bc2479f9a9810fb6d985c","_id":"@charles_yxh/nestjs-mp@1.0.0","_nodeVersion":"14.15.5","_npmVersion":"7.20.2","dist":{"integrity":"sha512-Xic+UHsn8pJd2ucNk0BosGgyYwVIcNjey43qXlR+qqqDTOYmIVwX/epXc+4t0sbyWPufi+RhyYuMdYNXKqtPqw==","shasum":"ee1a6fc090791aa7eae62583f945b0e2546aa0b1","tarball":"https://registry.npmjs.org/@charles_yxh/nestjs-mp/-/nestjs-mp-1.0.0.tgz","fileCount":4,"unpackedSize":293226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjvSqzHDnpFQQRPE0hZkh3VtR4qq0vXFXjoUbUVLO9LAIge7RML3bbUZs9al1ZTO0g5KKdQpjeBUfzQDuW38dvpBQ="}]},"_npmUser":{"name":"charles_yxh","email":"charles_yxh@163.com"},"directories":{},"maintainers":[{"name":"charles_yxh","email":"charles_yxh@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-mp_1.0.0_1633742344764_0.648599078592095"},"_hasShrinkwrap":false},"1.0.1":{"name":"@charles_yxh/nestjs-mp","version":"1.0.1","description":"nestjs 微信小程序插件","author":{"name":"Charles","email":"charles_yxh@163.com"},"license":"MIT","main":"./dist/index.js","types":"./dist/index.d.ts","keywords":["nestjs","微信小程序","wechat","miniprogram","typescript"],"scripts":{"build:npm":"rimraf dist && nest build -p tsconfig.npm.build.json","start":"nest start","start:dev":"nest start --watch","lint":"cross-env NODE_ENV=production eslint \"{src,apps,libs,test}/**/*.ts\" --fix","test":"jest --runInBand"},"dependencies":{"form-data":"^4.0.0","ioredis":"^4.25.0","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.0.0","@nestjs/common":"^7.0.0","@nestjs/config":"^0.6.3","@nestjs/core":"^7.0.0","@nestjs/platform-express":"^7.0.0","@nestjs/schematics":"^7.0.0","@nestjs/testing":"^7.0.0","@types/express":"^4.17.3","@types/ioredis":"^4.22.2","@types/jest":"25.2.3","@types/node":"^13.9.1","@types/supertest":"^2.0.8","@types/uuid":"^8.0.1","@typescript-eslint/eslint-plugin":"3.0.2","@typescript-eslint/parser":"3.0.2","cross-env":"^7.0.3","eslint":"7.1.0","eslint-config-prettier":"^6.10.0","eslint-plugin-import":"^2.20.1","husky":"^6.0.0","jest":"^26.6.3","joi":"^17.4.0","lint-staged":"^10.5.4","nestjs-redis":"^1.3.3","prettier":"^1.19.1","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.5.4","supertest":"^4.0.2","ts-jest":"26.1.0","ts-loader":"^6.2.1","ts-node":"^8.6.2","tsconfig-paths":"^3.9.0","typescript":"^3.7.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"gitHead":"bf3428cdace5d0f6788bc2479f9a9810fb6d985c","_id":"@charles_yxh/nestjs-mp@1.0.1","_nodeVersion":"14.15.5","_npmVersion":"7.20.2","dist":{"integrity":"sha512-6or+NkHvi8jx2z/3AOn3yAxueS/ZGmMHdNQ/sFiSQNPbsz97xVnmClzyI7RG2rqiqWXxzU96In4ooM/ECZqNpw==","shasum":"ce8450a6dd56f2009b6118f5d3d160e799f2aae8","tarball":"https://registry.npmjs.org/@charles_yxh/nestjs-mp/-/nestjs-mp-1.0.1.tgz","fileCount":59,"unpackedSize":620856,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9wp1qrgzIaW3GRCijvxg8OzwooYYkLbKKYsuB1jm3BQIhAL1uFMAfvwr8CaCwO7tX+4AkClVhSRw/+uXU1S/eea0M"}]},"_npmUser":{"name":"charles_yxh","email":"charles_yxh@163.com"},"directories":{},"maintainers":[{"name":"charles_yxh","email":"charles_yxh@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-mp_1.0.1_1633916995886_0.46623612094634925"},"_hasShrinkwrap":false},"1.0.2":{"name":"@charles_yxh/nestjs-mp","version":"1.0.2","description":"nestjs 微信小程序插件","author":{"name":"Charles","email":"charles_yxh@163.com"},"license":"MIT","main":"./dist/index.js","types":"./dist/index.d.ts","keywords":["nestjs","微信小程序","wechat","miniprogram","typescript"],"scripts":{"build:npm":"rimraf dist && nest build -p tsconfig.npm.build.json","start":"nest start","start:dev":"nest start --watch","lint":"cross-env NODE_ENV=production eslint \"{src,apps,libs,test}/**/*.ts\" --fix","test":"jest --runInBand"},"dependencies":{"form-data":"^4.0.0","ioredis":"^4.25.0","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.0.0","@nestjs/common":"^7.0.0","@nestjs/config":"^0.6.3","@nestjs/core":"^7.0.0","@nestjs/platform-express":"^7.0.0","@nestjs/schematics":"^7.0.0","@nestjs/testing":"^7.0.0","@types/express":"^4.17.3","@types/ioredis":"^4.22.2","@types/jest":"25.2.3","@types/node":"^13.9.1","@types/supertest":"^2.0.8","@types/uuid":"^8.0.1","@typescript-eslint/eslint-plugin":"3.0.2","@typescript-eslint/parser":"3.0.2","cross-env":"^7.0.3","eslint":"7.1.0","eslint-config-prettier":"^6.10.0","eslint-plugin-import":"^2.20.1","husky":"^6.0.0","jest":"^26.6.3","joi":"^17.4.0","lint-staged":"^10.5.4","nestjs-redis":"^1.3.3","prettier":"^1.19.1","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.5.4","supertest":"^4.0.2","ts-jest":"26.1.0","ts-loader":"^6.2.1","ts-node":"^8.6.2","tsconfig-paths":"^3.9.0","typescript":"^3.7.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"gitHead":"a892ee69f7db8fc7d3a987432ed0c5706a215d80","_id":"@charles_yxh/nestjs-mp@1.0.2","_nodeVersion":"14.15.5","_npmVersion":"7.20.2","dist":{"integrity":"sha512-qvauX0eV3mRbQDXSmR5/R3fmsMS4Yl8fx11mjWB6I7TS4py4ENKyWal5hqFkFFBAXK0oHNgTE5rV8DJsqVp/gA==","shasum":"5e612cd3d663e0ea66b41b52cd3033e7f71ccd38","tarball":"https://registry.npmjs.org/@charles_yxh/nestjs-mp/-/nestjs-mp-1.0.2.tgz","fileCount":59,"unpackedSize":620856,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzUqkEoQvHG8Ydt9h9dDipkBWzU+Nzq8051yUzWPHHhQIgbc529TrLX0pB5IiZKWNciOjARSV4q4jQwlQ1k8o1v9c="}]},"_npmUser":{"name":"charles_yxh","email":"charles_yxh@163.com"},"directories":{},"maintainers":[{"name":"charles_yxh","email":"charles_yxh@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-mp_1.0.2_1633946501440_0.6211312858607858"},"_hasShrinkwrap":false},"1.0.3":{"name":"@charles_yxh/nestjs-mp","version":"1.0.3","description":"nestjs 微信小程序插件","author":{"name":"Charles","email":"charles_yxh@163.com"},"license":"MIT","main":"./dist/index.js","types":"./dist/index.d.ts","keywords":["nestjs","微信小程序","wechat","miniprogram","typescript"],"scripts":{"build:npm":"rimraf dist && nest build -p tsconfig.npm.build.json","start":"nest start","start:dev":"nest start --watch","lint":"cross-env NODE_ENV=production eslint \"{src,apps,libs,test}/**/*.ts\" --fix","test":"jest --runInBand"},"dependencies":{"form-data":"^4.0.0","ioredis":"^4.25.0","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.0.0","@nestjs/common":"^7.0.0","@nestjs/config":"^0.6.3","@nestjs/core":"^7.0.0","@nestjs/platform-express":"^7.0.0","@nestjs/schematics":"^7.0.0","@nestjs/testing":"^7.0.0","@types/express":"^4.17.3","@types/ioredis":"^4.22.2","@types/jest":"25.2.3","@types/node":"^13.9.1","@types/supertest":"^2.0.8","@types/uuid":"^8.0.1","@typescript-eslint/eslint-plugin":"3.0.2","@typescript-eslint/parser":"3.0.2","cross-env":"^7.0.3","eslint":"7.1.0","eslint-config-prettier":"^6.10.0","eslint-plugin-import":"^2.20.1","husky":"^6.0.0","jest":"^26.6.3","joi":"^17.4.0","lint-staged":"^10.5.4","nestjs-redis":"^1.3.3","prettier":"^1.19.1","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.5.4","supertest":"^4.0.2","ts-jest":"26.1.0","ts-loader":"^6.2.1","ts-node":"^8.6.2","tsconfig-paths":"^3.9.0","typescript":"^3.7.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"../coverage","testEnvironment":"node"},"gitHead":"35eacde46360dc4fd2dda2c6bd60660292414e91","_id":"@charles_yxh/nestjs-mp@1.0.3","_nodeVersion":"14.15.5","_npmVersion":"7.20.2","dist":{"integrity":"sha512-Qf3a0V/cK10SPNuXbXOQm096Eyg7EmkHtDPwZBBfnRthpWIYcNmnNTa/3Pcyu/d0XuHHigbln+ghi83c+7VX+w==","shasum":"716a98b3a35ceb5e206131453568555113bb6b20","tarball":"https://registry.npmjs.org/@charles_yxh/nestjs-mp/-/nestjs-mp-1.0.3.tgz","fileCount":59,"unpackedSize":620856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzcZkCRA9TVsSAnZWagAAZKAQAKNdxBMw62o/bOr4/Y3P\nbj7eJC5cKoc7kEKg2EpRCNTrnSq8zjKmlPxYmrxwPDxaNXiSfxIae3TOrw48\nGIxibEXRhZs3kUzZ0InHhWgFmFv3GCqdsVdTZmqurIFLX5YuZMNAz5Gm8M4N\n41gpBWRi5BIXjarLoBSZ2lXqnYNmWqpw5VNYw6A3z9wIoeWrr5e8CXt0XIww\n5YolmxKjjS4di6JRajZFh+s9V9XODkpwJWKQO6JC5nO74B2BbmGyLGh3XLC3\nNpEA9erZ+qr6fPNrHahshW8eW/hii0ro8oy4EBzxM12Rxh4kaVhWvESUv/Wy\nP2SeiIZRVhWCV1YewAMHUOCm008lG/cl0aeMC7GPVV1cVRj+TaM1y/NgY0kB\niityuudoxAE2gq+C+jeuPiG9dqvH7gVmxwgd3ypJkaXmfvbdMaRBM/dkH/74\n0RafLTGFdICJud+XX6THcxyeS/21zMXdKO0BoirqNZNnvffZhkV8AMy3Lcwq\nq+adGRw2uvikYxvr/B9K6Q/BFC/xoyIK1sqRc3C6WbE51rstKCw63pBswq17\nIijhtVsQ1OI6oxAFKa0/L6SNlK+eT3DkrEKFQFB+SxB5PZBhaVkcb1SxRQtq\nHOhyUtvZ5Mw5W9cQ25o+2gojFOq+dSkqGG9jWsKswnebvI9OurSIk0XLbEmf\n7L9t\r\n=sFSM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGs97vBFfwtiWZ1nhDOul960fZpsZgrHk5nEWxJiHPxLAiBncGfjry9EI7vEhxXBU4XyfZAEED2xSI9hcilEy14PVg=="}]},"_npmUser":{"name":"charles_yxh","email":"charles_yxh@163.com"},"directories":{},"maintainers":[{"name":"charles_yxh","email":"charles_yxh@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-mp_1.0.3_1634536031105_0.3273662937424462"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-09T01:19:04.694Z","1.0.0":"2021-10-09T01:19:04.893Z","modified":"2022-04-04T22:32:15.670Z","1.0.1":"2021-10-11T01:49:56.025Z","1.0.2":"2021-10-11T10:01:41.580Z","1.0.3":"2021-10-18T05:47:11.267Z"},"maintainers":[{"name":"charles_yxh","email":"charles_yxh@163.com"}],"description":"nestjs 微信小程序插件","keywords":["nestjs","微信小程序","wechat","miniprogram","typescript"],"author":{"name":"Charles","email":"charles_yxh@163.com"},"license":"MIT","readme":"# `nestjs` 小程序插件\n\n注意：<font color=\"#dd0000\">仍在开发中，目前仅在内部使用</font><br /> \n\n## 使用说明\n\n外部人员仅供参考，请不要用于生产环境，因此导致的事故后果请自行承担。\n\n### 支持环境\n\n* node >=`14.x`\n\n### 安装\n\n``` shell\n$ npm i @lantsang/nestjs-mp\n\nor\n$ yarn add @lantsang/nestjs-mp  # 推荐使用yarn\n```\n\n### 配置\n\n#### 同步方式\n\n``` typescript\nimport { Module } from '@nestjs/common';\nimport { MpModule } from '@lantsang/nestjs-mp'\n\n@Module({\n  imports: [\n    MpModule.forRoot({\n      appId: '小程序appid', \n      appSecret: '小程序app secret',\n      redisOptions: {   // redisOptions 参数选填\n        host:'localhost',\n        port:6379,\n        db:1,\n        password:'',\n        keyPrefix:'mp-'\n      }\n    })\n  ]\n})\nexport class AppModule { }\n```\n\n#### 异步方式\n\n``` typescript\nimport { Module } from '@nestjs/common';\nimport { MpModule } from '@lantsang/nestjs-mp'\nimport { ConfigModule } from './modules/config/config.module';\nimport { CONFIG_PROVIDER } from './modules/config/constants/config.constant';\nimport { ConfigService } from './modules/config/services/config.service';\n\n@Module({\n  imports: [\n    MpModule.forRootAsync({\n      useFactory: (configService: ConfigService) => ({\n        appId: configService.mp.appId,\n        appSecret: configService.mp.appSecret,\n        redisOptions: configService.redis.mp  // redisOptions 参数选填\n      }),\n      inject: [CONFIG_PROVIDER]\n    }),\n    ConfigModule\n  ]\n})\nexport class AppModule { }\n```\n\n> 提示：异步注册方式采用的 `ConfigModule` 并不是 `NestJS` 自带的配置功能，而是我基于官方自己设计的一套，具体实现请参考笔记：[NestJS配置模块设计](https://github.com/IricBing/note/blob/master/NodeJS/NestJS/%E7%A8%8B%E5%BA%8F%E8%AE%BE%E8%AE%A1/%E9%85%8D%E7%BD%AE%E6%A8%A1%E5%9D%97%E8%AE%BE%E8%AE%A1/README.md)\n\n## 文档地址\n\n* [私有Gitlab](https://gitlab.lantsang.cn/nestjs-plugins/nestjs-tencent-iot/tree/master/docs)\n* [GitHub](https://github.com/lantsang/nesjt-mp/tree/master/docs)\n* [Gitee](https://gitee.com/lantsang/nestjs-mp/tree/master/docs)\n","readmeFilename":"README.md"}