Socket
Socket
Sign inDemoInstall

to-fast-properties

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 3.0.0

index.d.ts

2

index.js

@@ -18,3 +18,5 @@ 'use strict';

}
fastProto = FastObject.prototype = o == null ? Object.create(null) : o;
return new FastObject;

@@ -21,0 +23,0 @@ }

67

package.json
{
"name": "to-fast-properties",
"version": "2.0.0",
"description": "Force V8 to use fast properties for an object",
"license": "MIT",
"repository": "sindresorhus/to-fast-properties",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "node --allow-natives-syntax test.js"
},
"files": [
"index.js"
],
"keywords": [
"object",
"obj",
"properties",
"props",
"v8",
"optimize",
"fast",
"convert",
"mode"
],
"devDependencies": {
"ava": "0.0.4"
}
"name": "to-fast-properties",
"version": "3.0.0",
"description": "Force V8 to use fast properties for an object",
"license": "MIT",
"repository": "sindresorhus/to-fast-properties",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "node --allow-natives-syntax test.js && tsd"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"object",
"properties",
"props",
"v8",
"optimize",
"fast",
"convert",
"mode"
],
"devDependencies": {
"ava": "0.0.4",
"tsd": "^0.10.0"
}
}

@@ -5,3 +5,3 @@ # to-fast-properties [![Build Status](https://travis-ci.org/sindresorhus/to-fast-properties.svg?branch=master)](https://travis-ci.org/sindresorhus/to-fast-properties)

[Read more.](http://stackoverflow.com/questions/24987896/)
[Read more.](https://stackoverflow.com/questions/24987896/)

@@ -14,3 +14,3 @@ Use `%HasFastProperties(object)` and `--allow-natives-syntax` to check whether an object already has fast properties.

```
$ npm install --save to-fast-properties
$ npm install to-fast-properties
```

@@ -24,3 +24,3 @@

const obj = {
const object = {
foo: true,

@@ -30,12 +30,20 @@ bar: true

delete obj.foo;
// `obj` now has slow properties
delete object.foo;
// `object` now has slow properties
toFastProperties(obj);
// `obj` now has fast properties
toFastProperties(object);
// `object` now has fast properties
```
## License
---
MIT © Petka Antonov, John-David Dalton, Sindre Sorhus
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-to-fast-properties?utm_source=npm-to-fast-properties&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc