Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stdlib/utils-define-nonenumerable-read-only-accessor

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/utils-define-nonenumerable-read-only-accessor - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

SECURITY.md

2

docs/types/index.d.ts

@@ -58,3 +58,3 @@ /*

*/
declare function setNonEnumerableReadOnlyAccessor( obj: any, prop: PropertyName, getter: Getter ): void; // tslint:disable-line: max-line-length
declare function setNonEnumerableReadOnlyAccessor( obj: any, prop: PropertyName, getter: Getter ): void;

@@ -61,0 +61,0 @@

{
"name": "@stdlib/utils-define-nonenumerable-read-only-accessor",
"version": "0.1.1",
"version": "0.2.0",
"description": "Define a non-enumerable read-only accessor.",

@@ -40,8 +40,7 @@ "license": "Apache-2.0",

"dependencies": {
"@stdlib/types": "^0.1.0",
"@stdlib/utils-define-property": "^0.1.1"
"@stdlib/types": "^0.3.1",
"@stdlib/utils-define-property": "^0.2.0"
},
"devDependencies": {
"@stdlib/assert-is-string": "^0.1.0",
"@stdlib/bench": "^0.1.0",
"@stdlib/assert-is-string": "^0.1.1",
"@stdlib/string-from-code-point": "^0.1.0",

@@ -51,3 +50,5 @@ "@stdlib/utils-keys": "^0.1.0",

"istanbul": "^0.4.1",
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
"@stdlib/bench-harness": "^0.1.2",
"@stdlib/bench": "^0.3.1"
},

@@ -54,0 +55,0 @@ "engines": {

@@ -64,4 +64,2 @@ <!--

<!-- run throws: true -->
```javascript

@@ -76,4 +74,8 @@ function getter() {

obj.foo = 'boop';
// throws <Error>
try {
obj.foo = 'boop';
// throws <Error>
} catch ( error ) {
console.error( error.message );
}
```

@@ -175,3 +177,3 @@

Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].

@@ -189,4 +191,4 @@ </section>

[test-image]: https://github.com/stdlib-js/utils-define-nonenumerable-read-only-accessor/actions/workflows/test.yml/badge.svg?branch=v0.1.1
[test-url]: https://github.com/stdlib-js/utils-define-nonenumerable-read-only-accessor/actions/workflows/test.yml?query=branch:v0.1.1
[test-image]: https://github.com/stdlib-js/utils-define-nonenumerable-read-only-accessor/actions/workflows/test.yml/badge.svg?branch=v0.2.0
[test-url]: https://github.com/stdlib-js/utils-define-nonenumerable-read-only-accessor/actions/workflows/test.yml?query=branch:v0.2.0

@@ -214,4 +216,7 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-define-nonenumerable-read-only-accessor/main.svg

[deno-url]: https://github.com/stdlib-js/utils-define-nonenumerable-read-only-accessor/tree/deno
[deno-readme]: https://github.com/stdlib-js/utils-define-nonenumerable-read-only-accessor/blob/deno/README.md
[umd-url]: https://github.com/stdlib-js/utils-define-nonenumerable-read-only-accessor/tree/umd
[umd-readme]: https://github.com/stdlib-js/utils-define-nonenumerable-read-only-accessor/blob/umd/README.md
[esm-url]: https://github.com/stdlib-js/utils-define-nonenumerable-read-only-accessor/tree/esm
[esm-readme]: https://github.com/stdlib-js/utils-define-nonenumerable-read-only-accessor/blob/esm/README.md
[branches-url]: https://github.com/stdlib-js/utils-define-nonenumerable-read-only-accessor/blob/main/branches.md

@@ -218,0 +223,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc