Save current BZZZ config-ui state before CHORUS branding update
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
17
install/config-ui/node_modules/data-view-byte-offset/.eslintrc
generated
vendored
Normal file
17
install/config-ui/node_modules/data-view-byte-offset/.eslintrc
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"globals": {
|
||||
"DataView": false,
|
||||
},
|
||||
|
||||
"rules": {
|
||||
"new-cap": ["error", {
|
||||
"capIsNewExceptions": [
|
||||
"GetIntrinsic",
|
||||
],
|
||||
}],
|
||||
},
|
||||
}
|
||||
12
install/config-ui/node_modules/data-view-byte-offset/.github/FUNDING.yml
generated
vendored
Normal file
12
install/config-ui/node_modules/data-view-byte-offset/.github/FUNDING.yml
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: [ljharb]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: npm/data-view-byte-offset
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with a single custom sponsorship URL
|
||||
13
install/config-ui/node_modules/data-view-byte-offset/.nycrc
generated
vendored
Normal file
13
install/config-ui/node_modules/data-view-byte-offset/.nycrc
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"all": true,
|
||||
"check-coverage": false,
|
||||
"reporter": ["text-summary", "text", "html", "json"],
|
||||
"lines": 86,
|
||||
"statements": 85.93,
|
||||
"functions": 82.43,
|
||||
"branches": 76.06,
|
||||
"exclude": [
|
||||
"coverage",
|
||||
"test"
|
||||
]
|
||||
}
|
||||
31
install/config-ui/node_modules/data-view-byte-offset/CHANGELOG.md
generated
vendored
Normal file
31
install/config-ui/node_modules/data-view-byte-offset/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [v1.0.1](https://github.com/inspect-js/data-view-byte-offset/compare/v1.0.0...v1.0.1) - 2024-12-18
|
||||
|
||||
### Commits
|
||||
|
||||
- [types] use shared tsconfig [`d5ce484`](https://github.com/inspect-js/data-view-byte-offset/commit/d5ce484f91818961c0521d98510131f6e2bb8d84)
|
||||
- [readme] update URLs [`f297dd2`](https://github.com/inspect-js/data-view-byte-offset/commit/f297dd25fe9e018c6dc4fa181f723af4153e53e0)
|
||||
- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/object-inspect`, `@types/tape`, `auto-changelog`, `es-value-fixtures`, `object-inspect`, `tape` [`f89d994`](https://github.com/inspect-js/data-view-byte-offset/commit/f89d994b4f94fca0f75a5afe4e07963a379ff36e)
|
||||
- [actions] split out node 10-20, and 20+ [`e648e1d`](https://github.com/inspect-js/data-view-byte-offset/commit/e648e1da732dad4702184ffb2d2aaa63e5b75ec5)
|
||||
- [Refactor] use `call-bound` directly [`56d996e`](https://github.com/inspect-js/data-view-byte-offset/commit/56d996ee5ce6a896215c4d9ffadbeda2605a8988)
|
||||
- [Dev Deps] update `@arethetypeswrong/cli`, `tape` [`63abffa`](https://github.com/inspect-js/data-view-byte-offset/commit/63abffac147beb7917c538122f05dd007f34b41e)
|
||||
- [Tests] replace `aud` with `npm audit` [`a7c11a5`](https://github.com/inspect-js/data-view-byte-offset/commit/a7c11a54fdfb219b938a04770a8f9c3db36b848f)
|
||||
- [Deps] update `call-bind` [`b86a774`](https://github.com/inspect-js/data-view-byte-offset/commit/b86a7743d663ee70c4049c134625913e723e570e)
|
||||
- [Dev Deps] update `@ljharb/tsconfig` [`058bb63`](https://github.com/inspect-js/data-view-byte-offset/commit/058bb6320cc183f48c096f7e8b7d3e13db420805)
|
||||
- [Deps] update `call-bind` [`6593944`](https://github.com/inspect-js/data-view-byte-offset/commit/6593944952f2064ce3a6c48237da1610fdd169f5)
|
||||
- [Dev Deps] add missing peer dep [`402219e`](https://github.com/inspect-js/data-view-byte-offset/commit/402219ed9c86ec5046892bc1248423cb34672c20)
|
||||
|
||||
## v1.0.0 - 2024-03-04
|
||||
|
||||
### Commits
|
||||
|
||||
- Initial implementation, tests, readme, types [`8b94518`](https://github.com/inspect-js/data-view-byte-offset/commit/8b94518cd2a87df3084cdf60b52f70d9f65b94b6)
|
||||
- Initial commit [`aee2acc`](https://github.com/inspect-js/data-view-byte-offset/commit/aee2accbbefcd5645693f4587ce2eabde166b1a0)
|
||||
- npm init [`10a21a4`](https://github.com/inspect-js/data-view-byte-offset/commit/10a21a4189c51a3add252e3f76fe31a0b5bdcfc1)
|
||||
- Only apps should have lockfiles [`f6cfa3e`](https://github.com/inspect-js/data-view-byte-offset/commit/f6cfa3e917d58c2e130f9383f5e04f5d5069d0e6)
|
||||
21
install/config-ui/node_modules/data-view-byte-offset/LICENSE
generated
vendored
Normal file
21
install/config-ui/node_modules/data-view-byte-offset/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 Jordan Harband
|
||||
|
||||
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.
|
||||
43
install/config-ui/node_modules/data-view-byte-offset/README.md
generated
vendored
Normal file
43
install/config-ui/node_modules/data-view-byte-offset/README.md
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
# data-view-byte-offset <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
||||
|
||||
[![github actions][actions-image]][actions-url]
|
||||
[![coverage][codecov-image]][codecov-url]
|
||||
[![License][license-image]][license-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
|
||||
[![npm badge][npm-badge-png]][package-url]
|
||||
|
||||
Get the `byteOffset` out of a DataView, robustly.
|
||||
|
||||
This will work in node <= 0.10 and < 0.11.4, where there's no prototype accessor, only a nonconfigurable own property.
|
||||
It will also work in modern engines where `DataView.prototype.byteOffset` has been deleted after this module has loaded.
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
const dataViewByteOffset = require('data-view-byte-offset');
|
||||
const assert = require('assert');
|
||||
|
||||
const ab = new ArrayBuffer(42);
|
||||
const dv = new DataView(ab, 2);
|
||||
assert.equal(dataViewByteOffset(dv), 2);
|
||||
```
|
||||
|
||||
## Tests
|
||||
Simply clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
[package-url]: https://npmjs.org/package/data-view-byte-offset
|
||||
[npm-version-svg]: https://versionbadg.es/inspect-js/data-view-byte-offset.svg
|
||||
[deps-svg]: https://david-dm.org/inspect-js/data-view-byte-offset.svg
|
||||
[deps-url]: https://david-dm.org/inspect-js/data-view-byte-offset
|
||||
[dev-deps-svg]: https://david-dm.org/inspect-js/data-view-byte-offset/dev-status.svg
|
||||
[dev-deps-url]: https://david-dm.org/inspect-js/data-view-byte-offset#info=devDependencies
|
||||
[npm-badge-png]: https://nodei.co/npm/data-view-byte-offset.png?downloads=true&stars=true
|
||||
[license-image]: https://img.shields.io/npm/l/data-view-byte-offset.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: https://img.shields.io/npm/dm/data-view-byte-offset.svg
|
||||
[downloads-url]: https://npm-stat.com/charts.html?package=data-view-byte-offset
|
||||
[codecov-image]: https://codecov.io/gh/inspect-js/data-view-byte-offset/branch/main/graphs/badge.svg
|
||||
[codecov-url]: https://app.codecov.io/gh/inspect-js/data-view-byte-offset/
|
||||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/data-view-byte-offset
|
||||
[actions-url]: https://github.com/inspect-js/data-view-byte-offset/actions
|
||||
4
install/config-ui/node_modules/data-view-byte-offset/index.d.ts
generated
vendored
Normal file
4
install/config-ui/node_modules/data-view-byte-offset/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
declare function dataViewByteOffset(value: DataView): number;
|
||||
declare function dataViewByteOffset(value: unknown): never;
|
||||
|
||||
export = dataViewByteOffset;
|
||||
19
install/config-ui/node_modules/data-view-byte-offset/index.js
generated
vendored
Normal file
19
install/config-ui/node_modules/data-view-byte-offset/index.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var callBound = require('call-bound');
|
||||
|
||||
var $dataViewByteOffset = callBound('DataView.prototype.byteOffset', true);
|
||||
|
||||
var isDataView = require('is-data-view');
|
||||
|
||||
// node <= 0.10, < 0.11.4 has a nonconfigurable own property instead of a prototype getter
|
||||
/** @type {import('.')} */
|
||||
module.exports = $dataViewByteOffset || function byteOffset(x) {
|
||||
if (!isDataView(x)) {
|
||||
throw new $TypeError('not a DataView');
|
||||
}
|
||||
|
||||
return x.byteOffset;
|
||||
};
|
||||
94
install/config-ui/node_modules/data-view-byte-offset/package.json
generated
vendored
Normal file
94
install/config-ui/node_modules/data-view-byte-offset/package.json
generated
vendored
Normal file
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"name": "data-view-byte-offset",
|
||||
"version": "1.0.1",
|
||||
"description": "Get the byteOffset out of a DataView, robustly.",
|
||||
"main": "index.js",
|
||||
"exports": {
|
||||
".": "./index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"types": "./index.d.ts",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"prepack": "npmignore --auto --commentLines=autogenerated",
|
||||
"prepublishOnly": "safe-publish-latest",
|
||||
"prepublish": "not-in-publish || npm run prepublishOnly",
|
||||
"prelint": "evalmd README.md",
|
||||
"lint": "eslint --ext=js,mjs .",
|
||||
"postlint": "tsc -p . && attw -P",
|
||||
"pretest": "npm run lint",
|
||||
"tests-only": "nyc tape 'test/**/*.js'",
|
||||
"test": "npm run tests-only",
|
||||
"posttest": "npx npm@'>= 10.2' audit --production",
|
||||
"version": "auto-changelog && git add CHANGELOG.md",
|
||||
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/inspect-js/data-view-byte-offset.git"
|
||||
},
|
||||
"keywords": [
|
||||
"javascript",
|
||||
"ecmascript",
|
||||
"dataView",
|
||||
"data",
|
||||
"view",
|
||||
"byte",
|
||||
"offset",
|
||||
"byteOffset",
|
||||
"robust"
|
||||
],
|
||||
"author": "Jordan Harband <ljharb@gmail.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/inspect-js/data-view-byte-offset/issues"
|
||||
},
|
||||
"homepage": "https://github.com/inspect-js/data-view-byte-offset#readme",
|
||||
"dependencies": {
|
||||
"call-bound": "^1.0.2",
|
||||
"es-errors": "^1.3.0",
|
||||
"is-data-view": "^1.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@arethetypeswrong/cli": "^0.17.1",
|
||||
"@ljharb/eslint-config": "^21.1.1",
|
||||
"@ljharb/tsconfig": "^0.2.2",
|
||||
"@types/call-bind": "^1.0.5",
|
||||
"@types/es-value-fixtures": "^1.4.4",
|
||||
"@types/for-each": "^0.3.3",
|
||||
"@types/object-inspect": "^1.13.0",
|
||||
"@types/tape": "^5.6.5",
|
||||
"auto-changelog": "^2.5.0",
|
||||
"encoding": "^0.1.13",
|
||||
"es-value-fixtures": "^1.5.0",
|
||||
"eslint": "=8.8.0",
|
||||
"evalmd": "^0.0.19",
|
||||
"for-each": "^0.3.3",
|
||||
"in-publish": "^2.0.1",
|
||||
"npmignore": "^0.3.1",
|
||||
"nyc": "^10.3.2",
|
||||
"object-inspect": "^1.13.3",
|
||||
"safe-publish-latest": "^2.0.0",
|
||||
"tape": "^5.9.0",
|
||||
"typescript": "next"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"auto-changelog": {
|
||||
"output": "CHANGELOG.md",
|
||||
"template": "keepachangelog",
|
||||
"unreleased": false,
|
||||
"commitLimit": false,
|
||||
"backfillLimit": false,
|
||||
"hideCredit": true
|
||||
},
|
||||
"publishConfig": {
|
||||
"ignore": [
|
||||
".github/workflows"
|
||||
]
|
||||
}
|
||||
}
|
||||
31
install/config-ui/node_modules/data-view-byte-offset/test/index.js
generated
vendored
Normal file
31
install/config-ui/node_modules/data-view-byte-offset/test/index.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
'use strict';
|
||||
|
||||
var test = require('tape');
|
||||
var forEach = require('for-each');
|
||||
var v = require('es-value-fixtures');
|
||||
var inspect = require('object-inspect');
|
||||
|
||||
var dataViewByteOffset = require('../');
|
||||
|
||||
test('dataViewByteOffset', function (t) {
|
||||
forEach(
|
||||
// @ts-expect-error TS sucks at [].concat
|
||||
// eslint-disable-next-line no-extra-parens
|
||||
/** @type {[...typeof v.primitives, ...typeof v.objects]} */ ([].concat(v.primitives, v.objects)),
|
||||
function (nonDV) {
|
||||
t['throws'](function () { dataViewByteOffset(nonDV); }, TypeError, inspect(nonDV) + ' is not a DataView');
|
||||
}
|
||||
);
|
||||
|
||||
t.test('DataView', { skip: typeof DataView !== 'function' }, function (st) {
|
||||
var ab = new ArrayBuffer(42);
|
||||
var dv = new DataView(ab, 2);
|
||||
|
||||
st.equal(dataViewByteOffset(dv), 2, inspect(dv) + ' has the same byteOffset originally passed to the DataView');
|
||||
st.equal(dataViewByteOffset(dv), dv.byteOffset, inspect(dv) + ' has the same byteOffset as the buffer’s byteOffset');
|
||||
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
||||
9
install/config-ui/node_modules/data-view-byte-offset/tsconfig.json
generated
vendored
Normal file
9
install/config-ui/node_modules/data-view-byte-offset/tsconfig.json
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "@ljharb/tsconfig",
|
||||
"compilerOptions": {
|
||||
"target": "es2021",
|
||||
},
|
||||
"exclude": [
|
||||
"coverage",
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user