hadron-document 7.5.0 → 7.8.0

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/index.js CHANGED
@@ -1,2 +1 @@
1
- module.exports = require('./lib/document');
2
- module.exports.Element = require('./lib/element');
1
+ module.exports = require('./lib');
package/lib/document.js CHANGED
@@ -26,7 +26,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
26
26
 
27
27
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
28
28
 
29
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
29
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
30
30
 
31
31
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
32
32
 
package/lib/element.js CHANGED
@@ -20,7 +20,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
20
20
 
21
21
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
22
22
 
23
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
23
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
24
24
 
25
25
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
26
 
@@ -864,7 +864,7 @@ var Element = /*#__PURE__*/function (_EventEmitter) {
864
864
  */
865
865
 
866
866
 
867
- var LinkedList = /*#__PURE__*/function () {
867
+ var LinkedList = /*#__PURE__*/function (_Symbol$iterator) {
868
868
  // Instantiate the new doubly linked list.
869
869
  function LinkedList(doc, originalDoc) {
870
870
  _classCallCheck(this, LinkedList);
@@ -1071,7 +1071,7 @@ var LinkedList = /*#__PURE__*/function () {
1071
1071
  */
1072
1072
 
1073
1073
  }, {
1074
- key: Symbol.iterator,
1074
+ key: _Symbol$iterator,
1075
1075
  value: function value() {
1076
1076
  var _this2 = this;
1077
1077
 
@@ -1228,7 +1228,7 @@ var LinkedList = /*#__PURE__*/function () {
1228
1228
  }]);
1229
1229
 
1230
1230
  return LinkedList;
1231
- }();
1231
+ }(Symbol.iterator);
1232
1232
 
1233
1233
  module.exports = Element;
1234
1234
  module.exports.LinkedList = LinkedList;
package/lib/index.js ADDED
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ module.exports = require('./document');
4
+ module.exports.Element = require('./element');
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "email": "compass@mongodb.com"
8
8
  },
9
9
  "homepage": "https://github.com/mongodb-js/compass",
10
- "version": "7.5.0",
10
+ "version": "7.8.0",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "https://github.com/mongodb-js/compass.git"
@@ -16,6 +16,11 @@
16
16
  "keywords": [
17
17
  "mongodb-js"
18
18
  ],
19
+ "main": "index.js",
20
+ "exports": {
21
+ "webpack": "./src/index.js",
22
+ "require": "./index.js"
23
+ },
19
24
  "scripts": {
20
25
  "test-check-ci": "npm test",
21
26
  "test": "mocha",
@@ -29,9 +34,9 @@
29
34
  "bootstrap": "npm run compile"
30
35
  },
31
36
  "dependencies": {
32
- "debug": "^4.1.1",
37
+ "debug": "4.3.0",
33
38
  "eventemitter3": "^4.0.0",
34
- "hadron-type-checker": "^6.4.0",
39
+ "hadron-type-checker": "^6.7.0",
35
40
  "lodash.foreach": "^4.5.0",
36
41
  "lodash.isarray": "^4.0.0",
37
42
  "lodash.isequal": "^4.5.0",
@@ -59,5 +64,5 @@
59
64
  "mocha": "^7.0.1",
60
65
  "moment": "^2.27.0"
61
66
  },
62
- "gitHead": "e00da432655fbd1b723fd693527bf481f4c1e645"
67
+ "gitHead": "2bb63cdb1d4e825f280c0d2af14b7298c5769490"
63
68
  }
package/src/index.js ADDED
@@ -0,0 +1,2 @@
1
+ module.exports = require('./document');
2
+ module.exports.Element = require('./element');