LK
LK
> I am trying to fix this now; I can reproduce the case locally. KafkaJS is doing the right thing, but taking the OS 10 minutes to realize that the...
After correcting all of the versions of semantic-release and its plugins, there are no more errors. I believe there is nothing to do with the multi-semantic-release.
This error is getting from `semantic-release`, it looks like you `repositoryUrl` or `repository.url` in `package.json` file is not a valid repo.
@JesseZhao1990 谢谢 😄
@leoyli Indeed. And if I remember correctly, the redux middleware mechanism has been inspired by Express.
@EzrealPrince 是的,对于例子里的这种情况其实可以把 `funcs.reduce((a, b) => (...args) => a(b(...args)))` 修改成 `funcs.reduce((a, b) => (fn) => a(b(fn)))`。之所以要使用 rest parameters,可能是出于一种通用情况的考虑,一般来讲函数接收的参数与返回的参数如果是一致的话(类型、个数,shape 匹配),都是可以用 `compose` 串联起来。
@waitinghope 我觉得可以理解成: 每个模块的作用域类似于定义一个函数创建的作用域,这里说的顶层作用域也就是函数的作用域,那么全局的 `_` 和这个局部的 `_` 是并不冲突的。
@vcxiaohan 其实 bcrypt 算法生成的加密文本已经包含了计算用的 salt。所以给定一个密文和密码,bcrypt 可以通过密文获取对应的 salt,然后再对密码进行相同的运算,如果生成的结果与老密文相同,则表示密码是一样的。 举个栗子,假如一个密文是 `$2a$10$vI8aWBnW3fID.ZQ4/zo1G.q1lRps.9cGLcZEiGDMVr5yUP1KUOYTa`, 那么通过 `$` 分隔符我们可以得到下面三个信息: 1. `2a` 表示的是用于此次计算的 bcrypt 算法版本; 2. `10` 表示的是 `log_rounds` 值; 3. `vI8aWBnW3fID.ZQ4/zo1G.q1lRps.9cGLcZEiGDMVr5yUP1KUOYTa` 是 salt 和加密文本的拼接值 (经过了 base 64...
你说的值不一样是指在浏览器控制台看到方法传的参数值呢还是指抓包看到网络上的实际传输值呢? 一般来说网站用的 HTTPS 协议的话是不需要前端传输的时候再加密了。
前端脚本没有必要对密码加密,重要的是传输过程中的数据需要加密,所以会用 HTTPS 协议来加密传输敏感的数据。