@graphitation/apollo-react-relay-duct-tape
Advanced tools
Comparing version 0.5.0-store-observation.2 to 0.5.0-store-observation.3
# Change Log - @graphitation/apollo-react-relay-duct-tape | ||
This log was last generated on Tue, 05 Oct 2021 08:17:41 GMT and should not be manually modified. | ||
This log was last generated on Wed, 06 Oct 2021 18:49:34 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 0.5.0-store-observation.3 | ||
Wed, 06 Oct 2021 18:49:34 GMT | ||
### Changes | ||
- Build-time fixes (eloy.de.enige@gmail.com) | ||
## 0.5.0-store-observation.1 | ||
@@ -8,0 +16,0 @@ |
@@ -30,2 +30,4 @@ var __create = Object.create; | ||
var import_graphql = __toModule(require("graphql")); | ||
var path = __toModule(require("path")); | ||
var fs = __toModule(require("fs")); | ||
const PREFIX = "__graphitation_"; | ||
@@ -41,4 +43,7 @@ const QUERIES_NAMESPACE = "generatedQueries"; | ||
const [importDeclaration, replacementNode] = documentNodes; | ||
imports.push(importDeclaration); | ||
return replacementNode; | ||
const artefactFile = path.join(path.dirname(node.getSourceFile().fileName), importDeclaration.moduleSpecifier.text) + ".ts"; | ||
if (fs.existsSync(artefactFile)) { | ||
imports.push(importDeclaration); | ||
return replacementNode; | ||
} | ||
} | ||
@@ -45,0 +50,0 @@ } |
@@ -20,4 +20,3 @@ var __create = Object.create; | ||
__markAsModule(exports); | ||
__reExport(exports, __toModule(require("./createImportDocumentsTransform"))); | ||
__reExport(exports, __toModule(require("./createNodeFromCacheFieldPolicy"))); | ||
__reExport(exports, __toModule(require("./shallowCompareFragmentReferences"))); |
@@ -5,4 +5,4 @@ { | ||
"license": "MIT", | ||
"version": "0.5.0-store-observation.2", | ||
"main": "./src/index.ts", | ||
"version": "0.5.0-store-observation.3", | ||
"main": "./lib/index", | ||
"scripts": { | ||
@@ -37,6 +37,4 @@ "build": "monorepo-scripts build", | ||
}, | ||
"publishConfig": { | ||
"main": "./lib/index", | ||
"types": "./lib/index.d.ts" | ||
} | ||
"publishConfig": {}, | ||
"types": "./lib/index.d.ts" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
60786
29
1235
3