forked from FoundKeyGang/FoundKey
Module 'crypto' as import syntax (#4011)
This commit is contained in:
parent
f2425f71c2
commit
5bbf4187e6
3 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
// スクリプトサイズがデカい
|
// スクリプトサイズがデカい
|
||||||
//const crypto = require('crypto');
|
//import * as crypto from 'crypto';
|
||||||
|
|
||||||
export default (data: ArrayBuffer) => {
|
export default (data: ArrayBuffer) => {
|
||||||
//const buf = new Buffer(data);
|
//const buf = new Buffer(data);
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { request } from 'https';
|
||||||
const { sign } = require('http-signature');
|
const { sign } = require('http-signature');
|
||||||
import { URL } from 'url';
|
import { URL } from 'url';
|
||||||
import * as debug from 'debug';
|
import * as debug from 'debug';
|
||||||
const crypto = require('crypto');
|
import * as crypto from 'crypto';
|
||||||
const { lookup } = require('lookup-dns-cache');
|
const { lookup } = require('lookup-dns-cache');
|
||||||
const promiseAny = require('promise-any');
|
const promiseAny = require('promise-any');
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import rndstr from 'rndstr';
|
import rndstr from 'rndstr';
|
||||||
const crypto = require('crypto');
|
import * as crypto from 'crypto';
|
||||||
import $ from 'cafy';
|
import $ from 'cafy';
|
||||||
import App from '../../../../models/app';
|
import App from '../../../../models/app';
|
||||||
import AuthSess from '../../../../models/auth-session';
|
import AuthSess from '../../../../models/auth-session';
|
||||||
|
|
Loading…
Reference in a new issue