Skip to content

Commit 530fad5

Browse files
committed
Move mongoUrl to src/vendor
And add a README to src/vendor
1 parent 836582f commit 530fad5

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import MongoCollection from './MongoCollection';
33
import MongoSchemaCollection from './MongoSchemaCollection';
4-
import {parse as parseUrl, format as formatUrl} from './mongodbUrl';
4+
import {parse as parseUrl, format as formatUrl} from '../../../vendor/mongodbUrl';
55

66
let mongodb = require('mongodb');
77
let MongoClient = mongodb.MongoClient;

src/vendor/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# mongoUrl
2+
3+
A fork of node's `url` module, with the modification that commas and colons are
4+
allowed in hostnames. While this results in a slightly incorrect parsed result,
5+
as the hostname field for a mongodb should be an array of replica sets, it's
6+
good enough to let us pull out and escape the auth portion of the URL.
7+
8+
See also: https://github.com/ParsePlatform/parse-server/pull/986
File renamed without changes.

0 commit comments

Comments
 (0)