// npm 패키지
@antv/g-webgpu-compiler
A compiler transpiling *.g to GLSL/WGSL
주간
158
월간
759
버전
61
메인테이너
51
라이선스
MIT
최초 publish
2020-06-04
publisher
panyuqi
tarball
3,350,709 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2022-11-29
// publisher 캠페인by panyuqi
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @0.7.2· no static-pattern hits
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
- @0.7.2··AUTO-PUBLISHED·publisher: panyuqiheuristic 75/100static flags 0llm benign (0.85) via ollamatarball-size-jump:3xmature-packageosv-flagged:MAL-2026-3968
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
// offending code· no static-pattern hits
--- package.json (entry) --- { "name": "@antv/g-webgpu-compiler", "version": "0.7.2", "description": "", "main": "lib/index.js", "module": "es/index.js", "types": "es/index.d.ts", "sideEffects": true, "files": [ "lib", "es", "README.md" ], "scripts": { "tsc": "tsc --project tsconfig.build.json", "clean": "rimraf dist; rimraf es; rimraf lib;", "build": "run-p build:*", "build:cjs": "BABEL_ENV=cjs babel src --root-mode upward --out-dir lib --source-maps --extensions .ts,.tsx --delete-dir-on-start", "build:esm": "BABEL_ENV=esm babel src --root-mode upward --out-dir es --source-maps --extensions .ts,.tsx --delete-dir-on-start", "watch": "BABEL_ENV=esm babel src --watch --root-mode upward --out-dir es --source-maps --extensions .ts,.tsx --delete-dir-on-start", "pegjs": "node scripts/generate-parser" }, "author": "xiaoiver", "license": "ISC", "dependencies": { "@antv/g-webgpu-core": "^0.7.2", "lodash": "^4.17.15" }, "devDependencies": { "@webgpu/types": "^0.0.31", "pegjs": "^0.10.0", "ts-pegjs": "^0.2.6" }, "publishConfig": { "access": "public" } } --- index.js (entry) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "Compiler", { enumerable: true, get: function get() { return _Compiler.Compiler; } }); Object.defineProperty(exports, "FunctionPrependPlaceholder", { enumerable: true, get: function get() { return _Compiler.FunctionPrependPlaceholder; } }); Object.defineProperty(exports, "GLSLContext", { enumerable: true, get: function get() { return _Compiler.GLSLContext; } }); Object.defineProperty(exports, "Target", { enumerable: true, get: function get() { return _ICodeGenerator.Target; } }); var _ICodeGenerator = require("./backends/ICodeGenerator"); var _Compiler = require("./Compiler"); //# sourceMappingURL=index.js.map --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- lib/utils/builtin-functions.js (bundled) --- "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.typePriority = exports.typeCastFunctions = exports.swizzling = exports.importFunctions = exports.exportFunctions = exports.componentWiseFunctions = exports.builtinFunctions = void 0; var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); var _glslAstNodeTypes = require("../ast/glsl-ast-node-types"); var _ICodeGenerator = require("../backends/ICodeGenerator"); var _importFunctions, _exportFunctions; // http://learnwebgl.brown37.net/12_shader_language/glsl_data_types.html var typeCastFunctions = ['float', 'int', 'uint', 'vec2', 'vec3', 'vec4', 'bool', 'ivec2', 'ivec3', 'ivec4', 'bvec2', 'bvec3', 'bvec4', 'mat2', 'mat3', 'mat4']; exports.typeCastFunctions = typeCastFunctions; var builtinFunctions = ['radians', 'degrees', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'pow', 'exp', 'log', 'exp2', 'log2', 'sqrt', 'abs', 'sign', 'floor', 'ceil', 'min', 'max', 'normalize', 'distance']; // https://stackoverflow.com/questions/12085403/whats-the-logic-for-determining-a-min-max-vector-in-glsl // https://www.khronos.org/registry/OpenGL/specs/gl/GLSLangSpec.4.30.pdf exports.builtinFunctions = builtinFunctions; var componentWiseFunctions = ['radians', 'degrees', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'pow', 'exp', 'log', 'exp2', 'log2', 'sqrt', 'abs', 'sign', 'floor', 'ceil', 'min', 'max']; exports.componentWiseFunctions = componentWiseFunctions; var swizzling = ['r', 'g', 'b', 'a', 'x', 'y', 'z', 'w', 's', 't', 'p', 'q']; exports.swizzling = swizzling; var typePriority = { float: 1, int: 2, uint: 3, vec2: 100, vec3: 101, vec4: 102 }; exports.typePriority = typePriority; var importFunctions = (_importFunctions = {}, (0, _defineProperty2.default)(_importFunctions, _ICodeGenerator.Target.GLSL100, "\nfloat epsilon = 0.00001;\nvec2 addrTranslation_1Dto2D( --- lib/ast/ts-estree.js (bundled) --- "use strict"; //# sourceMappingURL=ts-estree.js.map --- es/utils/builtin-functions.js (bundled) --- import _defineProperty from "@babel/runtime/helpers/defineProperty"; var _importFunctions, _exportFunctions; import { AST_TOKEN_TYPES } from '../ast/glsl-ast-node-types'; import { Target } from '../backends/ICodeGenerator'; // http://learnwebgl.brown37.net/12_shader_language/glsl_data_types.html export var typeCastFunctions = ['float', 'int', 'uint', 'vec2', 'vec3', 'vec4', 'bool', 'ivec2', 'ivec3', 'ivec4', 'bvec2', 'bvec3', 'bvec4', 'mat2', 'mat3', 'mat4']; export var builtinFunctions = ['radians', 'degrees', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'pow', 'exp', 'log', 'exp2', 'log2', 'sqrt', 'abs', 'sign', 'floor', 'ceil', 'min', 'max', 'normalize', 'distance']; // https://stackoverflow.com/questions/12085403/whats-the-logic-for-determining-a-min-max-vector-in-glsl // https://www.khronos.org/registry/OpenGL/specs/gl/GLSLangSpec.4.30.pdf export var componentWiseFunctions = ['radians', 'degrees', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'pow', 'exp', 'log', 'exp2', 'log2', 'sqrt', 'abs', 'sign', 'floor', 'ceil', 'min', 'max']; export var swizzling = ['r', 'g', 'b', 'a', 'x', 'y', 'z', 'w', 's', 't', 'p', 'q']; export var typePriority = { float: 1, int: 2, uint: 3, vec2: 100, vec3: 101, vec4: 102 }; export var importFunctions = (_importFunctions = {}, _defineProperty(_importFunctions, Target.GLSL100, "\nfloat epsilon = 0.00001;\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\n vec2 normAddr2D = float(address1D) * conv_const;\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\n}\n\nvoid barrier() {}\n "), _defineProperty(_importFunctions, Target.GLSL450, ''), _defineProperty(_importFunctions, Target.WGSL, ''), _importFunctions); export var exportFunctions = (_exportFunctions = {}, _defineProperty(_exportFunctions, Target.GLSL100, { debug: { content: "\nvoid debug(vec4 o) {\n gWebGPUDebug = true;\n gWebGPUDebugOutput = o;\n}\nvoid debug(v --- es/ast/ts-estree.js (bundled) --- export {}; //# sourceMappingURL=ts-estree.js.map
