@wordpress/api-fetch
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1,2 +0,1 @@ | ||
import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator"; | ||
@@ -97,5 +96,5 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread"; | ||
/*#__PURE__*/ | ||
_regeneratorRuntime.mark(function _callee() { | ||
regeneratorRuntime.mark(function _callee() { | ||
var text; | ||
return _regeneratorRuntime.wrap(function _callee$(_context) { | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
while (1) { | ||
@@ -102,0 +101,0 @@ switch (_context.prev = _context.next) { |
@@ -10,4 +10,2 @@ "use strict"; | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); | ||
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); | ||
@@ -115,5 +113,5 @@ | ||
/*#__PURE__*/ | ||
_regenerator.default.mark(function _callee() { | ||
regeneratorRuntime.mark(function _callee() { | ||
var text; | ||
return _regenerator.default.wrap(function _callee$(_context) { | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
while (1) { | ||
@@ -120,0 +118,0 @@ switch (_context.prev = _context.next) { |
@@ -1,2 +0,2 @@ | ||
## 2.0.0 (Unreleased) | ||
## 2.0.0 (2018-09-05) | ||
@@ -3,0 +3,0 @@ ### Breaking Change |
{ | ||
"name": "@wordpress/api-fetch", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Utility to make WordPress REST API requests.", | ||
@@ -22,6 +22,7 @@ "author": "The WordPress Contributors", | ||
"module": "build-module/index.js", | ||
"react-native": "src/index", | ||
"dependencies": { | ||
"@babel/runtime": "^7.0.0", | ||
"@wordpress/hooks": "^2.0.0", | ||
"@wordpress/i18n": "^2.0.0" | ||
"@wordpress/hooks": "^2.0.1", | ||
"@wordpress/i18n": "^3.0.0" | ||
}, | ||
@@ -31,3 +32,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "df6f8da7b557894e4364c17db2dd4af0d1e20252" | ||
"gitHead": "7b17d5777076896fb25170b23d6e83e8c049240d" | ||
} |
@@ -20,3 +20,3 @@ # API Fetch | ||
apiFetch( { path: '/wp/v2/posts' } ).then( posts => { | ||
apiFetch( { path: '/wp-json/wp/v2/posts' } ).then( posts => { | ||
console.log( posts ); | ||
@@ -23,0 +23,0 @@ } ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
91183
1034
1
+ Added@tannin/compile@1.1.0(transitive)
+ Added@tannin/evaluate@1.2.0(transitive)
+ Added@tannin/plural-forms@1.1.0(transitive)
+ Added@tannin/postfix@1.1.0(transitive)
+ Added@wordpress/i18n@3.20.0(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedtannin@1.2.0(transitive)
- Removed@wordpress/i18n@2.0.0(transitive)
- Removedjed@1.1.1(transitive)
Updated@wordpress/hooks@^2.0.1
Updated@wordpress/i18n@^3.0.0