Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新sign.js, 无需jsdom #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

lc-official
Copy link

近两天貌似抖音更新了signature生成方法,所以把最新的webessdk.es5.js打包,并发现可通过Object.defineProperty方法将envcode强制锁定为1,成功剔除了jsdom

@keykey17
Copy link

您好,我用了最新了sign.js,在运行时报错了,麻烦帮忙看下是什么原因
File "/Users/zuo/Library/Python/3.9/lib/python/site-packages/execjs/_external_runtime.py", line 134, in _fail_on_non_zero_status
raise ProcessExitedWithNonZeroStatus(status=status, stdout=stdoutdata, stderr=stderrdata)
execjs._exceptions.ProcessExitedWithNonZeroStatus: (101, '', '/var/folders/w0/0xywkqvj7bjf5p0y97y6rs2c0000gn/T/execjss3z8zool.js:3821:15 Expected ident but found (\n get() {\n ^\n/var/folders/w0/0xywkqvj7bjf5p0y97y6rs2c0000gn/T/execjss3z8zool.js:3824:19 Expected , but found {\n set(e) {}\n ^\n/var/folders/w0/0xywkqvj7bjf5p0y97y6rs2c0000gn/T/execjss3z8zool.js:6513:4 Expected eof but found }\n });\n ^\n')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants