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

fast-copy

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-copy - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md
# fast-copy CHANGELOG
## 2.0.1
- Fix typings declarations - [#17](https://github.com/planttheidea/fast-copy/pull/17)
## 2.0.0

@@ -4,0 +8,0 @@

4

index.d.ts

@@ -30,8 +30,8 @@ declare namespace FastCopy {

declare function copy<T>(object: any, options?: FastCopy.Options): T;
declare function copy<T>(object: T, options?: FastCopy.Options): T;
declare namespace copy {
function strictCopy<T>(object: any, options?: FastCopy.Options): T;
function strictCopy<T>(object: T, options?: FastCopy.Options): T;
}
export default copy;

@@ -73,3 +73,3 @@ {

"types": "index.d.ts",
"version": "2.0.0"
"version": "2.0.1"
}

@@ -52,4 +52,12 @@ # fast-copy

```javascript
console.log(copy(object, { isStrict: true }));
```
**NOTE**: This option is also aliased as `copy.strict`.
```javascript
console.log(copy.strict(object));
```
#### realm

@@ -67,3 +75,3 @@

console.log(copy(arr, iframe.contentWindow)); // ['foo', 'bar']
console.log(copy(arr, { realm: iframe.contentWindow })); // ['foo', 'bar']
```

@@ -70,0 +78,0 @@

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