@jbrowse/plugin-authentication 2.15.2 → 2.15.4

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.
@@ -4,6 +4,7 @@ const configuration_1 = require("@jbrowse/core/configuration");
4
4
  const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
5
5
  const util_1 = require("@jbrowse/core/util");
6
6
  const mobx_state_tree_1 = require("mobx-state-tree");
7
+ const buffer_1 = require("buffer");
7
8
  const util_2 = require("./util");
8
9
  const util_3 = require("../util");
9
10
  /**
@@ -33,7 +34,7 @@ const stateModelFactory = (configSchema) => {
33
34
  }
34
35
  const array = new Uint8Array(32);
35
36
  globalThis.crypto.getRandomValues(array);
36
- codeVerifier = (0, util_2.fixup)(Buffer.from(array).toString('base64'));
37
+ codeVerifier = (0, util_2.fixup)(buffer_1.Buffer.from(array).toString('base64'));
37
38
  return codeVerifier;
38
39
  },
39
40
  };
@@ -2,6 +2,7 @@ import { ConfigurationReference, getConf } from '@jbrowse/core/configuration';
2
2
  import { InternetAccount } from '@jbrowse/core/pluggableElementTypes/models';
3
3
  import { isElectron } from '@jbrowse/core/util';
4
4
  import { types } from 'mobx-state-tree';
5
+ import { Buffer } from 'buffer';
5
6
  import { fixup, generateChallenge, processError, processTokenResponse, } from './util';
6
7
  import { getResponseError } from '../util';
7
8
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-authentication",
3
- "version": "2.15.2",
3
+ "version": "2.15.4",
4
4
  "description": "JBrowse 2 Authentication",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -55,5 +55,5 @@
55
55
  "distModule": "esm/index.js",
56
56
  "srcModule": "src/index.ts",
57
57
  "module": "esm/index.js",
58
- "gitHead": "8a58cefbfe39af4c97bcb6ead354d72c9fef9224"
58
+ "gitHead": "686b4ad9016b3586e8230180f7adb44c238ba4fb"
59
59
  }