boho 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "boho",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Encryption, authentication, Secure communication",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "import": "./dist/boho.js",
8
8
  "require": "./dist/boho.cjs"
9
9
  },
10
- "browser": "./dist/boho.js",
10
+ "browser": "./dist/boho.min.js",
11
+ "jsdelivr": "./dist/boho.min.js",
12
+ "unpkg": "./dist/boho.min.js",
11
13
  "keywords": [
12
14
  "SSL",
13
15
  "cipher",
@@ -33,7 +35,7 @@
33
35
  "rollup": "^4.21.2"
34
36
  },
35
37
  "dependencies": {
36
- "meta-buffer-pack": "^2.0.2"
38
+ "meta-buffer-pack": "^2.0.3"
37
39
  },
38
40
  "scripts": {
39
41
  "build": "rollup -c",
package/rollup.config.js CHANGED
@@ -7,8 +7,8 @@ export default [
7
7
  input: './src/index.js',
8
8
  output: [
9
9
  {
10
- file: './dist/boho.iife.js',
11
- format: 'iife',
10
+ file: './dist/boho.min.js',
11
+ format: 'umd',
12
12
  name: 'Boho',
13
13
  sourcemap: true
14
14
  },
@@ -15,7 +15,7 @@
15
15
  mocha.setup('bdd');
16
16
  mocha.checkLeaks();
17
17
  </script>
18
- <script src="../dist/boho.iife.js"></script>
18
+ <script src="../dist/boho.min.js"></script>
19
19
  <script>
20
20
 
21
21
  let assert = chai.assert;
@@ -8,17 +8,17 @@
8
8
  </head>
9
9
  <body>
10
10
  <p>this page includes: </p>
11
- <h1>1. IIFE: ../dist/boho.iife.js</h1>
11
+ <h1>1. UMD(IIFE): ../dist/boho.min.js</h1>
12
12
  <p>use global name: Boho </p>
13
13
  <p>Boho has props: sha256, Buffer, RAND , MBP. </p>
14
14
  <h1>2. ES Module: ../dist/boho.js</h1>
15
15
 
16
- <script src="../dist/boho.iife.js"></script>
16
+ <script src="../dist/boho.min.js"></script>
17
17
  <script>
18
18
  // console.log( Boho )
19
- console.log('iife.js: sha256.hash("hi")', Boho.sha256.hash('hi'))
20
- console.log('iife.js: Buffer', Boho.Buffer.alloc(33))
21
- console.log('iife.js: RAND', Boho.RAND(33))
19
+ console.log('min.js: sha256.hash("hi")', Boho.sha256.hash('hi'))
20
+ console.log('min.js: Buffer', Boho.Buffer.alloc(33))
21
+ console.log('min.js: RAND', Boho.RAND(33))
22
22
 
23
23
  </script>
24
24
  <script type="module">