Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
693 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | exports.default = {
|
---|
4 | encodeBase64: function encodeBase64(str) {
|
---|
5 | // Avoid Buffer constructor on newer versions of Node.js.
|
---|
6 | var buffer = (Buffer.from ? Buffer.from(str) : (new Buffer(str)));
|
---|
7 | return buffer.toString('base64');
|
---|
8 | },
|
---|
9 | mimeLookup: function (filename) {
|
---|
10 | return require('mime').lookup(filename);
|
---|
11 | },
|
---|
12 | charsetLookup: function (mime) {
|
---|
13 | return require('mime').charsets.lookup(mime);
|
---|
14 | },
|
---|
15 | getSourceMapGenerator: function getSourceMapGenerator() {
|
---|
16 | return require('source-map').SourceMapGenerator;
|
---|
17 | }
|
---|
18 | };
|
---|
19 | //# sourceMappingURL=environment.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.