@sanity/client
Advanced tools
Comparing version 0.2.7 to 0.2.8
{ | ||
"name": "@sanity/client", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Client for retrieving data from Sanity", | ||
@@ -9,3 +9,4 @@ "main": "lib/sanityClient.js", | ||
"browserify": "NODE_ENV=production DEBUG='' browserify -t envify -g uglifyify lib/sanityClient.js -o umd/sanityClient.js --standalone=SanityClient", | ||
"build": "npm run clean && npm run compile && npm run browserify && npm run minify", | ||
"build": "npm run clean && npm run compile && npm run browserify && npm run minify && npm run size", | ||
"size": "node -r babel-register src/scripts/print-bundle-size", | ||
"watch": "npm run compile -- --watch", | ||
@@ -34,9 +35,12 @@ "clean": "rimraf lib coverage .nyc_output umd/*.js", | ||
"babel-register": "^6.14.0", | ||
"boxen": "^0.8.1", | ||
"browserify": "^13.1.0", | ||
"chalk": "^1.1.3", | ||
"envify": "^3.4.1", | ||
"eslint": "^3.6.1", | ||
"eslint-config-sanity": "^1.1.3", | ||
"faucet": "0.0.1", | ||
"gzip-size": "^3.0.0", | ||
"nock": "^8.0.0", | ||
"nyc": "^6.4.0", | ||
"pretty-bytes": "^4.0.2", | ||
"rimraf": "^2.5.4", | ||
@@ -43,0 +47,0 @@ "tape": "^4.6.2", |
@@ -51,3 +51,2 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.SanityClient = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
function forEach(r,t,o){if(!isFunction(t))throw new TypeError("iterator must be a function");arguments.length<3&&(o=this),"[object Array]"===toString.call(r)?forEachArray(r,t,o):"string"==typeof r?forEachString(r,t,o):forEachObject(r,t,o)}function forEachArray(r,t,o){for(var n=0,a=r.length;n<a;n++)hasOwnProperty.call(r,n)&&t.call(o,r[n],n,r)}function forEachString(r,t,o){for(var n=0,a=r.length;n<a;n++)t.call(o,r.charAt(n),n,r)}function forEachObject(r,t,o){for(var n in r)hasOwnProperty.call(r,n)&&t.call(o,r[n],n,r)}var isFunction=require("is-function");module.exports=forEach;var toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty; | ||
},{"is-function":21}],20:[function(require,module,exports){ | ||
@@ -59,2 +58,3 @@ (function (global){ | ||
function isFunction(o){var t=toString.call(o);return"[object Function]"===t||"function"==typeof o&&"[object RegExp]"!==t||"undefined"!=typeof window&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}module.exports=isFunction;var toString=Object.prototype.toString; | ||
},{}],22:[function(require,module,exports){ | ||
@@ -64,5 +64,5 @@ "use strict";module.exports=function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}; | ||
var trim=require("trim"),forEach=require("for-each"),isArray=function(r){return"[object Array]"===Object.prototype.toString.call(r)};module.exports=function(r){if(!r)return{};var e={};return forEach(trim(r).split("\n"),function(r){var t=r.indexOf(":"),i=trim(r.slice(0,t)).toLowerCase(),o=trim(r.slice(t+1));"undefined"==typeof e[i]?e[i]=o:isArray(e[i])?e[i].push(o):e[i]=[e[i],o]}),e}; | ||
},{"for-each":19,"trim":24}],24:[function(require,module,exports){ | ||
function trim(r){return r.replace(/^\s*|\s*$/g,"")}exports=module.exports=trim,exports.left=function(r){return r.replace(/^\s*/,"")},exports.right=function(r){return r.replace(/\s*$/,"")}; | ||
},{}],25:[function(require,module,exports){ | ||
@@ -69,0 +69,0 @@ function extend(){for(var r={},e=0;e<arguments.length;e++){var t=arguments[e];for(var n in t)hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty; |
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
319354
44
1725
18
8