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

@stdlib/utils-define-property

Package Overview
Dependencies
Maintainers
4
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/utils-define-property - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

46

dist/index.js

@@ -1,12 +0,36 @@

"use strict";var n=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}};var s=n(function(T,_){
var w=typeof Object.defineProperty=="function"?Object.defineProperty:null;_.exports=w
});var y=n(function(C,v){
var x=s();function q(){try{return x({},"x",{}),!0}catch(e){return!1}}v.exports=q
});var p=n(function(F,c){
var G=Object.defineProperty;c.exports=G
});var g=n(function(z,d){
var P=require('@stdlib/error-tools-fmtprodmsg/dist'),a=Object.prototype,h=a.toString,m=a.__defineGetter__,S=a.__defineSetter__,k=a.__lookupGetter__,O=a.__lookupSetter__;function E(e,t,r){var f,i,l,u;if(typeof e!="object"||e===null||h.call(e)==="[object Array]")throw new TypeError(P('1Sx3L',e));if(typeof r!="object"||r===null||h.call(r)==="[object Array]")throw new TypeError(P('1SxB0',r));if(i="value"in r,i&&(k.call(e,t)||O.call(e,t)?(f=e.__proto__,e.__proto__=a,delete e[t],e[t]=r.value,e.__proto__=f):e[t]=r.value),l="get"in r,u="set"in r,i&&(l||u))throw new Error(P('1Sx1d'));return l&&m&&m.call(e,t,r.get),u&&S&&S.call(e,t,r.set),e}d.exports=E
});var V=y(),b=p(),A=g(),o;V()?o=b:o=A;module.exports=o;
/** @license Apache-2.0 */
/** @license Apache-2.0 */
"use strict";var n=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}};var s=n(function(T,_){"use strict";var w=typeof Object.defineProperty=="function"?Object.defineProperty:null;_.exports=w});var y=n(function(C,v){"use strict";var x=s();function q(){try{return x({},"x",{}),!0}catch(e){return!1}}v.exports=q});var p=n(function(F,c){"use strict";var G=Object.defineProperty;c.exports=G});var g=n(function(z,d){"use strict";var P=require("@stdlib/string-format"),a=Object.prototype,h=a.toString,m=a.__defineGetter__,S=a.__defineSetter__,k=a.__lookupGetter__,O=a.__lookupSetter__;function E(e,t,r){var f,i,l,u;if(typeof e!="object"||e===null||h.call(e)==="[object Array]")throw new TypeError(P("invalid argument. First argument must be an object. Value: `%s`.",e));if(typeof r!="object"||r===null||h.call(r)==="[object Array]")throw new TypeError(P("invalid argument. Property descriptor must be an object. Value: `%s`.",r));if(i="value"in r,i&&(k.call(e,t)||O.call(e,t)?(f=e.__proto__,e.__proto__=a,delete e[t],e[t]=r.value,e.__proto__=f):e[t]=r.value),l="get"in r,u="set"in r,i&&(l||u))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return l&&m&&m.call(e,t,r.get),u&&S&&S.call(e,t,r.set),e}d.exports=E});var V=y(),b=p(),A=g(),o;V()?o=b:o=A;module.exports=o;
/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//# sourceMappingURL=index.js.map
{
"name": "@stdlib/utils-define-property",
"version": "0.2.3",
"version": "0.2.4",
"description": "Define (or modify) an object property.",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -183,4 +183,4 @@ <!--

[test-image]: https://github.com/stdlib-js/utils-define-property/actions/workflows/test.yml/badge.svg?branch=v0.2.3
[test-url]: https://github.com/stdlib-js/utils-define-property/actions/workflows/test.yml?query=branch:v0.2.3
[test-image]: https://github.com/stdlib-js/utils-define-property/actions/workflows/test.yml/badge.svg?branch=v0.2.4
[test-url]: https://github.com/stdlib-js/utils-define-property/actions/workflows/test.yml?query=branch:v0.2.4

@@ -187,0 +187,0 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-define-property/main.svg

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