parsegraph-collections
Advanced tools
Comparing version 1.4.6-dev to 1.4.6
@@ -1,239 +0,2 @@ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
else if(typeof exports === 'object') | ||
exports["parsegraph_collections"] = factory(); | ||
else | ||
root["parsegraph_collections"] = factory(); | ||
})(this, function() { | ||
return /******/ (() => { // webpackBootstrap | ||
/******/ "use strict"; | ||
/******/ var __webpack_modules__ = ({ | ||
/***/ "./src/ArrayList.ts": | ||
/*!**************************!*\ | ||
!*** ./src/ArrayList.ts ***! | ||
\**************************/ | ||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony export */ __webpack_require__.d(__webpack_exports__, { | ||
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) | ||
/* harmony export */ }); | ||
var ArrayList = | ||
/** @class */ | ||
function () { | ||
function ArrayList() { | ||
this._data = []; | ||
this._length = 0; | ||
} | ||
ArrayList.prototype.clear = function () { | ||
this._length = 0; | ||
}; | ||
ArrayList.prototype.length = function () { | ||
return this._length; | ||
}; | ||
ArrayList.prototype.slice = function () { | ||
return this._data.slice(0, this.length()); | ||
}; | ||
ArrayList.prototype.forEach = function (cb) { | ||
for (var i = 0; i < this.length(); ++i) { | ||
cb(this.at(i), i); | ||
} | ||
}; | ||
ArrayList.prototype.concat = function (other) { | ||
var _this = this; | ||
other.forEach(function (val) { | ||
return _this.push(val); | ||
}); | ||
}; | ||
ArrayList.prototype.push = function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
for (var i = 0; i < args.length; ++i) { | ||
if (this._length == this._data.length) { | ||
this._data.push(args[i]); | ||
} else { | ||
this._data[this._length] = args[i]; | ||
} | ||
this._length++; | ||
} | ||
}; | ||
ArrayList.prototype.at = function (i) { | ||
if (i >= this._length || i < 0) { | ||
throw new Error("Index out of bounds: " + i); | ||
} | ||
return this._data[i]; | ||
}; | ||
return ArrayList; | ||
}(); | ||
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ArrayList); | ||
/***/ }), | ||
/***/ "./src/Float32List.ts": | ||
/*!****************************!*\ | ||
!*** ./src/Float32List.ts ***! | ||
\****************************/ | ||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony export */ __webpack_require__.d(__webpack_exports__, { | ||
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) | ||
/* harmony export */ }); | ||
var Float32List = | ||
/** @class */ | ||
function () { | ||
function Float32List(initialSize) { | ||
if (initialSize === void 0) { | ||
initialSize = 8; | ||
} | ||
this._data = new Float32Array(initialSize); | ||
this._length = 0; | ||
} | ||
Float32List.prototype.push = function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
for (var i = 0; i < args.length; ++i) { | ||
if (this._length == this._data.length) { | ||
var created = new Float32Array(2 * this._data.length); | ||
for (var i_1 = 0; i_1 < this._data.length; ++i_1) { | ||
created[i_1] = this._data[i_1]; | ||
} | ||
this._data = created; | ||
} | ||
var v = args[i]; | ||
if (Number.isNaN(v)) { | ||
throw new Error("Pushed value is NaN"); | ||
} | ||
this._data[this._length++] = v; | ||
} | ||
}; | ||
Float32List.prototype.clear = function () { | ||
this._length = 0; | ||
}; | ||
Float32List.prototype.length = function () { | ||
return this._length; | ||
}; | ||
Float32List.prototype.slice = function () { | ||
return this._data.subarray(0, this._length); | ||
}; | ||
return Float32List; | ||
}(); | ||
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Float32List); | ||
/***/ }) | ||
/******/ }); | ||
/************************************************************************/ | ||
/******/ // The module cache | ||
/******/ var __webpack_module_cache__ = {}; | ||
/******/ | ||
/******/ // The require function | ||
/******/ function __webpack_require__(moduleId) { | ||
/******/ // Check if module is in cache | ||
/******/ var cachedModule = __webpack_module_cache__[moduleId]; | ||
/******/ if (cachedModule !== undefined) { | ||
/******/ return cachedModule.exports; | ||
/******/ } | ||
/******/ // Create a new module (and put it into the cache) | ||
/******/ var module = __webpack_module_cache__[moduleId] = { | ||
/******/ // no module.id needed | ||
/******/ // no module.loaded needed | ||
/******/ exports: {} | ||
/******/ }; | ||
/******/ | ||
/******/ // Execute the module function | ||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | ||
/******/ | ||
/******/ // Return the exports of the module | ||
/******/ return module.exports; | ||
/******/ } | ||
/******/ | ||
/************************************************************************/ | ||
/******/ /* webpack/runtime/define property getters */ | ||
/******/ (() => { | ||
/******/ // define getter functions for harmony exports | ||
/******/ __webpack_require__.d = (exports, definition) => { | ||
/******/ for(var key in definition) { | ||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { | ||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); | ||
/******/ } | ||
/******/ } | ||
/******/ }; | ||
/******/ })(); | ||
/******/ | ||
/******/ /* webpack/runtime/hasOwnProperty shorthand */ | ||
/******/ (() => { | ||
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) | ||
/******/ })(); | ||
/******/ | ||
/******/ /* webpack/runtime/make namespace object */ | ||
/******/ (() => { | ||
/******/ // define __esModule on exports | ||
/******/ __webpack_require__.r = (exports) => { | ||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | ||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
/******/ } | ||
/******/ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/******/ }; | ||
/******/ })(); | ||
/******/ | ||
/************************************************************************/ | ||
var __webpack_exports__ = {}; | ||
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. | ||
(() => { | ||
/*!**********************!*\ | ||
!*** ./src/index.ts ***! | ||
\**********************/ | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony export */ __webpack_require__.d(__webpack_exports__, { | ||
/* harmony export */ "ArrayList": () => (/* reexport safe */ _ArrayList__WEBPACK_IMPORTED_MODULE_0__["default"]), | ||
/* harmony export */ "Float32List": () => (/* reexport safe */ _Float32List__WEBPACK_IMPORTED_MODULE_1__["default"]) | ||
/* harmony export */ }); | ||
/* harmony import */ var _ArrayList__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ArrayList */ "./src/ArrayList.ts"); | ||
/* harmony import */ var _Float32List__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Float32List */ "./src/Float32List.ts"); | ||
})(); | ||
/******/ return __webpack_exports__; | ||
/******/ })() | ||
; | ||
}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.parsegraph_collections=e():t.parsegraph_collections=e()}(this,(function(){return(()=>{"use strict";var t={d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{ArrayList:()=>n,Float32List:()=>i});var o=function(){function t(){this._data=[],this._length=0}return t.prototype.clear=function(){this._length=0},t.prototype.length=function(){return this._length},t.prototype.slice=function(){return this._data.slice(0,this.length())},t.prototype.forEach=function(t){for(var e=0;e<this.length();++e)t(this.at(e),e)},t.prototype.concat=function(t){var e=this;t.forEach((function(t){return e.push(t)}))},t.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var o=0;o<t.length;++o)this._length==this._data.length?this._data.push(t[o]):this._data[this._length]=t[o],this._length++},t.prototype.at=function(t){if(t>=this._length||t<0)throw new Error("Index out of bounds: "+t);return this._data[t]},t}();const n=o;var r=function(){function t(t){void 0===t&&(t=8),this._data=new Float32Array(t),this._length=0}return t.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var o=0;o<t.length;++o){if(this._length==this._data.length){for(var n=new Float32Array(2*this._data.length),r=0;r<this._data.length;++r)n[r]=this._data[r];this._data=n}var i=t[o];if(Number.isNaN(i))throw new Error("Pushed value is NaN");this._data[this._length++]=i}},t.prototype.clear=function(){this._length=0},t.prototype.length=function(){return this._length},t.prototype.slice=function(){return this._data.subarray(0,this._length)},t}();const i=r;return e})()})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "parsegraph-collections", | ||
"version": "1.4.6-dev", | ||
"version": "1.4.6", | ||
"description": "collections", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
12502
11
32