Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-inline-import-graphql-ast

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-inline-import-graphql-ast - npm Package Compare versions

Comparing version 1.2.3 to 1.3.0

15

build/helper.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc