mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-03-30 15:08:32 +00:00
Update package.json name and url
This commit is contained in:
parent
96b13a468b
commit
cc79face33
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "openpgp",
|
||||
"name": "@protontech/openpgp",
|
||||
"version": "6.1.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "openpgp",
|
||||
"name": "@protontech/openpgp",
|
||||
"version": "6.1.0",
|
||||
"license": "LGPL-3.0+",
|
||||
"devDependencies": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "openpgp",
|
||||
"name": "@protontech/openpgp",
|
||||
"description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.",
|
||||
"version": "6.1.0",
|
||||
"license": "LGPL-3.0+",
|
||||
@ -114,6 +114,6 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/openpgpjs/openpgpjs"
|
||||
"url": "https://github.com/ProtonMail/openpgpjs"
|
||||
}
|
||||
}
|
||||
|
@ -61,8 +61,8 @@ const nodeBuild = {
|
||||
input: 'src/index.js',
|
||||
external: nodeBuiltinModules.concat(nodeDependencies),
|
||||
output: [
|
||||
{ file: 'dist/node/openpgp.cjs', format: 'cjs', name: pkg.name, banner, intro },
|
||||
{ file: 'dist/node/openpgp.min.cjs', format: 'cjs', name: pkg.name, banner, intro, plugins: [terser(terserOptions)], sourcemap: true },
|
||||
{ file: 'dist/node/openpgp.cjs', format: 'cjs', name: 'openpgp', banner, intro },
|
||||
{ file: 'dist/node/openpgp.min.cjs', format: 'cjs', name: 'openpgp', banner, intro, plugins: [terser(terserOptions)], sourcemap: true },
|
||||
{ file: 'dist/node/openpgp.mjs', format: 'es', banner, intro },
|
||||
{ file: 'dist/node/openpgp.min.mjs', format: 'es', banner, intro, plugins: [terser(terserOptions)], sourcemap: true }
|
||||
].map(options => ({ ...options, inlineDynamicImports: true })),
|
||||
@ -85,8 +85,8 @@ const fullBrowserBuild = {
|
||||
input: 'src/index.js',
|
||||
external: nodeBuiltinModules.concat(nodeDependencies),
|
||||
output: [
|
||||
{ file: 'dist/openpgp.js', format: 'iife', name: pkg.name, banner, intro },
|
||||
{ file: 'dist/openpgp.min.js', format: 'iife', name: pkg.name, banner, intro, plugins: [terser(terserOptions)], sourcemap: true },
|
||||
{ file: 'dist/openpgp.js', format: 'iife', name: 'openpgp', banner, intro },
|
||||
{ file: 'dist/openpgp.min.js', format: 'iife', name: 'openpgp', banner, intro, plugins: [terser(terserOptions)], sourcemap: true },
|
||||
{ file: 'dist/openpgp.mjs', format: 'es', banner, intro },
|
||||
{ file: 'dist/openpgp.min.mjs', format: 'es', banner, intro, plugins: [terser(terserOptions)], sourcemap: true }
|
||||
].map(options => ({ ...options, inlineDynamicImports: true })),
|
||||
@ -145,7 +145,7 @@ const testBuild = {
|
||||
plugins: [
|
||||
alias({
|
||||
entries: {
|
||||
openpgp: `./dist/${process.env.npm_config_lightweight ? 'lightweight/' : ''}openpgp.mjs`
|
||||
'@protontech/openpgp': `./dist/${process.env.npm_config_lightweight ? 'lightweight/' : ''}openpgp.mjs`
|
||||
}
|
||||
}),
|
||||
resolve({
|
||||
|
@ -4,7 +4,7 @@ import path from 'path';
|
||||
import { writeFileSync, unlinkSync } from 'fs';
|
||||
import { fork } from 'child_process';
|
||||
import { fileURLToPath } from 'url';
|
||||
import * as openpgp from 'openpgp';
|
||||
import * as openpgp from '@protontech/openpgp';
|
||||
|
||||
/**
|
||||
* Benchmark max memory usage recorded during execution of the given function.
|
||||
@ -18,7 +18,7 @@ const benchmark = async function(fn) {
|
||||
// the code to execute must be written to a file
|
||||
writeFileSync(tmpFileName, `
|
||||
const assert = require('assert');
|
||||
const openpgp = require('openpgp');
|
||||
const openpgp = require('@protontech/openpgp');
|
||||
let maxMemoryComsumption;
|
||||
let activeSampling = false;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import Benchmark from 'benchmark';
|
||||
import { readToEnd } from '@openpgp/web-stream-tools';
|
||||
import * as openpgp from 'openpgp';
|
||||
import * as openpgp from '@protontech/openpgp';
|
||||
|
||||
const wrapAsync = func => ({
|
||||
fn: async deferred => {
|
||||
|
@ -3,7 +3,7 @@
|
||||
* at the top of the test bundle, and that the config is initialised before the tests code runs (incl. that outside of `describe`).
|
||||
*/
|
||||
|
||||
import * as openpgp from 'openpgp';
|
||||
import * as openpgp from '@protontech/openpgp';
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
window.openpgp = openpgp;
|
||||
|
@ -17,7 +17,7 @@ import {
|
||||
generateSessionKey, encryptSessionKey, decryptSessionKeys,
|
||||
LiteralDataPacket, PacketList, CompressedDataPacket, PublicKeyPacket, PublicSubkeyPacket, SecretKeyPacket, SecretSubkeyPacket, CleartextMessage,
|
||||
WebStream, NodeWebStream,
|
||||
} from 'openpgp';
|
||||
} from '@protontech/openpgp';
|
||||
|
||||
(async () => {
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
"moduleResolution": "Bundler",
|
||||
"allowJs": true,
|
||||
"paths": {
|
||||
"openpgp": [ "." ]
|
||||
"@protontech/openpgp": [ "." ]
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user