From 9fdc2360bb999c2f5e40be960c9de3cc614451bf Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 8 Aug 2019 16:20:04 -0500 Subject: [PATCH] Change usage of pda --- app/background-process/ui/permissions.js | 3 +-- app/package.json | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/background-process/ui/permissions.js b/app/background-process/ui/permissions.js index ebe19d167b..ef34b02068 100644 --- a/app/background-process/ui/permissions.js +++ b/app/background-process/ui/permissions.js @@ -4,7 +4,6 @@ import * as beakerCore from '@beaker/core' const dat = beakerCore.dat const sitedata = beakerCore.dbs.sitedata import _get from 'lodash.get' -import pda from 'pauls-dat-api' import parseDatURL from 'parse-dat-url' import * as permPromptSubwindow from './subwindows/perm-prompt' import * as viewManager from './view-manager' @@ -77,7 +76,7 @@ export async function checkLabsPerm ({perm, labApi, apiDocsUrl, sender}) { let archive = dat.library.getArchive(key) if (archive) { let {checkoutFS} = await dat.library.getArchiveCheckout(archive, urlp.version) - let manifest = await pda.readManifest(checkoutFS).catch(_ => {}) + let manifest = await checkoutFS.pda.readManifest().catch(_ => {}) let apis = _get(manifest, 'experimental.apis') if (apis && Array.isArray(apis)) { isOptedIn = apis.includes(labApi) diff --git a/app/package.json b/app/package.json index 1b1fce0886..192bb4ca4b 100644 --- a/app/package.json +++ b/app/package.json @@ -75,7 +75,6 @@ "os-name": "^2.0.1", "page-metadata-parser": "^1.1.3", "parse-dat-url": "^3.0.1", - "pauls-dat-api": "^8.0.1", "pauls-electron-rpc": "^5.0.0", "pauls-word-boundary": "^1.0.0", "pify": "^2.3.0",