Update package.json name and url

This commit is contained in:
Daniel Huigens 2022-07-12 19:05:39 +02:00 committed by larabr
parent 96b13a468b
commit cc79face33
8 changed files with 15 additions and 15 deletions

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "openpgp", "name": "@protontech/openpgp",
"version": "6.1.0", "version": "6.1.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "openpgp", "name": "@protontech/openpgp",
"version": "6.1.0", "version": "6.1.0",
"license": "LGPL-3.0+", "license": "LGPL-3.0+",
"devDependencies": { "devDependencies": {

View File

@ -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.", "description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.",
"version": "6.1.0", "version": "6.1.0",
"license": "LGPL-3.0+", "license": "LGPL-3.0+",
@ -114,6 +114,6 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/openpgpjs/openpgpjs" "url": "https://github.com/ProtonMail/openpgpjs"
} }
} }

View File

@ -61,8 +61,8 @@ const nodeBuild = {
input: 'src/index.js', input: 'src/index.js',
external: nodeBuiltinModules.concat(nodeDependencies), external: nodeBuiltinModules.concat(nodeDependencies),
output: [ output: [
{ file: 'dist/node/openpgp.cjs', format: 'cjs', name: pkg.name, banner, intro }, { file: 'dist/node/openpgp.cjs', format: 'cjs', name: 'openpgp', banner, intro },
{ file: 'dist/node/openpgp.min.cjs', format: 'cjs', name: pkg.name, banner, intro, plugins: [terser(terserOptions)], sourcemap: true }, { 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.mjs', format: 'es', banner, intro },
{ file: 'dist/node/openpgp.min.mjs', format: 'es', banner, intro, plugins: [terser(terserOptions)], sourcemap: true } { file: 'dist/node/openpgp.min.mjs', format: 'es', banner, intro, plugins: [terser(terserOptions)], sourcemap: true }
].map(options => ({ ...options, inlineDynamicImports: true })), ].map(options => ({ ...options, inlineDynamicImports: true })),
@ -85,8 +85,8 @@ const fullBrowserBuild = {
input: 'src/index.js', input: 'src/index.js',
external: nodeBuiltinModules.concat(nodeDependencies), external: nodeBuiltinModules.concat(nodeDependencies),
output: [ output: [
{ file: 'dist/openpgp.js', format: 'iife', name: pkg.name, banner, intro }, { file: 'dist/openpgp.js', format: 'iife', name: 'openpgp', banner, intro },
{ file: 'dist/openpgp.min.js', format: 'iife', name: pkg.name, banner, intro, plugins: [terser(terserOptions)], sourcemap: true }, { 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.mjs', format: 'es', banner, intro },
{ file: 'dist/openpgp.min.mjs', format: 'es', banner, intro, plugins: [terser(terserOptions)], sourcemap: true } { file: 'dist/openpgp.min.mjs', format: 'es', banner, intro, plugins: [terser(terserOptions)], sourcemap: true }
].map(options => ({ ...options, inlineDynamicImports: true })), ].map(options => ({ ...options, inlineDynamicImports: true })),
@ -145,7 +145,7 @@ const testBuild = {
plugins: [ plugins: [
alias({ alias({
entries: { entries: {
openpgp: `./dist/${process.env.npm_config_lightweight ? 'lightweight/' : ''}openpgp.mjs` '@protontech/openpgp': `./dist/${process.env.npm_config_lightweight ? 'lightweight/' : ''}openpgp.mjs`
} }
}), }),
resolve({ resolve({

View File

@ -4,7 +4,7 @@ import path from 'path';
import { writeFileSync, unlinkSync } from 'fs'; import { writeFileSync, unlinkSync } from 'fs';
import { fork } from 'child_process'; import { fork } from 'child_process';
import { fileURLToPath } from 'url'; 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. * 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 // the code to execute must be written to a file
writeFileSync(tmpFileName, ` writeFileSync(tmpFileName, `
const assert = require('assert'); const assert = require('assert');
const openpgp = require('openpgp'); const openpgp = require('@protontech/openpgp');
let maxMemoryComsumption; let maxMemoryComsumption;
let activeSampling = false; let activeSampling = false;

View File

@ -1,6 +1,6 @@
import Benchmark from 'benchmark'; import Benchmark from 'benchmark';
import { readToEnd } from '@openpgp/web-stream-tools'; import { readToEnd } from '@openpgp/web-stream-tools';
import * as openpgp from 'openpgp'; import * as openpgp from '@protontech/openpgp';
const wrapAsync = func => ({ const wrapAsync = func => ({
fn: async deferred => { fn: async deferred => {

View File

@ -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`). * 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') { if (typeof window !== 'undefined') {
window.openpgp = openpgp; window.openpgp = openpgp;

View File

@ -17,7 +17,7 @@ import {
generateSessionKey, encryptSessionKey, decryptSessionKeys, generateSessionKey, encryptSessionKey, decryptSessionKeys,
LiteralDataPacket, PacketList, CompressedDataPacket, PublicKeyPacket, PublicSubkeyPacket, SecretKeyPacket, SecretSubkeyPacket, CleartextMessage, LiteralDataPacket, PacketList, CompressedDataPacket, PublicKeyPacket, PublicSubkeyPacket, SecretKeyPacket, SecretSubkeyPacket, CleartextMessage,
WebStream, NodeWebStream, WebStream, NodeWebStream,
} from 'openpgp'; } from '@protontech/openpgp';
(async () => { (async () => {

View File

@ -6,7 +6,7 @@
"moduleResolution": "Bundler", "moduleResolution": "Bundler",
"allowJs": true, "allowJs": true,
"paths": { "paths": {
"openpgp": [ "." ] "@protontech/openpgp": [ "." ]
}, },
} }
} }