New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

contensis-delivery-api

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contensis-delivery-api - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

bundle-es2015/client/client-config.d.ts

0

bundle/zengenti.contensis-client.d.ts

@@ -0,0 +0,0 @@ declare type ExpressionValueType = 'single' | 'array' | 'unknown';

var Zengenti=Zengenti||{};Zengenti.Contensis=function(e){function __webpack_require__(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}var t={};return __webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,r){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="/bundle/",__webpack_require__(__webpack_require__.s=4)}([function(e,t,r){"use strict";function hasProp(e,t){return!!e&&void 0!==e[t]}function toQuery(e){var t=Object.keys(e).filter(function(t){return t&&null!==e[t]&&""!==e[t]});t.sort();var r=t.map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])});return r.length>0?"?"+r.join("&"):""}r.d(t,"a",function(){return s});var n=r(1),i=r(2),s=(r.n(i),function(){function UrlBuilder(e,t){this.url=e,this.query=t,this.paramMatcher=/(:\b\D\w*)/g,this.mappers={}}return UrlBuilder.create=function(e,t){return void 0===t&&(t=null),new UrlBuilder(e,t)},UrlBuilder.prototype.setOptions=function(e,t){void 0===t&&(t=null);var r;return this.options="string"==typeof e?(r={},r[t]=e,r):e,this},UrlBuilder.prototype.setParams=function(e){return this.clientParams=e,this},UrlBuilder.prototype.addMappers=function(e){var t=this;return e&&Object.keys(e).forEach(function(r){t.mappers[r]=e[r]}),this},UrlBuilder.prototype.toUrl=function(){var e=this,t={},r="function"==typeof this.url?this.url(this.options,this.clientParams):this.url,i=r.match(this.paramMatcher);i&&i.forEach(function(r){var n=r.substring(1),i=hasProp(e.options,n)?e.options[n]:hasProp(e.clientParams,n)?e.clientParams[n]:null;t[r]=e.mappers[n]?e.mappers[n](i,e.options,e.clientParams):i});var s={};return this.query&&(s=n.a({},this.query),Object.keys(this.query).forEach(function(t){var r=hasProp(e.options,t)?e.options[t]:hasProp(e.clientParams,t)?e.clientParams[t]:s[t];s[t]=e.mappers[t]?e.mappers[t](r,e.options,e.clientParams):r})),""+Object.keys(t).reduce(function(e,r){return e.replace(r,t[r])},r)+toQuery(s)},UrlBuilder}())},function(e,t,r){"use strict";function __extends(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}t.b=__extends,r.d(t,"a",function(){return i});var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},i.apply(this,arguments)}},function(e,t){Object.keys||(Object.keys=function(e){if(!e)return[];var t=Object.prototype.hasOwnProperty,r=[];for(var n in e)t.call(e,n)&&r.push(n);return r}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Array.prototype.forEach||(Array.prototype.forEach=function(e){for(var t=this,r=t.length,n=0;n<r;n++)e(t[n],n,t)}),Array.prototype.map||(Array.prototype.map=function(e){for(var t=this,r=t.length,n=new Array(r),i=0;i<r;i++)n[i]=e(t[i],i,t);return n}),Array.prototype.filter||(Array.prototype.filter=function(e){for(var t=this,r=t.length,n=[],i=0;i<r;i++)e(t[i],i,t)&&n.push(t[i]);return n}),Array.prototype.reduce||(Array.prototype.reduce=function(e,t){var r=this,n=r.length,i=0;if(arguments.length<2){if(!(r.length>0))return null;t=r[0],i=1}for(var s=t,o=i;o<n;o++)s=e(s,r[o],o,r);return s})},function(e,t,r){"use strict";function toOrderBy(e){var t;if(!e)return null;var r=e.substr(0,1);if("+"===r||"-"===r){var n="-"===r?"desc":"asc";return t={},t[n]=e.substring(1),t}return{asc:e}}function serializeOrder(e){if(!e)return[];var t;return"string"==typeof e?(t=toOrderBy(e),t?[t]:[]):Array.isArray(e)?e.map(toOrderBy).filter(function(e){return!!e}):e.toArray?e.toArray():null}r.d(t,"a",function(){return C}),r.d(t,"b",function(){return j}),r.d(t,"c",function(){return k});var n=r(1),i=r(2),s=(r.n(i),{Single:"single",Array:"array",Unknown:"unknown"}),o={And:"and",Between:"between",Contains:"contains",EndsWith:"endsWith",EqualTo:"equalTo",Exists:"exists",FreeText:"freeText",GreaterThan:"greaterThan",GreaterThanOrEqualTo:"greaterThanOrEqualTo",In:"in",LessThan:"lessThan",LessThanOrEqualTo:"lessThanOrEqualTo",Not:"not",Or:"or",StartsWith:"startsWith",Where:"where"},a=function(){function ExpressionBase(e,t,r,n){void 0===t&&(t=[]),this.fieldName=e,this.values=t,this.operatorName=r,this.valueType=n,this._weight=0}return ExpressionBase.prototype.addValue=function(e){return this.values[this.values.length]=e,this},ExpressionBase.prototype.weight=function(e){return this._weight=e,this},ExpressionBase.prototype.toJSON=function(){var e={};return this.fieldName&&(e.field=this.fieldName),this.valueType===s.Single?e[this.operatorName]=this.values[0]:this.valueType===s.Array?e[this.operatorName]=this.values:this.values&&1===this.values.length?e[this.operatorName]=this.values[0]:e[this.operatorName]=this.values,this._weight&&this._weight>1&&(e.weight=this._weight),e},ExpressionBase}(),u=function(e){function LogicalExpression(t,r,n){return void 0===t&&(t=[]),e.call(this,null,t,r,s.Array)||this}return n.b(LogicalExpression,e),LogicalExpression.prototype.getItem=function(e){return this.values[e]},LogicalExpression.prototype.setItem=function(e,t){return this.values[e]=t,this},LogicalExpression.prototype.add=function(e){return this.values[this.values.length]=e,this},LogicalExpression.prototype.addRange=function(e){return Array.prototype.push.apply(this.values,e),this},LogicalExpression.prototype.indexOf=function(e){return this.values.indexOf(e)},LogicalExpression.prototype.insert=function(e,t){return this.values.splice(e,0,t),this},LogicalExpression.prototype.remove=function(e){var t=this.indexOf(e);return t>=0&&(this.removeAt(t),!0)},LogicalExpression.prototype.removeAt=function(e){return this.values.splice(e,1),this},LogicalExpression.prototype.clear=function(){return this.values.length=0,this},LogicalExpression.prototype.contains=function(e){return this.indexOf(e)>=0},LogicalExpression.prototype.count=function(){return this.values.length},LogicalExpression}(a),l=function(e){function AndExpression(t){return e.call(this,t,o.And,s.Array)||this}return n.b(AndExpression,e),AndExpression}(u),p=function(e){function BetweenExpression(t,r,n){return e.call(this,t,[r,n],o.Between,s.Array)||this}return n.b(BetweenExpression,e),BetweenExpression}(a),c=function(e){function NotExpression(t){return e.call(this,[t],o.Not,s.Single)||this}return n.b(NotExpression,e),NotExpression}(u),h=function(e){function OrExpression(t){return e.call(this,t,o.Or,s.Array)||this}return n.b(OrExpression,e),OrExpression}(u),f=function(e){function ContainsExpression(t,r){return e.call(this,t,[r],o.Contains,s.Single)||this}return n.b(ContainsExpression,e),ContainsExpression}(a),y=function(e){function EndsWithExpression(t,r){return e.call(this,t,[r],o.EndsWith,s.Single)||this}return n.b(EndsWithExpression,e),EndsWithExpression}(a),d=function(e){function EqualToExpression(t,r){return e.call(this,t,[r],o.EqualTo,s.Single)||this}return n.b(EqualToExpression,e),EqualToExpression}(a),v=function(e){function ExistsExpression(t,r){return e.call(this,t,[r],o.Exists,s.Single)||this}return n.b(ExistsExpression,e),ExistsExpression}(a),g=function(e){function FreeTextExpression(t,r){return e.call(this,t,[r],o.FreeText,s.Single)||this}return n.b(FreeTextExpression,e),FreeTextExpression}(a),E=function(e){function GreaterThanExpression(t,r){return e.call(this,t,[r],o.GreaterThan,s.Single)||this}return n.b(GreaterThanExpression,e),GreaterThanExpression}(a),m=function(e){function GreaterThanOrEqualToExpression(t,r){return e.call(this,t,[r],o.GreaterThanOrEqualTo,s.Single)||this}return n.b(GreaterThanOrEqualToExpression,e),GreaterThanOrEqualToExpression}(a),O=function(e){function LessThanExpression(t,r){return e.call(this,t,[r],o.LessThan,s.Single)||this}return n.b(LessThanExpression,e),LessThanExpression}(a),x=function(e){function InExpression(t,r){return e.call(this,t,r,o.In,s.Array)||this}return n.b(InExpression,e),InExpression}(a),_=function(e){function LessThanOrEqualToExpression(t,r){return e.call(this,t,[r],o.LessThanOrEqualTo,s.Single)||this}return n.b(LessThanOrEqualToExpression,e),LessThanOrEqualToExpression}(a),T=function(e){function StartsWithExpression(t,r){return e.call(this,t,[r],o.StartsWith,s.Single)||this}return n.b(StartsWithExpression,e),StartsWithExpression}(a),P=function(e){function WhereExpression(t){return void 0===t&&(t=[]),e.call(this,t,o.Where,s.Array)||this}return n.b(WhereExpression,e),WhereExpression.prototype.toJSON=function(){return e.prototype.toJSON.call(this)[o.Where]},WhereExpression}(u),w=function(){function Operators(){}return Operators.prototype.and=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new l(e)},Operators.prototype.between=function(e,t,r){return new p(e,t,r)},Operators.prototype.not=function(e){return new c(e)},Operators.prototype.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new h(e)},Operators.prototype.contains=function(e,t){return new f(e,t)},Operators.prototype.endsWith=function(e,t){return new y(e,t)},Operators.prototype.equalTo=function(e,t){return new d(e,t)},Operators.prototype.exists=function(e,t){return new v(e,t)},Operators.prototype.freeText=function(e,t){return new g(e,t)},Operators.prototype.greaterThan=function(e,t){return new E(e,t)},Operators.prototype.greaterThanOrEqualTo=function(e,t){return new m(e,t)},Operators.prototype.lessThan=function(e,t){return new O(e,t)},Operators.prototype.lessThanOrEqualTo=function(e,t){return new _(e,t)},Operators.prototype.startsWith=function(e,t){return new T(e,t)},Operators.prototype.in=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new x(e,t)},Operators}(),C=new w,b=function(){function Ordering(){this._items=[]}return Ordering.prototype.asc=function(e){return this._items.push({asc:e}),this},Ordering.prototype.desc=function(e){return this._items.push({desc:e}),this},Ordering.prototype.toArray=function(){return this._items},Ordering}(),S=function(){function OrderByFactory(){}return OrderByFactory.prototype.asc=function(e){return(new b).asc(e)},OrderByFactory.prototype.desc=function(e){return(new b).desc(e)},OrderByFactory}(),j=new S,k=function(){function Query(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.where=new P,this.orderBy=[],this.pageIndex=0,this.pageSize=20,this.fields=[],e&&this.where.addRange(e)}return Query.prototype.toJSON=function(){var e={};e.pageIndex=this.pageIndex,e.pageSize=this.pageSize;var t=serializeOrder(this.orderBy);return t&&t.length>0&&(e.orderBy=t),e.where=this.where,this.fields&&this.fields.length>0&&(e.fields=this.fields),e},Query}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3);r.d(t,"Query",function(){return n.c}),r.d(t,"Op",function(){return n.a}),r.d(t,"OrderBy",function(){return n.b});var i=r(5);r.d(t,"Client",function(){return i.a})},function(e,t,r){"use strict";r.d(t,"a",function(){return l});var n=r(6),i=r(8),s=r(9),o=r(10),a=r(11),u=r(12),l=function(){function Client(e){void 0===e&&(e=null),this.clientConfig=null,this.clientConfig=new a.a(e,Client.defaultClientConfig),this.httpClient=new u.a(this),this.entries=new n.a(this.httpClient,this),this.project=new s.a(this.httpClient,this),this.contentTypes=new i.a(this.httpClient,this),this.taxonomy=new o.a(this.httpClient,this)}return Client.create=function(e){return void 0===e&&(e=null),new Client(e)},Client.configure=function(e){Client.defaultClientConfig=new a.a(e,Client.defaultClientConfig)},Client.prototype.getParams=function(){return this.clientConfig.toParams()},Client.defaultClientConfig=null,Client}()},function(e,t,r){"use strict";r.d(t,"a",function(){return p});var n=r(7),i=r(0),s=r(2),o=(r.n(s),{fields:function(e){return e&&e.length>0?e:null},linkDepth:function(e){return e&&e>0?e:null},versionStatus:function(e){return"published"===e?null:e}}),a=function(e,t){return e.contentTypeId?"/api/delivery/projects/:projectId/contentTypes/:contentTypeId/entries":"/api/delivery/projects/:projectId/entries"},u={fields:function(e){return e&&e.length>0?e:null},linkDepth:function(e){return e&&e>0?e:null},order:function(e){return e&&e.length>0?e:null},pageIndex:function(e,t,r){return t&&t.pageOptions&&t.pageOptions.pageIndex||r.pageIndex},pageSize:function(e,t,r){return t&&t.pageOptions&&t.pageOptions.pageSize||r.pageSize},versionStatus:function(e){return"published"===e?null:e}},l={linkDepth:function(e){return e&&e>0?e:null}},p=function(){function EntryOperations(e,t){this.httpClient=e,this.paramsProvider=t}return EntryOperations.prototype.get=function(e){var t=i.a.create("/api/delivery/projects/:projectId/entries/:id",{language:null,versionStatus:null,linkDepth:null,fields:null}).setOptions(e,"id").setParams(this.paramsProvider.getParams()).addMappers(o).toUrl();return this.httpClient.request(t)},EntryOperations.prototype.list=function(e){var t=i.a.create(a,{language:null,versionStatus:null,linkDepth:null,order:null,fields:null,pageIndex:null,pageSize:null}).setOptions(e,"contentTypeId").setParams(this.paramsProvider.getParams()).addMappers(u).toUrl();return this.httpClient.request(t)},EntryOperations.prototype.search=function(e,t){if(void 0===t&&(t=0),!e)return new Promise(function(e){e(null)});var r=this.paramsProvider.getParams();e.pageSize=e.pageSize||r.pageSize,e.pageIndex=e.pageIndex||0;var n=i.a.create("/api/delivery/projects/:projectId/entries/search",{linkDepth:t}).setParams(this.paramsProvider.getParams()).addMappers(l).toUrl();return this.httpClient.request(n,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(e)})},EntryOperations.prototype.resolve=function(e,t){var r=this;void 0===t&&(t=null);var i=this.paramsProvider.getParams();return new n.a(e,t,i.versionStatus,function(e){return r.search(e)}).resolve()},EntryOperations}()},function(e,t,r){"use strict";function isUnresolvedEntry(e){if(e&&e.sys&&e.sys.id){return 1===Object.keys(e).length}return!1}function isUnresolvedImage(e){if(e&&e.asset){return Object.keys(e).length<=2&&isUnresolvedEntry(e.asset)}return!1}function isComposer(e){return!!(Array.isArray(e)&&e.length>0)&&isComposerItem(e[0])}function isComposerItem(e){if(e&&e.type&&e.value){return 2===Object.keys(e).length}return!1}r.d(t,"a",function(){return a});var n=r(3),i=function(){function DeferredEntry(e,t){var r=this;this.sys=e,this.versionStatus=t,this.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),this.expression=n.a.and(n.a.equalTo("sys.id",e.id),n.a.equalTo("sys.language",e.language),n.a.equalTo("sys.versionStatus",this.versionStatus))}return DeferredEntry.prototype.is=function(e){return!!(e&&e.id&&e.language&&e.id===this.sys.id&&e.language===this.sys.language)},DeferredEntry}(),s=function(){function ListResolver(e,t,r,n){this.entries=e,this.paths=t,this.versionStatus=r,this.search=n,this.deferredEntries=[]}return ListResolver.prototype.resolve=function(){var e=this;this.deferredEntries=[];var t=this.entries.map(function(t){return new o(t,e.paths,function(t,r){return e.getEntry(t,r)}).resolve()});return this.nestedSearch(),Promise.all(t).then(function(t){return e.entries})},ListResolver.prototype.getEntry=function(e,t){var r=new i({id:e,language:t},this.versionStatus);return this.deferredEntries.push(r),r.promise},ListResolver.prototype.nestedSearch=function(){var e=this,t=this.deferredEntries.map(function(e){return e.expression}),r=new n.c(n.a.or.apply(n.a,t));return r.pageIndex=0,r.pageSize=t.length,this.search(r).then(function(t){var r=e.deferredEntries;e.deferredEntries=[];for(var n=[],i=0,s=t.items;i<s.length;i++){var o=s[i];!function(e){for(var t=r.filter(function(t){return t.is(e.sys)}),i=0,s=t;i<s.length;i++){var o=s[i];o.resolve(e),n.push(o.promise)}}(o)}return Promise.all(n).then(function(){return Promise.resolve(t)})}).then(function(t){return e.deferredEntries.length>0?e.nestedSearch():t})},ListResolver}(),o=function(){function EntryResolver(e,t,r){this.entry=e,this.paths=t,this.getEntry=r}return EntryResolver.prototype.resolve=function(){var e=this,t=this.paths||Object.keys(this.entry),r=t.map(function(t){var r=t.split("."),n=r.shift(),i=null,s=e.entry[n];if(s&&!(i=e.resolveField(s))&&isComposer(s)){var o=r.length>0?r.shift():null;i=e.resolveComposerField(s,o)}return i=i?i.then(function(t){return e.entry[n]=t.value,t}):Promise.resolve(null),i.then(function(t){return e.next(t,r.join("."))})});return Promise.all(r).then(function(t){return e.entry})},EntryResolver.prototype.next=function(e,t){var r=this;if(!t||!e||!e.entries||e.entries.length<=0)return Promise.resolve(e);var n=e.entries.map(function(e){return new EntryResolver(e,[t],function(e,t){return r.getEntry(e,t)}).resolve()});return Promise.all(n)},EntryResolver.prototype.resolveField=function(e){var t=this;if(isUnresolvedEntry(e))return this.resolveEntry(e);if(isUnresolvedImage(e))return this.resolveImage(e);if(Array.isArray(e)){var r=!1,n=e.map(function(e){return isUnresolvedEntry(e)?(r=!0,t.resolveEntry(e)):isUnresolvedImage(e)?(r=!0,t.resolveImage(e)):Promise.resolve({entries:[],value:e})});if(r)return Promise.all(n).then(function(e){for(var t=[],r=[],n=0,i=e;n<i.length;n++){var s=i[n];t.push(s.value),r=r.concat(s.entries)}return{entries:r,value:t}})}return null},EntryResolver.prototype.resolveComposerField=function(e,t){var r=this;if(Array.isArray(e)){var n=!1,i=e.map(function(e){if(isComposerItem(e)&&(!t||t===e.type)){var i=r.resolveField(e.value);if(i)return n=!0,i.then(function(t){return e.value=t,e})}return Promise.resolve({entries:[],value:e})});if(n)return Promise.all(i).then(function(e){for(var t=[],r=[],n=0,i=e;n<i.length;n++){var s=i[n];t.push(s.value),r=r.concat(s.entries)}return{entries:r,value:t}})}return null},EntryResolver.prototype.resolveEntry=function(e){if(e&&e.sys&&e.sys.id){var t=e.sys.language||this.entry.sys.language;return this.getEntry(e.sys.id,t).then(function(e){return{entries:[e],value:e}})}return Promise.resolve({entries:[],value:e})},EntryResolver.prototype.resolveImage=function(e){if(e&&e.asset&&e.asset.sys&&e.asset.sys.id){var t=e.asset.sys.language||this.entry.sys.language;return this.getEntry(e.asset.sys.id,t).then(function(t){return e.asset=t,{entries:[t],value:e}})}return Promise.resolve({entries:[],value:e})},EntryResolver}(),a=function(){function LinkResolver(e,t,r,n){this.entryOrList=e,this.paths=t,this.versionStatus=r,this.search=n}return LinkResolver.prototype.resolve=function(){var e=this,t=this.getEntries(),r=Promise.resolve([]);if(t.length>0){r=new s(t,this.paths,this.versionStatus,this.search).resolve()}return r.then(function(){return e.entryOrList})},LinkResolver.prototype.getEntries=function(){var e=this.entryOrList;return e?Array.isArray(e)?e:e.items&&Array.isArray(e.items)?e.items:[e]:[]},LinkResolver}()},function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r(0),i=function(){function ContentTypeOperations(e,t){this.httpClient=e,this.paramsProvider=t}return ContentTypeOperations.prototype.get=function(e){var t=n.a.create("/api/delivery/projects/:projectId/contentTypes/:contentTypeId").setOptions(e,"contentTypeId").setParams(this.paramsProvider.getParams()).toUrl();return this.httpClient.request(t)},ContentTypeOperations}()},function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r(0),i=function(){function ProjectOperations(e,t){this.httpClient=e,this.paramsProvider=t}return ProjectOperations.prototype.get=function(){var e=n.a.create("/api/delivery/projects/:projectId").setParams(this.paramsProvider.getParams()).toUrl();return this.httpClient.request(e)},ProjectOperations}()},function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(1),i=r(0),s={order:function(e){return"alphabetical"===e?e:null}},o=function(){function TaxonomyOperations(e,t){this.httpClient=e,this.paramsProvider=t}return TaxonomyOperations.prototype.getNodeByKey=function(e){var t=i.a.create("/api/delivery/projects/:projectId/taxonomy/nodes/:key",{order:null,childDepth:null,language:null}).setOptions(e,"key").setParams(this.paramsProvider.getParams()).addMappers(s).toUrl();return this.httpClient.request(t)},TaxonomyOperations.prototype.getNodeByPath=function(e){var t=i.a.create("/api/delivery/projects/:projectId/taxonomy/nodes",{order:null,childDepth:null,language:null,path:null}).setOptions(e,"path").setParams(this.paramsProvider.getParams()).addMappers(s).toUrl();return this.httpClient.request(t)},TaxonomyOperations.prototype.resolveChildren=function(e){var t=e,r=null,i={childDepth:1};return t.node?(r=t.node,i={childDepth:t.childDepth||1,order:t.order,language:t.language}):t.key?e.path?r=e:(r=t.key,i={childDepth:t.childDepth||1,order:t.order,language:t.language}):r=e,"string"==typeof r?this.getNodeByKey(n.a({},i,{key:r})):r.hasChildren?r.children&&r.children.length>0?Promise.resolve(n.a({},r)):this.getNodeByKey(n.a({},i,{key:r.key})):Promise.resolve(n.a({},r,{children:[]}))},TaxonomyOperations}()},function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(){function ClientConfig(e,t){for(this.currentConfig=e,this.previousConfig=t,this.rootUrl=null,this.accessToken=null,this.projectId=null,this.language="en-GB",this.versionStatus="published",this.pageSize=25,this.rootUrl=this.getValue(function(e){return e.rootUrl}),this.accessToken=this.getValue(function(e){return e.accessToken}),this.projectId=this.getValue(function(e){return e.projectId}),this.language=this.getValue(function(e){return e.language}),this.versionStatus=this.getValue(function(e){return e.versionStatus}),this.pageSize=this.getValue(function(e){return e.pageSize});this.rootUrl&&"/"===this.rootUrl.substr(this.rootUrl.length-1,1);)this.rootUrl=this.rootUrl.substr(0,this.rootUrl.length-1)}return ClientConfig.prototype.toParams=function(){return{rootUrl:this.rootUrl,accessToken:this.accessToken,language:this.language,versionStatus:this.versionStatus,projectId:this.projectId,pageIndex:0,pageSize:this.pageSize}},ClientConfig.prototype.getValue=function(e){var t=null;return this.currentConfig&&(t=e(this.currentConfig)),this.previousConfig&&!t&&(t=e(this.previousConfig)),t||e(this)},ClientConfig}()},function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(){function HttpClient(e){this.paramsProvider=e}return HttpClient.prototype.request=function(e,t){void 0===t&&(t={});var r=this.paramsProvider.getParams();t.method=t.method||(t.body?"POST":"GET"),t.mode="cors",t.headers=t.headers||{};var n=t.headers;return n.accessToken||(n.accessToken=r.accessToken),fetch(""+r.rootUrl+e,t).then(function(e){return e.json()}).then(function(e){return e})},HttpClient}()}]);
//# sourceMappingURL=zengenti.contensis-client.js.map

