Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crypto-conditions",
"version": "2.1.3",
"version": "2.2.1",
"description": "Implementation of crypto-conditions in JavaScript",
"main": "./dist/node/index.js",
"browser": "./dist/browser/CryptoConditions.cjs2.min.js",
Expand All @@ -27,6 +27,7 @@
"@babel/plugin-proposal-export-default-from": "^7.16.7",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/register": "^7.17.0",
"@babel/runtime-corejs3": "^7.17.2",
"babel-loader": "^8.2.2",
"buffer": "^6.0.3",
Expand Down Expand Up @@ -79,7 +80,7 @@
"build:cjs": "cross-env BABEL_ENV=cjs babel ./src -d dist/node",
"build:dist": "cross-env NODE_ENV=production webpack",
"clean": "rimraf dist/bundle dist/browser dist/node",
"test:specs": "NODE_ENV=unit nyc mocha",
"test:specs": "NODE_ENV=unit nyc mocha --require @babel/register",
"test:browser": "karma start --single-run",
"test": "npm run test:specs && npm run test:browser",
"docs:jsdoc": "jsdoc -R README.md -c jsdoc.json src/*",
Expand Down Expand Up @@ -123,7 +124,7 @@
},
"hooks": {
"before:init": [
"npm run test"
"npm run test:specs"
]
},
"npm": {
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const fromFulfillmentBinary = Fulfillment.fromBinary.bind(Fulfillment)
export {
Condition,
Fulfillment,
Ed25519Sha256,
PreimageSha256,
PrefixSha256,
ThresholdSha256,
Expand Down
2 changes: 1 addition & 1 deletion test/mgf1Spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Mgf1 = require('../src/crypto/mgf1')
const Mgf1 = require('../src/crypto/mgf1').default
const assert = require('chai').assert

describe('Mgf1', function () {
Expand Down
2 changes: 1 addition & 1 deletion test/pemSpec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Pem = require('../src/util/pem')
const Pem = require('../src/util/pem').default
const assert = require('chai').assert

describe('Pem', function () {
Expand Down
2 changes: 1 addition & 1 deletion test/pssSpec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Pss = require('../src/crypto/pss')
const Pss = require('../src/crypto/pss').default
const assert = require('chai').assert
const getSaltHelper = require('./helpers/salt').getSaltHelper

Expand Down
2 changes: 1 addition & 1 deletion test/rsaSpec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const assert = require('chai').assert
const Rsa = require('../src/crypto/rsa')
const Rsa = require('../src/crypto/rsa').default
const getSaltHelper = require('./helpers/salt').getSaltHelper

describe('Rsa', function () {
Expand Down
2 changes: 1 addition & 1 deletion test/xorSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const assert = require('chai').assert

const xor = require('../src/util/xor')
const xor = require('../src/util/xor').default

describe('xor', function () {
it('should return an xored buffer', function () {
Expand Down