Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@babel/helper-simple-access
Advanced tools
Package description
The @babel/helper-simple-access package is designed to simplify the process of accessing properties on objects in a way that is compatible with the latest ECMAScript standards. It is particularly useful when working with Babel, a JavaScript compiler that allows developers to use next-generation JavaScript, today. This helper package provides functionalities to read and write properties in a manner that ensures the correct execution of getters/setters and adherence to the semantics of the ECMAScript specification.
Simplified Property Access
This feature allows for simplified access to object properties, ensuring that any getters/setters are correctly invoked.
import { simpleAccess } from '@babel/helper-simple-access';
const obj = { a: 1 };
simpleAccess(obj, 'a', true); // Simplified way to access property 'a' of obj
Safe Property Modification
Enables safe modification of object properties, ensuring that the property's setter, if any, is correctly invoked.
import { simpleAccess } from '@babel/helper-simple-access';
let obj = { a: 1 };
simpleAccess(obj, 'a', false, 2); // Safely modifies property 'a' of obj to 2
Similar in the ecosystem of Babel helpers, @babel/traverse allows for navigating through the AST (Abstract Syntax Tree) of a JavaScript program. While it provides more general functionalities for AST manipulation, @babel/helper-simple-access focuses specifically on simplifying property access within the code being transformed.
Lodash's get function is a utility that allows for safe access to object properties, even deep properties. Unlike @babel/helper-simple-access, lodash.get is not specifically designed for use with Babel or the transformation of JavaScript code but is a general-purpose utility for safe property access.
This package provides decorators and metadata reflection features for JavaScript. While it operates in a different domain by enabling metadata annotations and reflection, it shares the concept of enhancing language features for more expressive code, similar to how @babel/helper-simple-access enhances property access.
Changelog
v7.19.4 (2022-10-10)
babel-plugin-transform-block-scoping
babel-helpers
, babel-plugin-proposal-destructuring-private
, babel-plugin-proposal-object-rest-spread
, babel-plugin-transform-destructuring
babel-plugin-transform-react-jsx-development
, babel-plugin-transform-typescript
, babel-types
babel-plugin-transform-destructuring
, babel-plugin-transform-react-constant-elements
, babel-traverse
var
declarations in loops as not constant (@nicolo-ribaudo)babel-helper-string-parser
, babel-parser
, babel-types
babel-generator
, babel-parser
babel-plugin-transform-destructuring
babel-cli
, babel-core
, babel-generator
, babel-helper-create-class-features-plugin
, babel-helper-fixtures
, babel-helper-simple-access
, babel-helper-transform-fixture-test-runner
, babel-helpers
, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression
, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining
, babel-plugin-external-helpers
, babel-plugin-proposal-async-do-expressions
, babel-plugin-proposal-async-generator-functions
, babel-plugin-proposal-class-properties
, babel-plugin-proposal-class-static-block
, babel-plugin-proposal-decorators
, babel-plugin-proposal-destructuring-private
, babel-plugin-proposal-do-expressions
, babel-plugin-proposal-duplicate-named-capturing-groups-regex
, babel-plugin-proposal-dynamic-import
, babel-plugin-proposal-function-bind
, babel-plugin-proposal-function-sent
, babel-plugin-proposal-json-strings
, babel-plugin-proposal-logical-assignment-operators
, babel-plugin-proposal-nullish-coalescing-operator
, babel-plugin-proposal-object-rest-spread
, babel-plugin-proposal-optional-chaining
, babel-plugin-proposal-partial-application
, babel-plugin-proposal-pipeline-operator
, babel-plugin-proposal-private-methods
, babel-plugin-proposal-private-property-in-object
, babel-plugin-proposal-record-and-tuple
, babel-plugin-syntax-typescript
, babel-plugin-transform-arrow-functions
, babel-plugin-transform-async-to-generator
, babel-plugin-transform-block-scoping
, babel-plugin-transform-classes
, babel-plugin-transform-computed-properties
, babel-plugin-transform-destructuring
, babel-plugin-transform-duplicate-keys
, babel-plugin-transform-exponentiation-operator
, babel-plugin-transform-flow-comments
, babel-plugin-transform-flow-strip-types
, babel-plugin-transform-for-of
, babel-plugin-transform-function-name
, babel-plugin-transform-jscript
, babel-plugin-transform-modules-amd
, babel-plugin-transform-modules-commonjs
, babel-plugin-transform-modules-systemjs
, babel-plugin-transform-modules-umd
, babel-plugin-transform-new-target
, babel-plugin-transform-object-super
, babel-plugin-transform-parameters
, babel-plugin-transform-proto-to-assign
, babel-plugin-transform-react-constant-elements
, babel-plugin-transform-react-inline-elements
, babel-plugin-transform-react-jsx-development
, babel-plugin-transform-react-jsx-self
, babel-plugin-transform-react-jsx
, babel-plugin-transform-react-pure-annotations
, babel-plugin-transform-regenerator
, babel-plugin-transform-runtime
, babel-plugin-transform-shorthand-properties
, babel-plugin-transform-spread
, babel-plugin-transform-strict-mode
, babel-plugin-transform-template-literals
, babel-plugin-transform-typeof-symbol
, babel-plugin-transform-typescript
, babel-plugin-transform-unicode-escapes
, babel-preset-env
, babel-preset-react
, babel-preset-typescript
, babel-runtime-corejs2
, babel-runtime-corejs3
, babel-runtime
, babel-traverse
babel-cli
, babel-core
, babel-generator
, babel-helper-fixtures
, babel-helper-transform-fixture-test-runner
, babel-plugin-transform-destructuring
, babel-plugin-transform-modules-commonjs
, babel-traverse
babel-compat-data
, babel-preset-env
proposal-*
to transform-*
in preset-env (@nicolo-ribaudo)Readme
Babel helper for ensuring that access to a given value is performed through simple accesses
See our website @babel/helper-simple-access for more information.
Using npm:
npm install --save @babel/helper-simple-access
or using yarn:
yarn add @babel/helper-simple-access
FAQs
Babel helper for ensuring that access to a given value is performed through simple accesses
The npm package @babel/helper-simple-access receives a total of 34,193,469 weekly downloads. As such, @babel/helper-simple-access popularity was classified as popular.
We found that @babel/helper-simple-access demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.