Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit fa069eca
authored
Sep 13, 2013
by
Andre Cerqueira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use path.resolve instead of url.resolve for local file path
1 parent
e7c8f265
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
lib/sequelize.js
lib/sequelize.js
View file @
fa069ec
var
url
=
require
(
"url"
)
var
url
=
require
(
"url"
)
,
Path
=
require
(
"path"
)
,
Utils
=
require
(
"./utils"
)
,
Utils
=
require
(
"./utils"
)
,
DAOFactory
=
require
(
"./dao-factory"
)
,
DAOFactory
=
require
(
"./dao-factory"
)
,
DataTypes
=
require
(
'./data-types'
)
,
DataTypes
=
require
(
'./data-types'
)
...
@@ -219,7 +220,7 @@ module.exports = (function() {
...
@@ -219,7 +220,7 @@ module.exports = (function() {
if
(
url
.
parse
(
path
).
pathname
.
indexOf
(
'/'
)
!==
0
)
{
if
(
url
.
parse
(
path
).
pathname
.
indexOf
(
'/'
)
!==
0
)
{
// make path relative to the caller
// make path relative to the caller
var
callerFilename
=
Utils
.
stack
()[
1
].
getFileName
();
var
callerFilename
=
Utils
.
stack
()[
1
].
getFileName
();
path
=
url
.
resolve
(
callerFilename
,
path
);
path
=
Path
.
resolve
(
callerFilename
,
path
);
}
}
if
(
!
this
.
importCache
[
path
])
{
if
(
!
this
.
importCache
[
path
])
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment