Imports now specify the file extension to support Node v12

This commit is contained in:
n1474335 2019-07-09 12:23:59 +01:00
parent d7d50337f9
commit 566517d20f
469 changed files with 1098 additions and 1093 deletions

View file

@ -32,7 +32,7 @@
*
*/
import GostRandom from './gostRandom';
import GostRandom from './gostRandom.mjs';
import crypto from 'crypto'

View file

@ -32,7 +32,7 @@
*
*/
import gostCrypto from './gostCrypto';
import gostCrypto from './gostCrypto.mjs';
/**
* The Coding interface provides string converting methods: Base64, Hex,

View file

@ -32,8 +32,8 @@
*
*/
import GostRandom from './gostRandom';
import gostEngine from './gostEngine';
import GostRandom from './gostRandom.mjs';
import gostEngine from './gostEngine.mjs';
import crypto from 'crypto'

View file

@ -36,8 +36,8 @@
*
*/
import GostRandom from './gostRandom';
import GostCipher from './gostCipher';
import GostRandom from './gostRandom.mjs';
import GostCipher from './gostCipher.mjs';
import crypto from 'crypto';
/*

View file

@ -30,10 +30,10 @@
*
*/
import GostRandom from './gostRandom';
import GostCipher from './gostCipher';
import GostDigest from './gostDigest';
import GostSign from './gostSign';
import GostRandom from './gostRandom.mjs';
import GostCipher from './gostCipher.mjs';
import GostDigest from './gostDigest.mjs';
import GostSign from './gostSign.mjs';
/*
* Engine definition base on normalized algorithm identifier

View file

@ -33,8 +33,8 @@
*
*/
import GostRandom from './gostRandom';
import GostDigest from './gostDigest';
import GostRandom from './gostRandom.mjs';
import GostDigest from './gostDigest.mjs';
import crypto from 'crypto';

View file

@ -18,7 +18,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
import Utils from "../Utils";
import Utils from "../Utils.mjs";
// Param jpeg should be a binaryArray
export function removeEXIF(jpeg) {