@sanity/client
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -32,3 +32,3 @@ 'use strict'; | ||
exports.validateDocumentId = function (op, id) { | ||
if (typeof id !== 'string' || !/^[-_a-z0-9]{1,128}\/[-_a-z0-9\/]+$/i.test(id)) { | ||
if (typeof id !== 'string' || !/^[-_a-z0-9]{1,128}\/[-_a-z0-9/]+$/i.test(id)) { | ||
throw new Error(op + '() takes a document ID in format dataset/docId'); | ||
@@ -35,0 +35,0 @@ } |
{ | ||
"name": "@sanity/client", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Client for retrieving data from Sanity", | ||
@@ -39,3 +39,3 @@ "main": "lib/sanityClient.js", | ||
"envify": "^3.4.1", | ||
"eslint": "^3.6.1", | ||
"eslint": "^3.9.0", | ||
"eslint-config-sanity": "^1.1.3", | ||
@@ -42,0 +42,0 @@ "gzip-size": "^3.0.0", |
@@ -19,3 +19,3 @@ // (Node 4 compat) | ||
const fixture = name => path.join(__dirname, 'fixtures', name) | ||
const skipTestOnCI = process.env.CI ? test.skip : test | ||
const skipTestOnCI = process.env.CI ? test.skip : test // eslint-disable-line no-process-env | ||
@@ -22,0 +22,0 @@ /***************** |
@@ -63,3 +63,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":26}],25:[function(require,module,exports){ | ||
@@ -79,2 +78,3 @@ (function (global){ | ||
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*$/,"")}; | ||
},{}],30:[function(require,module,exports){ | ||
@@ -81,0 +81,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; |
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
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
354990
50
1923