Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

datocms-client

Package Overview
Dependencies
Maintainers
1
Versions
225
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datocms-client - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

3

dist/datocms-client.noshim.min.js

@@ -16,2 +16,3 @@ (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.DatoCmsClient = 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){

var charMap={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"h","ώ":"w","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"H","Ώ":"W","Ϊ":"I","Ϋ":"Y","ş":"s","Ş":"S","ı":"i","İ":"I","ç":"c","Ç":"C","ü":"u","Ü":"U","ö":"o","Ö":"O","ğ":"g","Ğ":"G","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z","€":"euro","₢":"cruzeiro","₣":"french franc","£":"pound","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","¢":"cent","¥":"yen","元":"yuan","円":"yen","﷼":"rial","₠":"ecu","¤":"currency","฿":"baht",$:"dollar","©":"(c)","œ":"oe","Œ":"OE","∑":"sum","®":"(r)","†":"+","“":'"',"”":'"',"‘":"'","’":"'","∂":"d","ƒ":"f","™":"tm","℠":"sm","…":"...","˚":"o","º":"o","ª":"a","•":"*","∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less",">":"greater"};exports=module.exports=function(e,a){a=a||"-";for(var r="",o=0;o<e.length;o++){var n=e[o];charMap[n]&&(n=charMap[n]),n=n.replace(/[^\w\s$\*\_\+~\.\(\)\'\"\!\-:@]/g,""),r+=n}return r=r.replace(/^\s+|\s+$/g,""),r=r.replace(/[-\s]+/g,a),r.replace("#{replacement}$",""),r};
},{}],8:[function(require,module,exports){

@@ -50,3 +51,3 @@ "use strict";module.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})};

},{"./Image":17}],19:[function(require,module,exports){
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(exports,"__esModule",{value:!0}),require("isomorphic-fetch"),require("babel-polyfill");var _Session=require("./Session"),_Session2=_interopRequireDefault(_Session),_ItemsRepo=require("./ItemsRepo"),_ItemsRepo2=_interopRequireDefault(_ItemsRepo),_request=require("./request"),defaultOptions={apiBaseUrl:"http://site-api.datocms.com"};exports["default"]={readOnlySession:function(e){var t=Object.assign({},defaultOptions,e),s=t.apiBaseUrl,i=t.domain,r=t.token;return Promise.resolve(new _Session2["default"](s,i,r))},authenticatedSession:function(e){var t=Object.assign({},defaultOptions,e),s=t.apiBaseUrl,i=t.email,r=t.password,o=t.domain,a={data:{type:"email_credentials",attributes:{email:i,password:r}}},n={"X-Site-Domain":o};return(0,_request.post)(s+"/sessions",a,{headers:n}).then(function(e){var t=e.data.id;return new _Session2["default"](s,o,t)})},ItemsRepo:_ItemsRepo2["default"]},module.exports=exports["default"];
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(exports,"__esModule",{value:!0}),require("isomorphic-fetch"),require("babel-polyfill");var _Session=require("./Session"),_Session2=_interopRequireDefault(_Session),_ItemsRepo=require("./ItemsRepo"),_ItemsRepo2=_interopRequireDefault(_ItemsRepo),_request=require("./request"),defaultOptions={apiBaseUrl:"https://site-api.datocms.com"};exports["default"]={readOnlySession:function(e){var t=Object.assign({},defaultOptions,e),s=t.apiBaseUrl,i=t.domain,r=t.token;return Promise.resolve(new _Session2["default"](s,i,r))},authenticatedSession:function(e){var t=Object.assign({},defaultOptions,e),s=t.apiBaseUrl,i=t.email,r=t.password,o=t.domain,a={data:{type:"email_credentials",attributes:{email:i,password:r}}},n={"X-Site-Domain":o};return(0,_request.post)(s+"/sessions",a,{headers:n}).then(function(e){var t=e.data.id;return new _Session2["default"](s,o,t)})},ItemsRepo:_ItemsRepo2["default"]},module.exports=exports["default"];

@@ -53,0 +54,0 @@ },{"./ItemsRepo":14,"./Session":15,"./request":20,"babel-polyfill":1,"isomorphic-fetch":3}],20:[function(require,module,exports){

@@ -24,3 +24,3 @@ 'use strict';

var defaultOptions = {
apiBaseUrl: 'http://site-api.datocms.com'
apiBaseUrl: 'https://site-api.datocms.com'
};

@@ -27,0 +27,0 @@

{
"name": "datocms-client",
"version": "0.1.2",
"version": "0.1.3",
"description": "DatoCMS API client",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc