chore(deps): upgrade snjs & sncrypto-web to npm package versions

This commit is contained in:
Baptiste Grob
2020-11-19 13:37:49 +01:00
parent 1c9337113d
commit 3a16140699
42 changed files with 106 additions and 75 deletions

View File

@@ -1,5 +1,5 @@
/* eslint-disable prefer-promise-reject-errors */
import { SNAlertService, ButtonType } from 'snjs';
import { SNAlertService, ButtonType } from '@standardnotes/snjs';
import { SKAlert } from 'sn-stylekit';
/** @returns a promise resolving to true if the user confirmed, false if they canceled */

View File

@@ -1,5 +1,5 @@
import { WebApplication } from '@/ui_models/application';
import { EncryptionIntent, ProtectedAction, SNItem, ContentType, SNNote } from 'snjs';
import { EncryptionIntent, ProtectedAction, SNItem, ContentType, SNNote } from '@standardnotes/snjs';
function zippableTxtName(name: string, suffix = ""): string {
const sanitizedName = name
@@ -111,7 +111,7 @@ export class ArchiveManager {
);
zipWriter.add(fileName, new this.zip.BlobReader(blob), resolve);
});
let index = 0;
const nextFile = () => {
const item = items[index];

View File

@@ -1,4 +1,4 @@
import { ApplicationService } from 'snjs';
import { ApplicationService } from '@standardnotes/snjs';
import { WebApplication } from '@/ui_models/application';
import { isDesktopApplication } from '@/utils';
import { AppStateEvent } from '@/ui_models/app_state';

View File

@@ -1,8 +1,8 @@
/**
* This file will be imported by desktop, so we make sure imports are not
* carrying too much code with them that's not tree-shakeable.
* This file will be imported by desktop, so we make sure imports are carrying
* as little extra code as possible with them.
*/
import { Environment } from 'snjs/lib/platforms';
import { Environment } from '@standardnotes/snjs/dist/@types/platforms';
export { Environment };
/** Platform-specific (i-e Electron/browser) behavior is handled by a Bridge object. */

View File

@@ -1,5 +1,5 @@
import { Bridge } from "./bridge";
import { Environment } from 'snjs';
import { Environment } from '@standardnotes/snjs';
const KEYCHAIN_STORAGE_KEY = 'keychain';

View File

@@ -1,9 +1,9 @@
import { SNComponent, PurePayload, ComponentMutator, AppDataField, ContentType } from 'snjs';
import { SNComponent, PurePayload, ComponentMutator, AppDataField, ContentType } from '@standardnotes/snjs';
/* eslint-disable camelcase */
import { WebApplication } from '@/ui_models/application';
// An interface used by the Desktop app to interact with SN
import { isDesktopApplication } from '@/utils';
import { EncryptionIntent, ApplicationService, ApplicationEvent, removeFromArray } from 'snjs';
import { EncryptionIntent, ApplicationService, ApplicationEvent, removeFromArray } from '@standardnotes/snjs';
import { Bridge } from './bridge';
type UpdateObserverCallback = (component: SNComponent) => void

View File

@@ -1,4 +1,4 @@
import { SNLog } from 'snjs';
import { SNLog } from '@standardnotes/snjs';
import { isDesktopApplication, isDev } from '@/utils';
import { storage, StorageKey } from './localStorage';
import Bugsnag from '@bugsnag/js';

View File

@@ -1,4 +1,4 @@
import { removeFromArray } from 'snjs';
import { removeFromArray } from '@standardnotes/snjs';
export enum KeyboardKey {
Tab = "Tab",
Backspace = "Backspace",

View File

@@ -9,9 +9,9 @@ import {
ComponentMutator,
Copy,
dictToArray
} from 'snjs';
import { PayloadContent } from 'snjs/dist/@types/protocol/payloads/generator';
import { ComponentPermission } from 'snjs/dist/@types/models/app/component';
} from '@standardnotes/snjs';
import { PayloadContent } from '@standardnotes/snjs';
import { ComponentPermission } from '@standardnotes/snjs';
/** A class for handling installation of system extensions */
export class NativeExtManager extends ApplicationService {

View File

@@ -8,7 +8,7 @@ import {
UserPrefsMutator,
FillItemContent,
ApplicationEvent,
} from 'snjs';
} from '@standardnotes/snjs';
export class PreferencesManager extends ApplicationService {
private userPreferences!: SNUserPrefs;

View File

@@ -1,4 +1,4 @@
import { removeFromArray } from 'snjs';
import { removeFromArray } from '@standardnotes/snjs';
type StatusCallback = (string: string) => void;

View File

@@ -6,7 +6,7 @@ import {
SNTheme,
removeFromArray,
ApplicationEvent, ContentType
} from 'snjs';
} from '@standardnotes/snjs';
const CACHED_THEMES_KEY = 'cachedThemes';