makerjs 0.19.1 → 0.19.2

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.
@@ -39,7 +39,7 @@ and limitations under the License.
39
39
  * author: Dan Marshall / Microsoft Corporation
40
40
  * maintainers: Dan Marshall <danmar@microsoft.com>
41
41
  * homepage: https://maker.js.org
42
- * version: 0.19.1
42
+ * version: 0.19.2
43
43
  *
44
44
  * browserify:
45
45
  * license: MIT (http://opensource.org/licenses/MIT)
@@ -670,7 +670,9 @@ var MakerJs;
670
670
  function extendObject(target, other) {
671
671
  if (target && other) {
672
672
  for (var key in other) {
673
- if (typeof other[key] !== 'undefined') {
673
+ if (other.hasOwnProperty(key) && typeof other[key] !== 'undefined') {
674
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype')
675
+ continue;
674
676
  target[key] = other[key];
675
677
  }
676
678
  }
@@ -10532,7 +10534,7 @@ var MakerJs;
10532
10534
  ];
10533
10535
  })(models = MakerJs.models || (MakerJs.models = {}));
10534
10536
  })(MakerJs || (MakerJs = {}));
10535
- MakerJs.version = "0.19.1";
10537
+ MakerJs.version = "0.19.2";
10536
10538
 
10537
10539
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
10538
10540
  },{"clone":2,"graham_scan":3,"kdbush":4}]},{},[]);
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Maker.js 0.19.1
1
+ // Type definitions for Maker.js 0.19.2
2
2
  // Project: https://github.com/Microsoft/maker.js
3
3
  // Definitions by: Dan Marshall <https://github.com/danmarshall>
4
4
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
package/dist/index.js CHANGED
@@ -251,7 +251,9 @@ var MakerJs;
251
251
  function extendObject(target, other) {
252
252
  if (target && other) {
253
253
  for (var key in other) {
254
- if (typeof other[key] !== 'undefined') {
254
+ if (other.hasOwnProperty(key) && typeof other[key] !== 'undefined') {
255
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype')
256
+ continue;
255
257
  target[key] = other[key];
256
258
  }
257
259
  }
@@ -10113,5 +10115,5 @@ var MakerJs;
10113
10115
  ];
10114
10116
  })(models = MakerJs.models || (MakerJs.models = {}));
10115
10117
  })(MakerJs || (MakerJs = {}));
10116
- MakerJs.version = "0.19.1";
10118
+ MakerJs.version = "0.19.2";
10117
10119
  var Bezier = require('bezier-js');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makerjs",
3
- "version": "0.19.1",
3
+ "version": "0.19.2",
4
4
  "description": "Maker.js, a Microsoft Garage project, is a JavaScript library for creating and sharing modular line drawings for CNC and laser cutters.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",