// npm 패키지
@antv/gl-matrix
Javascript Matrix and Vector library for High Performance WebGL apps
버전
4
메인테이너
51
라이선스
MIT
최초 publish
2018-07-23
publisher
simaq
tarball
2,769,653 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2020-04-15
// publisher 캠페인by simaq
이 계정에서 catch된 패키지 4건고립된 catch가 아닙니다. 동일 publisher가 3개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @2.7.2-beta.3· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
- @2.7.2-beta.3··AUTO-PUBLISHED·publisher: simaqheuristic 75/100static flags 1llm benign (0.85) via ollamaosv-flagged:MAL-2026-4019public-github-push
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/gl-matrix", "description": "Javascript Matrix and Vector library for High Performance WebGL apps", "version": "2.7.2-beta.3", "main": "dist/gl-matrix.js", "module": "lib/gl-matrix.js", "homepage": "http://glmatrix.net", "license": "MIT", "bugs": { "url": "https://github.com/toji/gl-matrix/issues" }, "repository": { "type": "git", "url": "https://github.com/toji/gl-matrix.git" }, "contributors": [ { "name": "Brandon Jones", "email": "tojiro@gmail.com" }, { "name": "Colin MacKenzie IV", "email": "sinisterchipmunk@gmail.com" } ], "scripts": { "test": "mocha --require babel-register --recursive spec", "old_test": "jasmine-node spec", "doc": "jsdoc -c jsdoc.config.json", "update-license-version": "node utils/update-license-version.js", "build": "webpack --config utils/webpack.config.js", "build-lib": "babel src --out-dir lib", "build-min": "webpack --config utils/webpack.config.min.js", "build-all": "npm run update-license-version&&npm run build&&npm run build-min" }, "devDependencies": { "babel-cli": "^6.26.0", "babel-core": "^6.26.3", "babel-loader": "^7.1.4", "babel-preset-env": "^1.7.0", "babel-register": "^6.26.0", "jsdoc": "^3.5.5", "mocha": "^5.1.1", "node-libs-browser": "^2.1.0", "uglifyjs-webpack-plugin": "^1.2.5", "webpack": "^4.8.3", "webpack-cli": "^2.1.3" }, "dependencies": {}, "sideEffec --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- utils/license-template.js (bundled) --- 'use strict' module.exports = `Copyright (c) 2015-${new Date().getFullYear()}, Brandon Jones, Colin MacKenzie IV. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.`; --- utils/update-license-version.js (bundled) --- 'use strict' const fs = require('fs'); const path = require('path'); const version = require(path.join(process.cwd(), 'package.json')).version; const template = require('./license-template'); fs.writeFile(path.join(process.cwd(), 'LICENSE.md'), template, 'utf8'); fs.writeFile(path.join(process.cwd(), 'VERSION'), version, 'utf8'); --- src/gl-matrix.js (bundled) --- import * as glMatrix from "./gl-matrix/common.js"; import * as mat2 from "./gl-matrix/mat2.js"; import * as mat2d from "./gl-matrix/mat2d.js"; import * as mat3 from "./gl-matrix/mat3.js"; import * as mat4 from "./gl-matrix/mat4.js"; import * as quat from "./gl-matrix/quat.js"; import * as quat2 from "./gl-matrix/quat2.js"; import * as vec2 from "./gl-matrix/vec2.js"; import * as vec3 from "./gl-matrix/vec3.js"; import * as vec4 from "./gl-matrix/vec4.js"; export { glMatrix, mat2, mat2d, mat3, mat4, quat, quat2, vec2, vec3, vec4, }; --- spec/helpers/spec-helper.js (bundled) --- const EPSILON = 0.00001; const assert = require('assert'); global.expect = function(e) { function expected(e, message, a) { assert.fail(e, a, `expected ${JSON.stringify(e)} ${message} ${JSON.stringify(a)}`); } return { toBe: function(a) { assert.strictEqual(e, a); }, toEqual: function(a) { assert.strictEqual(e,a); }, toBeDefined: function() { assert.notStrictEqual(e, undefined); }, toBeTruthy: function() { assert(e); }, toBeFalsy: function() { assert(!e); }, toBeNull: function() { assert.strictEqual(e, null); }, not: { toBe: function(a) { assert.notStrictEqual(e, a); }, toBeEqualish: function(a) { if (typeof(e) == 'number') assert(Math.abs(e - a) >= EPSILON); if (e.length != a.length) return; for (let i = 0; i < e.length; i++) { if (isNaN(e[i]) !== isNaN(a[i])) return; if (Math.abs(e[i] - a[i]) >= EPSILON) return; } assert.fail(e, a); } }, toBeGreaterThan: function(a) { assert(e > a); }, toBeLessThan: function(a) { assert(e < a); }, /* Returns true if `actual` has the same length as `expected`, and if each element of both arrays is within 0.000001 of each other. This is a way to check for "equal enough" conditions, as a way of working around floating point imprecision. */ toBeEqualish: function(a) { if (typeof(e) == 'number') { --- lib/gl-matrix.js (bundled) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.vec4 = exports.vec3 = exports.vec2 = exports.quat2 = exports.quat = exports.mat4 = exports.mat3 = exports.mat2d = exports.mat2 = exports.glMatrix = undefined; var _common = require("./gl-matrix/common.js"); var glMatrix = _interopRequireWildcard(_common); var _mat = require("./gl-matrix/mat2.js"); var mat2 = _interopRequireWildcard(_mat); var _mat2d = require("./gl-matrix/mat2d.js"); var mat2d = _interopRequireWildcard(_mat2d); var _mat2 = require("./gl-matrix/mat3.js"); var mat3 = _interopRequireWildcard(_mat2); var _mat3 = require("./gl-matrix/mat4.js"); var mat4 = _interopRequireWildcard(_mat3); var _quat = require("./gl-matrix/quat.js"); var quat = _interopRequireWildcard(_quat); var _quat2 = require("./gl-matrix/quat2.js"); var quat2 = _interopRequireWildcard(_quat2); var _vec = require("./gl-matrix/vec2.js"); var vec2 = _interopRequireWildcard(_vec); var _vec2 = require("./gl-matrix/vec3.js"); var vec3 = _interopRequireWildcard(_vec2); var _vec3 = require("./gl-matrix/vec4.js"); var vec4 = _interopRequireWildcard(_vec3); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } exports.glMatrix = glMatrix; exports.mat2 = mat2; exports.mat2d = mat2d; exports.mat3 = mat3; exports.mat4 = mat4; exports.quat = quat; exports.quat2 = quat2; exports.vec2 = vec2; exports.vec3 = vec3; exports.vec4 = vec4; --- dist/gl-matrix-min.js (bundled) --- /*! @fileoverview gl-matrix - High performance matrix and vector operations @author Brandon Jones @author Colin MacKenzie IV @version 2.7.0 Copyright (c) 2015-2018, Brandon Jones, Colin MacKenzie IV. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ !function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var r=n();for(var a in r)("object"==typeof exports?exports:t)[a]=r[a]}}("undefined"!=typeof self?self:this,function(){return function(t){var n={};function r(a){if(n[a])return n[a].exports;var e=n[a]={i:a,l:!1,exports:{}};return t[a].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=t,r.c=n,r.d=function(t,n,a){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:a})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"== --- dist/gl-matrix.js (bundled) --- /*! @fileoverview gl-matrix - High performance