@@ -7,2 +7,7 @@ # Changelog

## [1.0.4] - 2019-03-26
### Changed
- upgraded packages that had vulnerabilities.
- upgraded package lock file.
## [1.0.2] - 2019-03-15

@@ -9,0 +14,0 @@ ### Changed

23

package.json
{
"name": "contensis-delivery-api",
"version": "1.0.3",
"version": "1.0.4",
"description": "Contensis Javascript Delivery API",

@@ -32,12 +32,12 @@ "engines": {

"devDependencies": {
"@types/jasmine": "^2.8.16",
"@types/jasmine": "^3.3.12",
"copy-webpack-plugin": "^4.6.0",
"istanbul-instrumenter-loader": "^2.0.0",
"jasmine-core": "^2.6.4",
"karma": "^2.0.5",
"istanbul-instrumenter-loader": "^3.0.1",
"jasmine-core": "^3.3.0",
"karma": "^4.0.1",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.1",
"karma-jasmine": "^1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"karma-mocha-reporter": "^2.2.3",
"karma-coverage": "^1.1.2",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"karma-mocha-reporter": "^2.2.5",
"karma-sourcemap-loader": "^0.3.7",

@@ -47,4 +47,3 @@ "karma-webpack": "^3.0.5",

"ts-loader": "^3.5.0",
"tslint": "^5.12.1",
"tslint-stylish": "^2.1.0",
"tslint": "^5.14.0",
"typescript": "3.3.1",

@@ -54,3 +53,3 @@ "webpack": "3.12.0"

"dependencies": {
"es6-promise": "^4.2.5",
"es6-promise": "^4.2.6",
"tslib": "^1.9.3",

@@ -57,0 +56,0 @@ "whatwg-fetch": "^3.0.0"

Sorry, the diff of this file is not supported yet

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