browserify / browserify/static-module
Transform which ran with v1 not working with v3
- Ngôn ngữ chính
- JavaScript
- Star
- 75
- Fork
- 22
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hi! [cwise](https://github.com/scijs/cwise) has had some long-running issues/PRs to upgrade its usage of static-module and get rid of some security warnings, but it seems that the particular usage static-module is no longer functioning under static-module 3.*.
The [cwise transform](https://github.com/scijs/cwise/blob/master/lib/cwise-transform.js) finds references to `var cwise = require('cwise'); cwise({...})` and replaces them with evaluated code.
I'm guessing a bit, but it seems like maybe the usage as a bare function require as opposed to properties on the require (i.e. `require('cwise')(...)` as opposed to `require('fs).readFileSync(...)`) are not working.
FWIW, the transform has not changed and so _does_ still function and get triggered correctly.
I've detailed a test case [here](https://github.com/scijs/cwise/pull/25#issuecomment-442942342).
Glad to debug a bit further, but I'd thought I'd check to see if this might just need a small API usage update instead of involved debugging. Thanks!
/cc @archmoj @etpinard
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu với lib/cwise-transform.js và trường hợp kiểm thử được mô tả trong cwise pull request #25, sau đó so sánh cách transform xử lý require hàm trần trong static-module 3. Xác nhận xem transform còn được kích hoạt hay không và xác định hành vi API static-module liên quan. Hoàn tất khi trường hợp cwise được liên kết hoạt động với static-module 3 mà không có cảnh báo bảo mật.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100