Dechen Zhuang
Dechen Zhuang
nacos open api没有批量获取配置的接口 我看了一下 acm的实现如下 nacos如果没有这个接口的话 是实现不了的 只能说在开源的过程中剥离租户相关功能的时候一起剥离掉了 非要不可的话 就走username & password 登录获取accessToken 走控制台获取数据那一套 直接放弃使用官方sdk
 npm的tarball的ts类型声明文件里只有NacosConfigClient的typing
目前我这样workaround绕开ts编译检查 ``` import * as nacos from "nacos"; const {NacosConfigClient, NacosNamingClient} = nacos as any; ```
实现了一下getConfigs方法 我自己用如下代码做workaround。 看情况close吧 dev分支差异蛮大的 ps: 没找到md说明如何接收社区PR ``` const ClientWoker = require("nacos-config/dist/client_worker").ClientWorker ClientWoker.prototype.getConfigs = async function (appName) { this.debug('calling getConfigs, appName %s', appName); let content; const key = this.getSnapshotKey("", "") +...
另外单元测试 master分支本身就是跑失败 ``` 3) test/client_worker.test.ts test features in find address mode mock error should throw error if http status is 409: Uncaught AssertionError [ERR_ASSERTION]: # client.test.ts:53 assert(err.message === 'mock error')...
you can install it from github `npm install [--save] nnattawat/flip` `flip` on npmjs is another module.
As a workaround. https://github.com/raphaelsoul/koa-proxies/blob/master/index.js#L84 add this line in source and use it like following: ``` const server = app.listen(); server.on("upgrade", (req, res) => { require("koa-proxies").proxy.ws(req, res, { changeOrigin: true, target:...
403 issue same there ``` crawlers_1 | Exit code: 1 crawlers_1 | Command: node-pre-gyp install --fallback-to-build crawlers_1 | Arguments: crawlers_1 | Directory: /music-observer/node_modules/gc-stats crawlers_1 | Output: crawlers_1 | node-pre-gyp info...
v3 wanted😘