codeql-action/node_modules/internal-slot
dependabot[bot] e7e35baaf0
Bump the npm group with 2 updates (#1819)
* Bump the npm group with 2 updates

Bumps the npm group with 2 updates: [eslint](https://github.com/eslint/eslint) and [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import).


Updates `eslint` from 8.45.0 to 8.46.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.45.0...v8.46.0)

Updates `eslint-plugin-import` from 2.27.5 to 2.28.0
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.27.5...v2.28.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update checked-in dependencies

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-01 03:35:02 -07:00
..
.github Bump `eslint-plugin-import` to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
test Bump `eslint-plugin-import` to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
.editorconfig Bump `eslint-plugin-import` to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
.eslintignore Bump `eslint-plugin-import` to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
.eslintrc Bump `eslint-plugin-import` to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
.nycrc Bump `eslint-plugin-import` to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
CHANGELOG.md Bump the npm group with 2 updates (#1819) 2023-08-01 03:35:02 -07:00
LICENSE Bump `eslint-plugin-import` to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
README.md Bump `eslint-plugin-import` to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
index.js Bump the npm group with 2 updates (#1819) 2023-08-01 03:35:02 -07:00
package.json Bump the npm group with 2 updates (#1819) 2023-08-01 03:35:02 -07:00

README.md

internal-slot Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Truly private storage, akin to the JS specs concept of internal slots.

Uses a WeakMap when available; a Map when not; and a regular object in even older engines. Performance and garbage collection behavior will reflect the environments capabilities accordingly.

Example

var SLOT = require('internal-slot');
var assert = require('assert');

var o = {};

assert.throws(function () { SLOT.assert(o, 'foo'); });

assert.equal(SLOT.has(o, 'foo'), false);
assert.equal(SLOT.get(o, 'foo'), undefined);

SLOT.set(o, 'foo', 42);

assert.equal(SLOT.has(o, 'foo'), true);
assert.equal(SLOT.get(o, 'foo'), 42);

assert.doesNotThrow(function () { SLOT.assert(o, 'foo'); });

Tests

Simply clone the repo, npm install, and run npm test

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.