@mdx-js/react
Advanced tools
Comparing version 1.0.0-alpha.17 to 1.0.0-rc.0
@@ -1,43 +0,1 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _context = require('./context'); | ||
Object.defineProperty(exports, 'MDXContext', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_context).default; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'MDXProvider', { | ||
enumerable: true, | ||
get: function get() { | ||
return _context.MDXProvider; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'useMDXComponents', { | ||
enumerable: true, | ||
get: function get() { | ||
return _context.useMDXComponents; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'withMDXComponents', { | ||
enumerable: true, | ||
get: function get() { | ||
return _context.withMDXComponents; | ||
} | ||
}); | ||
var _createElement = require('./create-element'); | ||
Object.defineProperty(exports, 'mdx', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_createElement).default; | ||
} | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var e,t=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e,n=t.createContext({}),r=function(e){var r=t.useContext(n),o=r;return e&&(o="function"==typeof e?e(r):Object.assign({},r,e)),o},o={inlineCode:"code",wrapper:t.Fragment},a=function(e){var n=e.components,a=e.mdxType,p=e.parentName,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["components","mdxType","parentName"]),i=r(n);return t.createElement(i[p+"."+a]||i[a]||o[a]||a,c)};a.displayName="MDXCreateElement",exports.MDXContext=n,exports.MDXProvider=function(e){var o=r(e.components);return t.createElement(n.Provider,{value:o},e.children)},exports.useMDXComponents=r,exports.withMDXComponents=function(e){return function(n){var o=r(n.components);return t.createElement(e,Object.assign({},n,{components:o}))}},exports.mdx=function(e,n){var r=arguments;if("string"==typeof e){var o=r.length,p=new Array(o);p[0]=a;var c={};for(var i in n)hasOwnProperty.call(n,i)&&(c[i]=n[i]);c.mdxType=e,p[1]=c;for(var u=2;u<o;u++)p[u]=r[u];return t.createElement.apply(null,p)}return t.createElement.apply(null,r)}; |
{ | ||
"name": "@mdx-js/react", | ||
"version": "1.0.0-alpha.17", | ||
"version": "1.0.0-rc.0", | ||
"description": "React implementation for MDX", | ||
@@ -25,2 +25,3 @@ "license": "MIT", | ||
"main": "dist/index.js", | ||
"module": "dist/index.es.js", | ||
"files": [ | ||
@@ -30,7 +31,7 @@ "dist" | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"jest": "^23.1.0", | ||
"@babel/core": "^7.4.0", | ||
"@babel/preset-env": "^7.4.2", | ||
"@babel/preset-react": "^7.0.0", | ||
"jest": "^24.0.0", | ||
"microbundle": "^0.11.0", | ||
"react": "^16.8.0", | ||
@@ -44,3 +45,3 @@ "react-dom": "^16.8.0", | ||
"scripts": { | ||
"build": "babel src -d dist", | ||
"build": "microbundle --format es,cjs --external react --jsx React.createElement --no-sourcemap", | ||
"clean": "rimraf dist", | ||
@@ -50,3 +51,3 @@ "prepublish": "npm run clean && npm run build", | ||
}, | ||
"gitHead": "690cd8dcfc2007e45193180cc8d1f016269be2ae" | ||
"gitHead": "7e3aca092e6f3ab21ea1d0ad772d2f48963536c2" | ||
} |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
6376
5
10
2
1