babel-plugin-inline-import-graphql-ast
Advanced tools
Comparing version 1.2.3 to 1.3.0
@@ -83,11 +83,6 @@ Object.defineProperty(exports, "__esModule", { | ||
key: 'transformRelativeToRootPath', | ||
value: function transformRelativeToRootPath(path, rootPathSuffix) { | ||
if (this.hasRoot(path)) { | ||
var withoutRoot = path.substring(1, path.length); | ||
return '' + BabelInlineImportHelper.root + (rootPathSuffix || '') + '/' + withoutRoot; | ||
} | ||
if (typeof path === 'string') { | ||
return path; | ||
} | ||
throw new Error('ERROR: No path passed'); | ||
value: function transformRelativeToRootPath(pathArg) { | ||
var rootPathSuffix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; | ||
return _path2.default.resolve(BabelInlineImportHelper.root, rootPathSuffix, pathArg); | ||
} | ||
@@ -101,3 +96,3 @@ }, { | ||
return string.substring(0, 1) === '/'; | ||
return _path2.default.isAbsolute(string); | ||
} | ||
@@ -104,0 +99,0 @@ }]); |
@@ -0,0 +0,0 @@ # ChangeLog |
{ | ||
"name": "babel-plugin-inline-import-graphql-ast", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "Babel plugin to make raw files importable", | ||
@@ -5,0 +5,0 @@ "author": "Alexander Roberts <detrohutt@gmail.com>", |
@@ -0,0 +0,0 @@ # Babel Inline Import GraphQL AST |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13868
151