Comparing version 3.1.4 to 3.1.5
{ | ||
"name": "ipjs", | ||
"version": "3.1.4", | ||
"version": "3.1.5", | ||
"description": "Universal JavaScript build and packaging system", | ||
@@ -5,0 +5,0 @@ "main": "src/build.js", |
@@ -94,2 +94,8 @@ import { promises as fs } from 'fs' | ||
else key = './' + ex.slice(name.length + '/'.length) | ||
if (!this.pkgjson.exports) { | ||
throw new Error('Must define export map') | ||
} | ||
if (key === '.') { | ||
if (this.pkgjson.exports.import) return this.pkgjson.exports | ||
} | ||
if (!this.pkgjson.exports[key]) throw new Error(`No export named "${ex}"`) | ||
@@ -96,0 +102,0 @@ return this.pkgjson.exports[key] |
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
48367
1343