@alicloud/console-os-browser-vm 1.4.25 → 1.4.27

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/es/Context.js CHANGED
@@ -16,7 +16,6 @@ import Window from './Window';
16
16
  import Document from './Document';
17
17
  import Location from './Location';
18
18
  import History from './History';
19
- import { getFetchCredentials } from './utils/credentials';
20
19
  var Context = /*#__PURE__*/function () {
21
20
  function Context(conf, frame) {
22
21
  _classCallCheck(this, Context);
@@ -50,7 +49,7 @@ var Context = /*#__PURE__*/function () {
50
49
  case 0:
51
50
  _context.next = 2;
52
51
  return fetch(url, {
53
- credentials: getFetchCredentials(url)
52
+ credentials: 'include'
54
53
  });
55
54
  case 2:
56
55
  resp = _context.sent;
package/es/Window.js CHANGED
@@ -8,7 +8,7 @@ import { addEventListener, removeEventListener } from './events';
8
8
  import { isConstructable, isBoundedFunction } from './utils/common';
9
9
  var globalFnName = ['setTimeout', 'setInterval', 'clearInterval', 'clearTimeout'];
10
10
  var globalVars = ['location', 'history'];
11
- var defaultExternals = ['requestAnimationFrame', 'webkitRequestAnimationFrame', 'mozRequestAnimationFrame', 'oRequestAnimationFrame', 'msRequestAnimationFrame', 'cancelAnimationFrame', 'webkitCancelAnimationFrame', 'mozCancelAnimationFrame', 'oCancelAnimationFrame', 'msCancelAnimationFrame', 'matchMedia'];
11
+ var defaultExternals = ['requestAnimationFrame', 'webkitRequestAnimationFrame', 'mozRequestAnimationFrame', 'oRequestAnimationFrame', 'msRequestAnimationFrame', 'cancelAnimationFrame', 'webkitCancelAnimationFrame', 'mozCancelAnimationFrame', 'oCancelAnimationFrame', 'msCancelAnimationFrame', 'matchMedia', 'getSelection'];
12
12
  var Window = /*#__PURE__*/_createClass(function Window() {
13
13
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
14
  var context = arguments.length > 1 ? arguments[1] : undefined;
package/lib/Context.js CHANGED
@@ -14,7 +14,6 @@ var _Window = _interopRequireDefault(require("./Window"));
14
14
  var _Document = _interopRequireDefault(require("./Document"));
15
15
  var _Location = _interopRequireDefault(require("./Location"));
16
16
  var _History = _interopRequireDefault(require("./History"));
17
- var _credentials = require("./utils/credentials");
18
17
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
18
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /**
20
19
  * Context
@@ -55,7 +54,7 @@ var Context = /*#__PURE__*/function () {
55
54
  case 0:
56
55
  _context.next = 2;
57
56
  return fetch(url, {
58
- credentials: (0, _credentials.getFetchCredentials)(url)
57
+ credentials: 'include'
59
58
  });
60
59
  case 2:
61
60
  resp = _context.sent;
package/lib/Window.js CHANGED
@@ -16,7 +16,7 @@ var _common = require("./utils/common");
16
16
 
17
17
  var globalFnName = ['setTimeout', 'setInterval', 'clearInterval', 'clearTimeout'];
18
18
  var globalVars = ['location', 'history'];
19
- var defaultExternals = ['requestAnimationFrame', 'webkitRequestAnimationFrame', 'mozRequestAnimationFrame', 'oRequestAnimationFrame', 'msRequestAnimationFrame', 'cancelAnimationFrame', 'webkitCancelAnimationFrame', 'mozCancelAnimationFrame', 'oCancelAnimationFrame', 'msCancelAnimationFrame', 'matchMedia'];
19
+ var defaultExternals = ['requestAnimationFrame', 'webkitRequestAnimationFrame', 'mozRequestAnimationFrame', 'oRequestAnimationFrame', 'msRequestAnimationFrame', 'cancelAnimationFrame', 'webkitCancelAnimationFrame', 'mozCancelAnimationFrame', 'oCancelAnimationFrame', 'msCancelAnimationFrame', 'matchMedia', 'getSelection'];
20
20
  var Window = /*#__PURE__*/(0, _createClass2.default)(function Window() {
21
21
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
22
22
  var context = arguments.length > 1 ? arguments[1] : undefined;
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@alicloud/console-os-browser-vm",
3
- "version": "1.4.25",
3
+ "version": "1.4.27",
4
4
  "description": "browser virtual machine",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "typings": "index.d.ts",
8
- "author": "Boelroy",
9
8
  "license": "ISC",
10
9
  "devDependencies": {
11
10
  "@alicloud/console-toolkit-cli": "^1.0.1",
@@ -21,7 +20,6 @@
21
20
  "js-beautify": "^1.10.1",
22
21
  "jsdom": "^16.2.2"
23
22
  },
24
- "gitHead": "9c6fffdb53e1b42c98b80e3f4eb896a3e2ee0c86",
25
23
  "scripts": {
26
24
  "babel": "breezr build --engine babel",
27
25
  "babel:esm": "breezr build --engine babel --es-module",