Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

Commit d96681d

Browse files
author
Felix Hammerl
committed
switch to node-shims
1 parent fec8a32 commit d96681d

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"mimelib": "https://github.com/whiteout-io/mimelib/tarball/amd",
2828
"encoding": "https://github.com/whiteout-io/encoding/tarball/amd",
2929
"mime": "https://github.com/whiteout-io/node-mime/tarball/amd",
30+
"node-shims": "https://github.com/whiteout-io/node-shims/tarball/master",
3031
"amdefine": ">=0.0.8",
3132
"setimmediate": ">=1.0.1"
3233
},

src/mailparser.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ define(function (require) {
88
* @version 0.2.23
99
*/
1010

11-
var Stream = require("stream").Stream,
12-
utillib = require("util"),
11+
var shims = require('node-shims'),
12+
Stream = shims.Stream,
13+
utillib = shims.util,
14+
crypto = shims.crypto,
1315
mimelib = require("mimelib"),
1416
datetime = require("./datetime"),
1517
encodinglib = require("encoding"),
16-
Streams = require("./streams"),
17-
crypto = require("crypto"),
1818
mime = require("mime");
1919

2020
require("setimmediate");

src/streams.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ if (typeof define !== 'function') { var define = require('amdefine')(module); }
22

33
define(function (require) {
44

5-
var Stream = require('stream').Stream,
6-
utillib = require('util'),
5+
var shims = require('node-shims'),
6+
Stream = shims.Stream,
7+
utillib = shims.util,
8+
crypto = shims.crypto,
79
mimelib = require("mimelib"),
8-
encodinglib = require("encoding"),
9-
crypto = require("crypto");
10+
encodinglib = require("encoding");
1011

1112
function Base64Stream(){
1213
Stream.call(this);

0 commit comments

Comments
 (0)