@angular-devkit/core 11.0.2 → 11.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/core",
3
- "version": "11.0.2",
3
+ "version": "11.0.6",
4
4
  "description": "Angular DevKit - Core Utility Library",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -33,11 +33,5 @@
33
33
  "bugs": {
34
34
  "url": "https://github.com/angular/angular-cli/issues"
35
35
  },
36
- "homepage": "https://github.com/angular/angular-cli",
37
- "husky": {
38
- "hooks": {
39
- "commit-msg": "yarn -s ng-dev commit-message pre-commit-validate --file-env-variable HUSKY_GIT_PARAMS",
40
- "prepare-commit-msg": "yarn -s ng-dev commit-message restore-commit-message-draft --file-env-variable HUSKY_GIT_PARAMS"
41
- }
42
- }
36
+ "homepage": "https://github.com/angular/angular-cli"
43
37
  }
@@ -31,7 +31,7 @@ function deepCopy(value) {
31
31
  if (valueCasted['toJSON']) {
32
32
  return JSON.parse(valueCasted['toJSON']());
33
33
  }
34
- const copy = new (Object.getPrototypeOf(valueCasted).constructor)();
34
+ const copy = Object.create(Object.getPrototypeOf(valueCasted));
35
35
  valueCasted[copySymbol] = copy;
36
36
  for (const key of Object.getOwnPropertyNames(valueCasted)) {
37
37
  copy[key] = deepCopy(valueCasted[key]);