0006728: set up wallet CI pipeline for WebExtension build
This commit split in three main things: * added deploy-webext to upload the extension zipfile * put scope into the npm packages to be able to deploy them * added deploy-npm to deploy related npm packages Also, fixing bug on `make clean`. Some packages where not being deleting tsconfig.tsbuildinfo and making subsequent `make` fail
This commit is contained in:
parent
69aaaefce3
commit
4845ebddf6
@ -1,13 +1,37 @@
|
||||
image: "registry.gitlab.com/gnu-taler/docker-taler-ci:latest"
|
||||
image: "registry.gitlab.com/sebasjm/docker-taler-ci:latest"
|
||||
|
||||
before_script:
|
||||
- pg_ctlcluster 12 main start
|
||||
# before_script:
|
||||
# - pg_ctlcluster 12 main start
|
||||
|
||||
test:
|
||||
stages:
|
||||
- test
|
||||
- deploy
|
||||
|
||||
# test:
|
||||
# stage: test
|
||||
# script:
|
||||
# - ./bootstrap
|
||||
# - ./configure
|
||||
# - make install
|
||||
|
||||
deploy-webext:
|
||||
stage: deploy
|
||||
script:
|
||||
- ./bootstrap
|
||||
- ./configure
|
||||
- make install integrationtests
|
||||
- make webextension
|
||||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN"
|
||||
--upload-file packages/taler-wallet-webextension/extension/taler-wallet-$(jq -r .version packages/taler-wallet-webextension/manifest.json).zip
|
||||
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/taler-wallet/$(jq -r .version packages/taler-wallet-webextension/manifest.json | cut -d . -f 1,2,3)/taler-wallet-$(jq -r .version packages/taler-wallet-webextension/manifest.json).zip"'
|
||||
|
||||
after_script:
|
||||
- pg_ctlcluster 12 main stop
|
||||
deploy-npm:
|
||||
stage: deploy
|
||||
script:
|
||||
- npm config set @gnu-taler:registry https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/npm/
|
||||
- npm config set '//gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken' ${CI_JOB_TOKEN}
|
||||
- ./bootstrap
|
||||
- ./configure
|
||||
- make publish
|
||||
|
||||
# after_script:
|
||||
# - pg_ctlcluster 12 main stop
|
||||
|
@ -4,7 +4,7 @@ src = src
|
||||
poname = taler-wallet-webex
|
||||
|
||||
tsc = node_modules/typescript/bin/tsc
|
||||
pogen = node_modules/pogen/bin/pogen.js
|
||||
pogen = node_modules/@gnu-taler/pogen/bin/pogen.js
|
||||
typedoc = node_modules/typedoc/bin/typedoc
|
||||
ava = node_modules/.bin/ava
|
||||
nyc = node_modules/nyc/bin/nyc.js
|
||||
@ -21,6 +21,10 @@ compile:
|
||||
dist:
|
||||
$(git-archive-all) --include ./configure taler-wallet-$(shell git describe --tags).tar.gz
|
||||
|
||||
.PHONY: publish
|
||||
publish: compile
|
||||
pnpm publish -r --no-git-checks
|
||||
|
||||
# make documentation from docstrings
|
||||
.PHONY: typedoc
|
||||
typedoc:
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 47f14fcf1d03d9dad1bae59987488ea05ecd307b
|
||||
Subproject commit c76fb9b3af6ec43f2d2a83e6b4f523dcc5ac6a54
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "idb-bridge",
|
||||
"name": "@gnu-taler/idb-bridge",
|
||||
"version": "0.0.16",
|
||||
"description": "IndexedDB implementation that uses SQLite3 as storage",
|
||||
"main": "./dist/idb-bridge.js",
|
||||
@ -33,4 +33,4 @@
|
||||
"esm"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "pogen",
|
||||
"name": "@gnu-taler/pogen",
|
||||
"version": "0.0.5",
|
||||
"main": "bin/pogen.js",
|
||||
"author": "Florian Dold",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "taler-wallet-android",
|
||||
"name": "@gnu-taler/taler-wallet-android",
|
||||
"version": "0.8.0",
|
||||
"description": "",
|
||||
"engines": {
|
||||
@ -16,7 +16,7 @@
|
||||
"compile": "tsc && rollup -c",
|
||||
"pretty": "prettier --write src",
|
||||
"coverage": "tsc && nyc ava",
|
||||
"clean": "rimraf lib dist"
|
||||
"clean": "rimraf lib dist tsconfig.tsbuildinfo"
|
||||
},
|
||||
"files": [
|
||||
"AUTHORS",
|
||||
@ -40,7 +40,7 @@
|
||||
"typescript": "^4.1.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"taler-wallet-core": "workspace:*",
|
||||
"tslib": "^2.1.0"
|
||||
"@gnu-taler/taler-wallet-core": "workspace:*",
|
||||
"tslib": "^2.1.0"
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ import {
|
||||
WALLET_MERCHANT_PROTOCOL_VERSION,
|
||||
bytesToString,
|
||||
stringToBytes,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
import fs from "fs";
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "taler-wallet-cli",
|
||||
"name": "@gnu-taler/taler-wallet-cli",
|
||||
"version": "0.8.1",
|
||||
"description": "",
|
||||
"engines": {
|
||||
@ -18,7 +18,7 @@
|
||||
"scripts": {
|
||||
"prepare": "tsc && rollup -c",
|
||||
"compile": "tsc && rollup -c",
|
||||
"clean": "rimraf lib dist",
|
||||
"clean": "rimraf lib dist tsconfig.tsbuildinfo",
|
||||
"pretty": "prettier --write src"
|
||||
},
|
||||
"files": [
|
||||
@ -48,7 +48,7 @@
|
||||
"axios": "^0.21.1",
|
||||
"minimatch": "^3.0.4",
|
||||
"source-map-support": "^0.5.19",
|
||||
"taler-wallet-core": "workspace:*",
|
||||
"@gnu-taler/taler-wallet-core": "workspace:*",
|
||||
"tslib": "^2.1.0"
|
||||
}
|
||||
}
|
||||
|
@ -38,14 +38,14 @@ import {
|
||||
rsaBlind,
|
||||
RecoveryMergeStrategy,
|
||||
stringToBytes,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import * as clk from "./clk";
|
||||
import { deepStrictEqual } from "assert";
|
||||
import { getTestInfo, runTests } from "./integrationtests/testrunner";
|
||||
|
||||
// This module also serves as the entry point for the crypto
|
||||
// thread worker, and thus must expose these two handlers.
|
||||
export { handleWorkerError, handleWorkerMessage } from "taler-wallet-core";
|
||||
export { handleWorkerError, handleWorkerMessage } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
const logger = new Logger("taler-wallet-cli.ts");
|
||||
|
||||
|
@ -82,7 +82,7 @@ import {
|
||||
CreateDepositGroupResponse,
|
||||
TrackDepositGroupRequest,
|
||||
TrackDepositGroupResponse,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import { URL } from "url";
|
||||
import axios, { AxiosError } from "axios";
|
||||
import {
|
||||
@ -95,8 +95,8 @@ import {
|
||||
TipCreateConfirmation,
|
||||
TipCreateRequest,
|
||||
} from "./merchantApiTypes";
|
||||
import { ApplyRefundResponse } from "taler-wallet-core";
|
||||
import { PendingOperationsResponse } from "taler-wallet-core";
|
||||
import { ApplyRefundResponse } from "@gnu-taler/taler-wallet-core";
|
||||
import { PendingOperationsResponse } from "@gnu-taler/taler-wallet-core";
|
||||
import { CoinConfig } from "./denomStructures";
|
||||
|
||||
const exec = util.promisify(require("child_process").exec);
|
||||
|
@ -44,7 +44,7 @@ import {
|
||||
PreparePayResultType,
|
||||
ConfirmPayResultType,
|
||||
ContractTerms,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import {
|
||||
FaultInjectedExchangeService,
|
||||
FaultInjectedMerchantService,
|
||||
|
@ -18,7 +18,7 @@
|
||||
* Imports.
|
||||
*/
|
||||
import axios from "axios";
|
||||
import { URL } from "taler-wallet-core";
|
||||
import { URL } from "@gnu-taler/taler-wallet-core";
|
||||
import {
|
||||
GlobalTestState,
|
||||
pingProc,
|
||||
|
@ -40,8 +40,8 @@ import {
|
||||
AmountString,
|
||||
Timestamp,
|
||||
CoinPublicKeyString,
|
||||
} from "taler-wallet-core";
|
||||
import { codecForAmountString } from "taler-wallet-core/lib/util/amounts";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import { codecForAmountString } from "@gnu-taler/taler-wallet-core/lib/util/amounts";
|
||||
|
||||
export interface PostOrderRequest {
|
||||
// The order must at least contain the minimal
|
||||
|
@ -28,7 +28,7 @@ import {
|
||||
BankAccessApi,
|
||||
CreditDebitIndicator,
|
||||
} from "./harness";
|
||||
import { createEddsaKeyPair, encodeCrock } from "taler-wallet-core";
|
||||
import { createEddsaKeyPair, encodeCrock } from "@gnu-taler/taler-wallet-core";
|
||||
import { defaultCoinConfig } from "./denomStructures";
|
||||
|
||||
/**
|
||||
|
@ -32,7 +32,7 @@ import {
|
||||
ExchangesListRespose,
|
||||
URL,
|
||||
TalerErrorCode,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import {
|
||||
FaultInjectedExchangeService,
|
||||
FaultInjectionResponseContext,
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Imports.
|
||||
*/
|
||||
import { CoreApiResponse } from "taler-wallet-core";
|
||||
import { CoreApiResponse } from "@gnu-taler/taler-wallet-core";
|
||||
import { CoinConfig, defaultCoinConfig } from "./denomStructures";
|
||||
import {
|
||||
DbInfo,
|
||||
|
@ -36,7 +36,7 @@ import {
|
||||
codecForMerchantOrderStatusUnpaid,
|
||||
ConfirmPayResultType,
|
||||
URL,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import axios from "axios";
|
||||
import {
|
||||
FaultInjectedExchangeService,
|
||||
|
@ -24,7 +24,7 @@ import {
|
||||
codecForMerchantOrderStatusUnpaid,
|
||||
ConfirmPayResultType,
|
||||
URL,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import axios from "axios";
|
||||
|
||||
/**
|
||||
|
@ -30,7 +30,7 @@ import {
|
||||
withdrawViaBank,
|
||||
SimpleTestEnvironment,
|
||||
} from "./helpers";
|
||||
import { durationFromSpec, PreparePayResultType, URL } from "taler-wallet-core";
|
||||
import { durationFromSpec, PreparePayResultType, URL } from "@gnu-taler/taler-wallet-core";
|
||||
import axios from "axios";
|
||||
|
||||
async function testRefundApiWithFulfillmentUrl(
|
||||
|
@ -22,7 +22,7 @@
|
||||
/**
|
||||
* Imports.
|
||||
*/
|
||||
import { PreparePayResultType, TalerErrorCode, URL } from "taler-wallet-core";
|
||||
import { PreparePayResultType, TalerErrorCode, URL } from "@gnu-taler/taler-wallet-core";
|
||||
import { FaultInjectionRequestContext, FaultInjectionResponseContext } from "./faultInjection";
|
||||
import { GlobalTestState, MerchantPrivateApi, setupDb } from "./harness";
|
||||
import {
|
||||
|
@ -27,7 +27,7 @@ import {
|
||||
codecForMerchantOrderStatusUnpaid,
|
||||
ConfirmPayResultType,
|
||||
URL,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import axios from "axios";
|
||||
import { FaultInjectionRequestContext } from "./faultInjection";
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
import { GlobalTestState, MerchantPrivateApi, WalletCli } from "./harness";
|
||||
import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers";
|
||||
import { PreparePayResultType, TalerErrorCode } from "taler-wallet-core";
|
||||
import { PreparePayResultType, TalerErrorCode } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
/**
|
||||
* Run test for basic, bank-integrated withdrawal.
|
||||
|
@ -37,7 +37,7 @@ import {
|
||||
FaultInjectionRequestContext,
|
||||
FaultInjectionResponseContext,
|
||||
} from "./faultInjection";
|
||||
import { CoreApiResponse } from "taler-wallet-core";
|
||||
import { CoreApiResponse } from "@gnu-taler/taler-wallet-core";
|
||||
import { defaultCoinConfig } from "./denomStructures";
|
||||
|
||||
/**
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
import { GlobalTestState, MerchantPrivateApi } from "./harness";
|
||||
import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers";
|
||||
import { PreparePayResultType } from "taler-wallet-core";
|
||||
import { PreparePayResultType } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
/**
|
||||
* Test the wallet-core payment API, especially that repeated operations
|
||||
|
@ -30,7 +30,7 @@ import {
|
||||
codecForExchangeKeysJson,
|
||||
TalerErrorDetails,
|
||||
TalerErrorCode,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import axios from "axios";
|
||||
import {
|
||||
FaultInjectionRequestContext,
|
||||
|
@ -23,7 +23,7 @@ import {
|
||||
PreparePayResultType,
|
||||
codecForMerchantOrderStatusUnpaid,
|
||||
ConfirmPayResultType,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import axios from "axios";
|
||||
|
||||
/**
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
import { GlobalTestState, MerchantPrivateApi } from "./harness";
|
||||
import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers";
|
||||
import { durationFromSpec } from "taler-wallet-core";
|
||||
import { durationFromSpec } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
/**
|
||||
* Run test for basic, bank-integrated withdrawal.
|
||||
|
@ -28,7 +28,7 @@ import {
|
||||
timestampAddDuration,
|
||||
getTimestampNow,
|
||||
timestampTruncateToSecond,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
/**
|
||||
* Run test for basic, bank-integrated withdrawal.
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
import { GlobalTestState, delayMs, MerchantPrivateApi } from "./harness";
|
||||
import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers";
|
||||
import { TransactionType, Amounts, durationFromSpec } from "taler-wallet-core";
|
||||
import { TransactionType, Amounts, durationFromSpec } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
/**
|
||||
* Run test for basic, bank-integrated withdrawal.
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Imports.
|
||||
*/
|
||||
import { durationFromSpec } from "taler-wallet-core";
|
||||
import { durationFromSpec } from "@gnu-taler/taler-wallet-core";
|
||||
import { GlobalTestState, MerchantPrivateApi } from "./harness";
|
||||
import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers";
|
||||
|
||||
|
@ -23,7 +23,7 @@ import {
|
||||
durationFromSpec,
|
||||
PendingOperationsResponse,
|
||||
PreparePayResultType,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import { makeNoFeeCoinConfig } from "./denomStructures";
|
||||
import {
|
||||
BankService,
|
||||
|
@ -23,7 +23,7 @@ import {
|
||||
withdrawViaBank,
|
||||
startWithdrawViaBank,
|
||||
} from "./helpers";
|
||||
import { Duration, TransactionType } from "taler-wallet-core";
|
||||
import { Duration, TransactionType } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
/**
|
||||
* Basic time travel test.
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
import { GlobalTestState, BankApi, BankAccessApi } from "./harness";
|
||||
import { createSimpleTestkudosEnvironment } from "./helpers";
|
||||
import { codecForBalancesResponse, TalerErrorCode } from "taler-wallet-core";
|
||||
import { codecForBalancesResponse, TalerErrorCode } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
/**
|
||||
* Run test for basic, bank-integrated withdrawal.
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
import { GlobalTestState, BankApi, BankAccessApi } from "./harness";
|
||||
import { createSimpleTestkudosEnvironment } from "./helpers";
|
||||
import { codecForBalancesResponse } from "taler-wallet-core";
|
||||
import { codecForBalancesResponse } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
/**
|
||||
* Run test for basic, bank-integrated withdrawal.
|
||||
|
@ -19,8 +19,8 @@
|
||||
*/
|
||||
import { GlobalTestState, BankApi } from "./harness";
|
||||
import { createSimpleTestkudosEnvironment } from "./helpers";
|
||||
import { CoreApiResponse } from "taler-wallet-core";
|
||||
import { codecForBalancesResponse } from "taler-wallet-core";
|
||||
import { CoreApiResponse } from "@gnu-taler/taler-wallet-core";
|
||||
import { codecForBalancesResponse } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
/**
|
||||
* Run test for basic, bank-integrated withdrawal.
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "taler-wallet-core",
|
||||
"name": "@gnu-taler/taler-wallet-core",
|
||||
"version": "0.8.1",
|
||||
"description": "",
|
||||
"engines": {
|
||||
@ -17,7 +17,7 @@
|
||||
"pretty": "prettier --write src",
|
||||
"test": "tsc && ava",
|
||||
"coverage": "tsc && nyc ava",
|
||||
"clean": "rimraf dist lib"
|
||||
"clean": "rimraf dist lib tsconfig.tsbuildinfo"
|
||||
},
|
||||
"files": [
|
||||
"AUTHORS",
|
||||
@ -47,7 +47,7 @@
|
||||
"jed": "^1.1.1",
|
||||
"nyc": "^15.1.0",
|
||||
"po2json": "^0.4.5",
|
||||
"pogen": "workspace:*",
|
||||
"@gnu-taler/pogen": "workspace:*",
|
||||
"prettier": "^2.2.1",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^2.37.1",
|
||||
@ -61,7 +61,7 @@
|
||||
"axios": "^0.21.1",
|
||||
"big-integer": "^1.6.48",
|
||||
"fflate": "^0.6.0",
|
||||
"idb-bridge": "workspace:*",
|
||||
"@gnu-taler/idb-bridge": "workspace:*",
|
||||
"source-map-support": "^0.5.19",
|
||||
"tslib": "^2.1.0"
|
||||
},
|
||||
|
@ -44,7 +44,7 @@ const workerCode = `
|
||||
}
|
||||
if (!tw) {
|
||||
try {
|
||||
tw = require("taler-wallet-android");
|
||||
tw = require("@gnu-taler/taler-wallet-android");
|
||||
} catch (e) {
|
||||
console.warn("could not load taler-wallet-android either");
|
||||
throw e;
|
||||
|
@ -11,7 +11,7 @@ import {
|
||||
IDBDatabase,
|
||||
IDBObjectStore,
|
||||
IDBTransaction,
|
||||
} from "idb-bridge";
|
||||
} from "@gnu-taler/idb-bridge";
|
||||
import { Logger } from "./util/logging";
|
||||
|
||||
/**
|
||||
|
@ -23,7 +23,7 @@
|
||||
* Imports.
|
||||
*/
|
||||
import { Wallet } from "../wallet";
|
||||
import { MemoryBackend, BridgeIDBFactory, shimIndexedDB } from "idb-bridge";
|
||||
import { MemoryBackend, BridgeIDBFactory, shimIndexedDB } from "@gnu-taler/idb-bridge";
|
||||
import { openTalerDatabase } from "../db";
|
||||
import { HttpRequestLibrary } from "../util/http";
|
||||
import fs from "fs";
|
||||
@ -33,7 +33,7 @@ import { Database } from "../util/query";
|
||||
import { NodeHttpLib } from "./NodeHttpLib";
|
||||
import { Logger } from "../util/logging";
|
||||
import { SynchronousCryptoWorkerFactory } from "../crypto/workers/synchronousWorker";
|
||||
import type { IDBFactory } from "idb-bridge/lib/idbtypes";
|
||||
import type { IDBFactory } from "@gnu-taler/idb-bridge/lib/idbtypes";
|
||||
import { Stores } from "../types/dbTypes";
|
||||
|
||||
const logger = new Logger("headless/helpers.ts");
|
||||
|
@ -39,7 +39,7 @@ import { Index, Store } from "../util/query";
|
||||
import { TalerErrorDetails, RefreshReason } from "./walletTypes";
|
||||
import { ReserveTransaction } from "./ReserveTransaction";
|
||||
import { Timestamp, Duration } from "../util/time";
|
||||
import { IDBKeyPath } from "idb-bridge";
|
||||
import { IDBKeyPath } from "@gnu-taler/idb-bridge";
|
||||
import { RetryInfo } from "../util/retries";
|
||||
|
||||
export enum ReserveRecordStatus {
|
||||
|
@ -33,7 +33,7 @@ import {
|
||||
IDBVersionChangeEvent,
|
||||
Event,
|
||||
IDBCursor,
|
||||
} from "idb-bridge";
|
||||
} from "@gnu-taler/idb-bridge";
|
||||
import { Logger } from "./logging";
|
||||
|
||||
const logger = new Logger("query.ts");
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "taler-wallet-webextension",
|
||||
"name": "@gnu-taler/taler-wallet-webextension",
|
||||
"version": "0.8.1-dev.2",
|
||||
"description": "GNU Taler Wallet browser extension",
|
||||
"main": "./build/index.js",
|
||||
@ -13,7 +13,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"moment": "^2.29.1",
|
||||
"taler-wallet-core": "workspace:*",
|
||||
"@gnu-taler/taler-wallet-core": "workspace:*",
|
||||
"tslib": "^2.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -19,7 +19,7 @@
|
||||
* @author Florian Dold
|
||||
*/
|
||||
|
||||
import type { CryptoWorker, CryptoWorkerFactory } from "taler-wallet-core";
|
||||
import type { CryptoWorker, CryptoWorkerFactory } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
export class BrowserCryptoWorkerFactory implements CryptoWorkerFactory {
|
||||
startWorker(): CryptoWorker {
|
||||
|
@ -25,8 +25,8 @@ import {
|
||||
HttpResponse,
|
||||
Headers,
|
||||
bytesToString,
|
||||
} from "taler-wallet-core";
|
||||
import { TalerErrorCode } from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import { TalerErrorCode } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
const logger = new Logger("browserHttpLib");
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
* Imports.
|
||||
*/
|
||||
|
||||
import { CryptoImplementation, Logger } from "taler-wallet-core";
|
||||
import { CryptoImplementation, Logger } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
const logger = new Logger("browserWorkerEntry.ts");
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
*/
|
||||
import React from "react";
|
||||
|
||||
import * as i18nCore from "taler-wallet-core";
|
||||
import * as i18nCore from "@gnu-taler/taler-wallet-core";
|
||||
/**
|
||||
* Convert template strings to a msgid
|
||||
*/
|
||||
|
@ -26,7 +26,7 @@ import { createWithdrawPage } from "./pages/withdraw";
|
||||
import { createWelcomePage } from "./pages/welcome";
|
||||
import { createPayPage } from "./pages/pay";
|
||||
import { createRefundPage } from "./pages/refund";
|
||||
import { setupI18n } from "taler-wallet-core";
|
||||
import { setupI18n } from "@gnu-taler/taler-wallet-core";
|
||||
import { createTipPage } from './pages/tip';
|
||||
|
||||
function main(): void {
|
||||
|
@ -38,7 +38,7 @@ import {
|
||||
ConfirmPayResultType,
|
||||
ConfirmPayResult,
|
||||
getJsonI18n,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
function TalerPayDialog({ talerPayUri }: { talerPayUri: string }): JSX.Element {
|
||||
const [payStatus, setPayStatus] = useState<PreparePayResult | undefined>();
|
||||
|
@ -38,7 +38,7 @@ import {
|
||||
TransactionType,
|
||||
AmountString,
|
||||
Timestamp,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
import { abbrev, renderAmount, PageLink } from "../renderHtml";
|
||||
import * as wxApi from "../wxApi";
|
||||
|
@ -23,7 +23,7 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import * as wxApi from "../wxApi";
|
||||
import { AmountView } from "../renderHtml";
|
||||
import { PurchaseDetails, ApplyRefundResponse, Amounts } from "taler-wallet-core";
|
||||
import { PurchaseDetails, ApplyRefundResponse, Amounts } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
function RefundStatusView(props: { talerRefundUri: string }): JSX.Element {
|
||||
const [applyResult, setApplyResult] = useState<ApplyRefundResponse>();
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
import * as React from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import { PrepareTipResult } from "taler-wallet-core";
|
||||
import { PrepareTipResult } from "@gnu-taler/taler-wallet-core";
|
||||
import { AmountView } from "../renderHtml";
|
||||
import * as wxApi from "../wxApi";
|
||||
|
||||
|
@ -26,7 +26,7 @@ import { PageLink } from "../renderHtml";
|
||||
import * as wxApi from "../wxApi";
|
||||
import { getPermissionsApi } from "../compat";
|
||||
import { extendedPermissions } from "../permissions";
|
||||
import { WalletDiagnostics } from "taler-wallet-core";
|
||||
import { WalletDiagnostics } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
function Diagnostics(): JSX.Element | null {
|
||||
const [timedOut, setTimedOut] = useState(false);
|
||||
|
@ -31,7 +31,7 @@ import {
|
||||
onUpdateNotification,
|
||||
getWithdrawalDetailsForUri,
|
||||
} from "../wxApi";
|
||||
import { WithdrawUriInfoResponse } from "taler-wallet-core";
|
||||
import { WithdrawUriInfoResponse } from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
function WithdrawalDialog(props: { talerWithdrawUri: string }): JSX.Element {
|
||||
const [details, setDetails] = useState<WithdrawUriInfoResponse | undefined>();
|
||||
|
@ -23,7 +23,7 @@
|
||||
/**
|
||||
* Imports.
|
||||
*/
|
||||
import { AmountJson, Amounts, stringifyTimestamp, ExchangeWithdrawDetails } from "taler-wallet-core";
|
||||
import { AmountJson, Amounts, stringifyTimestamp, ExchangeWithdrawDetails } from "@gnu-taler/taler-wallet-core";
|
||||
import * as i18n from "./i18n";
|
||||
import React from "react";
|
||||
|
||||
|
@ -36,7 +36,7 @@ import {
|
||||
PrepareTipRequest,
|
||||
PrepareTipResult,
|
||||
AcceptTipRequest,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
|
||||
export interface ExtendedPermissionsResponse {
|
||||
newValue: boolean;
|
||||
|
@ -40,7 +40,7 @@ import {
|
||||
WalletDiagnostics,
|
||||
CoreApiResponseSuccess,
|
||||
Stores,
|
||||
} from "taler-wallet-core";
|
||||
} from "@gnu-taler/taler-wallet-core";
|
||||
import { BrowserHttpLib } from "./browserHttpLib";
|
||||
import { BrowserCryptoWorkerFactory } from "./browserCryptoWorkerFactory";
|
||||
|
||||
|
@ -33,7 +33,7 @@ importers:
|
||||
typescript: ^4.1.3
|
||||
packages/taler-wallet-android:
|
||||
dependencies:
|
||||
taler-wallet-core: link:../taler-wallet-core
|
||||
'@gnu-taler/taler-wallet-core': link:../taler-wallet-core
|
||||
tslib: 2.1.0
|
||||
devDependencies:
|
||||
'@rollup/plugin-commonjs': 17.0.0_rollup@2.37.1
|
||||
@ -58,7 +58,7 @@ importers:
|
||||
rollup: ^2.37.1
|
||||
rollup-plugin-sourcemaps: ^0.6.3
|
||||
rollup-plugin-terser: ^7.0.2
|
||||
taler-wallet-core: workspace:*
|
||||
'@gnu-taler/taler-wallet-core': workspace:*
|
||||
tslib: ^2.1.0
|
||||
typescript: ^4.1.3
|
||||
packages/taler-wallet-cli:
|
||||
@ -67,7 +67,7 @@ importers:
|
||||
axios: 0.21.1
|
||||
minimatch: 3.0.4
|
||||
source-map-support: 0.5.19
|
||||
taler-wallet-core: link:../taler-wallet-core
|
||||
'@gnu-taler/taler-wallet-core': link:../taler-wallet-core
|
||||
tslib: 2.1.0
|
||||
devDependencies:
|
||||
'@rollup/plugin-commonjs': 17.0.0_rollup@2.37.1
|
||||
@ -97,7 +97,7 @@ importers:
|
||||
rollup-plugin-sourcemaps: ^0.6.3
|
||||
rollup-plugin-terser: ^7.0.2
|
||||
source-map-support: ^0.5.19
|
||||
taler-wallet-core: workspace:*
|
||||
'@gnu-taler/taler-wallet-core': workspace:*
|
||||
tslib: ^2.1.0
|
||||
typedoc: ^0.20.16
|
||||
typescript: ^4.1.3
|
||||
@ -107,7 +107,7 @@ importers:
|
||||
axios: 0.21.1
|
||||
big-integer: 1.6.48
|
||||
fflate: 0.6.0
|
||||
idb-bridge: link:../idb-bridge
|
||||
'@gnu-taler/idb-bridge': link:../idb-bridge
|
||||
source-map-support: 0.5.19
|
||||
tslib: 2.1.0
|
||||
devDependencies:
|
||||
@ -126,7 +126,7 @@ importers:
|
||||
jed: 1.1.1
|
||||
nyc: 15.1.0
|
||||
po2json: 0.4.5
|
||||
pogen: link:../pogen
|
||||
'@gnu-taler/pogen': link:../pogen
|
||||
prettier: 2.2.1
|
||||
rimraf: 3.0.2
|
||||
rollup: 2.37.1
|
||||
@ -151,11 +151,11 @@ importers:
|
||||
eslint-plugin-react-hooks: ^4.2.0
|
||||
esm: ^3.2.25
|
||||
fflate: ^0.6.0
|
||||
idb-bridge: workspace:*
|
||||
'@gnu-taler/idb-bridge': workspace:*
|
||||
jed: ^1.1.1
|
||||
nyc: ^15.1.0
|
||||
po2json: ^0.4.5
|
||||
pogen: workspace:*
|
||||
'@gnu-taler/pogen': workspace:*
|
||||
prettier: ^2.2.1
|
||||
rimraf: ^3.0.2
|
||||
rollup: ^2.37.1
|
||||
@ -168,7 +168,7 @@ importers:
|
||||
packages/taler-wallet-webextension:
|
||||
dependencies:
|
||||
moment: 2.29.1
|
||||
taler-wallet-core: link:../taler-wallet-core
|
||||
'@gnu-taler/taler-wallet-core': link:../taler-wallet-core
|
||||
tslib: 2.1.0
|
||||
devDependencies:
|
||||
'@rollup/plugin-commonjs': 17.0.0_rollup@2.37.1
|
||||
@ -212,7 +212,7 @@ importers:
|
||||
rollup-plugin-ignore: ^1.0.9
|
||||
rollup-plugin-sourcemaps: ^0.6.3
|
||||
rollup-plugin-terser: ^7.0.2
|
||||
taler-wallet-core: workspace:*
|
||||
'@gnu-taler/taler-wallet-core': workspace:*
|
||||
tslib: ^2.1.0
|
||||
typescript: ^4.1.3
|
||||
lockfileVersion: 5.2
|
||||
|
Loading…
Reference in New Issue
Block a user