Comparing version 2.0.0 to 2.0.1
# 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 @@ |
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
97499
213
0