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

@node-wot/td-tools

Package Overview
Dependencies
Maintainers
4
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-wot/td-tools - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2-SNAPSHOT.1

10

dist/dist/thing-description.d.ts
import * as WoT from "wot-typescript-definitions";
export declare const DEFAULT_CONTEXT: string;
export declare const DEFAULT_CONTEXT_LANGUAGE: string;
export declare const DEFAULT_THING_TYPE: string;
export declare class Versioning implements WoT.Versioning {
export declare class VersionInfo implements WoT.VersionInfo {
instance: string;

@@ -9,5 +10,10 @@ }

id: string;
name: string;
title: string;
titles: WoT.MultiLanguage;
description: string;
descriptions: WoT.MultiLanguage;
support: string;
modified: string;
created: string;
version: VersionInfo;
securityDefinitions: {

@@ -14,0 +20,0 @@ [key: string]: WoT.Security;

2

dist/node-wot-td-tools.bundle.js

@@ -1,1 +0,1 @@

var TDTools=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=14)}([function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_CONTEXT="http://www.w3.org/ns/td",e.DEFAULT_THING_TYPE="Thing";var o=function(){return function(){}}();e.Versioning=o;var s=function(){return function(){this["@context"]=e.DEFAULT_CONTEXT,this["@type"]=e.DEFAULT_THING_TYPE,this.security=[],this.properties={},this.actions={},this.events={},this.links=[]}}();e.default=s;var i=function(){return function(){}}();e.ThingInteraction=i;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(i);e.ThingProperty=a;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(i);e.ThingAction=u;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(i);e.ThingEvent=h;var l=function(){return function(){}}();e.Security=l;var p=function(){return function(){}}();e.ExpectedResponse=p;var c=function(){return function(t,e){this.href=t,e&&(this.contentType=e)}}();e.Form=c},function(t,e,r){"use strict";function n(t){var e=JSON.parse(t);return console.log("NO TD MODIFICATIONS DONE YET!!!!!"),e}function o(t){var e=JSON.parse(t);if(null!=e.base&&(e.uris=[],e.uris.push(e.base),delete e.base),null!=e.interactions&&Array.isArray(e.interactions)){for(var r=0,n=e.interactions;r<n.length;r++){var o=n[r];null!=o["@type"]&&Array.isArray(o["@type"])&&(o["@type"].indexOf("Property")>=0&&(null==e.properties&&(e.properties=[]),e.properties.push(o),null!=o.outputData&&null!=o.outputData.valueType&&(o.valueType=o.outputData.valueType,delete o.outputData),s(e,o)),o["@type"].indexOf("Action")>=0&&(null==e.actions&&(e.actions=[]),e.actions.push(o),s(e,o)),o["@type"].indexOf("Event")>=0&&(null==e.events&&(e.events=[]),e.events.push(o),null!=o.outputData&&null!=o.outputData.valueType&&(o.valueType=o.outputData.valueType,delete o.outputData),s(e,o)))}delete e.interactions}return e}function s(t,e){if(null!=e.links&&Array.isArray(e.links)){for(var r=0,n=e.links;r<n.length;r++){var o=n[r];null==e.hrefs&&(e.hrefs=[]),e.hrefs.push(o.href),null==t.encodings&&(t.encodings=[]),t.encodings.indexOf(o.mediaType)<0&&t.encodings.push(o.mediaType)}delete e.links}}function i(t){var e=JSON.parse(t);if(null!=e.base&&(e.uris=[],e.uris.push(e.base),delete e.base),null!=e.interaction&&Array.isArray(e.interaction)){for(var r=0,n=e.interaction;r<n.length;r++){var o=n[r];null!=o["@type"]&&Array.isArray(o["@type"])&&(o["@type"].indexOf("Property")>=0&&(null==e.properties&&(e.properties=[]),e.properties.push(o),null!=o.outputData&&(o.valueType=o.outputData,delete o.outputData),a(e,o)),o["@type"].indexOf("Action")>=0&&(null==e.actions&&(e.actions=[]),e.actions.push(o),null!=o.outputData&&null!=o.outputData.type&&(o.outputData.valueType={},o.outputData.valueType.type=o.outputData.type,delete o.outputData.type),null!=o.inputData&&null!=o.inputData.type&&(o.inputData.valueType={},o.inputData.valueType.type=o.inputData.type,delete o.inputData.type),a(e,o)),o["@type"].indexOf("Event")>=0&&(null==e.events&&(e.events=[]),e.events.push(o),null!=o.outputData&&(o.valueType=o.outputData,delete o.outputData),a(e,o)))}delete e.interaction}return e}function a(t,e){if(null!=e.link&&Array.isArray(e.link)){for(var r=0,n=e.link;r<n.length;r++){var o=n[r];null==e.hrefs&&(e.hrefs=[]),e.hrefs.push(o.href),null==t.encodings&&(t.encodings=[]),t.encodings.indexOf(o.mediaType)<0&&t.encodings.push(o.mediaType)}delete e.links}}Object.defineProperty(e,"__esModule",{value:!0}),e.transformTDV1StringToV2String=n,e.transformTDV1ObjToV2Obj=function(t){return n(JSON.stringify(t))},e.transformTDV2StringToV1String=o,e.transformTDV2ObjToV1Obj=function(t){return o(JSON.stringify(t))},e.transformTDV3StringToV1String=i,e.transformTDV3ObjToV1Obj=function(t){return i(JSON.stringify(t))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findProtocol=function(t){var e=t.base,r=e.indexOf(":");return e.substring(0,r)},e.findPort=function(t){var e=t.base,r=e.indexOf(":",6),n=e.indexOf("/",r),o=e.substring(r+1,n);return parseInt(o)}},function(t,e,r){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,a){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?s(i(t),function(i){var a=encodeURIComponent(n(i))+r;return o(t[i])?s(t[i],function(t){return a+encodeURIComponent(n(t))}).join(e):a+encodeURIComponent(n(t[i]))}).join(e):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function s(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var i=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,s){e=e||"&",r=r||"=";var i={};if("string"!=typeof t||0===t.length)return i;var a=/\+/g;t=t.split(e);var u=1e3;s&&"number"==typeof s.maxKeys&&(u=s.maxKeys);var h=t.length;u>0&&h>u&&(h=u);for(var l=0;l<h;++l){var p,c,f,y,v=t[l].replace(a,"%20"),d=v.indexOf(r);d>=0?(p=v.substr(0,d),c=v.substr(d+1)):(p=v,c=""),f=decodeURIComponent(p),y=decodeURIComponent(c),n(i,f)?o(i[f])?i[f].push(y):i[f]=[i[f],y]:i[f]=y}return i};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";e.decode=e.parse=r(4),e.encode=e.stringify=r(3)},function(t,e,r){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){(function(t,n){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(s){"object"==typeof e&&e&&e.nodeType,"object"==typeof t&&t&&t.nodeType;var i="object"==typeof n&&n;i.global!==i&&i.window!==i&&i.self;var a,u=2147483647,h=36,l=1,p=26,c=38,f=700,y=72,v=128,d="-",m=/^xn--/,b=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=h-l,j=Math.floor,x=String.fromCharCode;function D(t){throw new RangeError(O[t])}function A(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function w(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+A((t=t.replace(g,".")).split("."),e).join(".")}function _(t){for(var e,r,n=[],o=0,s=t.length;o<s;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<s?56320==(64512&(r=t.charCodeAt(o++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--):n.push(e);return n}function E(t){return A(t,function(t){var e="";return t>65535&&(e+=x((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=x(t)}).join("")}function P(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:h}function I(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function N(t,e,r){var n=0;for(t=r?j(t/f):t>>1,t+=j(t/e);t>T*p>>1;n+=h)t=j(t/T);return j(n+(T+1)*t/(t+c))}function S(t){var e,r,n,o,s,i,a,c,f,m,b=[],g=t.length,O=0,T=v,x=y;for((r=t.lastIndexOf(d))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&D("not-basic"),b.push(t.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(s=O,i=1,a=h;o>=g&&D("invalid-input"),((c=P(t.charCodeAt(o++)))>=h||c>j((u-O)/i))&&D("overflow"),O+=c*i,!(c<(f=a<=x?l:a>=x+p?p:a-x));a+=h)i>j(u/(m=h-f))&&D("overflow"),i*=m;x=N(O-s,e=b.length+1,0==s),j(O/e)>u-T&&D("overflow"),T+=j(O/e),O%=e,b.splice(O++,0,T)}return E(b)}function C(t){var e,r,n,o,s,i,a,c,f,m,b,g,O,T,A,w=[];for(g=(t=_(t)).length,e=v,r=0,s=y,i=0;i<g;++i)(b=t[i])<128&&w.push(x(b));for(n=o=w.length,o&&w.push(d);n<g;){for(a=u,i=0;i<g;++i)(b=t[i])>=e&&b<a&&(a=b);for(a-e>j((u-r)/(O=n+1))&&D("overflow"),r+=(a-e)*O,e=a,i=0;i<g;++i)if((b=t[i])<e&&++r>u&&D("overflow"),b==e){for(c=r,f=h;!(c<(m=f<=s?l:f>=s+p?p:f-s));f+=h)A=c-m,T=h-m,w.push(x(I(m+A%T,0))),c=j(A/T);w.push(x(I(c,0))),s=N(r,O,n==o),r=0,++n}++r,++e}return w.join("")}a={version:"1.4.1",ucs2:{decode:_,encode:E},decode:S,encode:C,toASCII:function(t){return w(t,function(t){return b.test(t)?"xn--"+C(t):t})},toUnicode:function(t){return w(t,function(t){return m.test(t)?S(t.slice(4).toLowerCase()):t})}},void 0===(o=function(){return a}.call(e,r,e,t))||(t.exports=o)}()}).call(this,r(8)(t),r(7))},function(t,e,r){"use strict";var n=r(9),o=r(6);function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=g,e.resolve=function(t,e){return g(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?g(t,!1,!0).resolveObject(e):e},e.format=function(t){o.isString(t)&&(t=g(t));return t instanceof s?t.format():s.prototype.format.call(t)},e.Url=s;var i=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(h),p=["%","/","?",";","#"].concat(l),c=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},d={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(5);function g(t,e,r){if(t&&o.isObject(t)&&t instanceof s)return t;var n=new s;return n.parse(t,e,r),n}s.prototype.parse=function(t,e,r){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var s=t.indexOf("?"),a=-1!==s&&s<t.indexOf("#")?"?":"#",h=t.split(a);h[0]=h[0].replace(/\\/g,"/");var g=t=h.join(a);if(g=g.trim(),!r&&1===t.split("#").length){var O=u.exec(g);if(O)return this.path=g,this.href=g,this.pathname=O[1],O[2]?(this.search=O[2],this.query=e?b.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var T=i.exec(g);if(T){var j=(T=T[0]).toLowerCase();this.protocol=j,g=g.substr(T.length)}if(r||T||g.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===g.substr(0,2);!x||T&&d[T]||(g=g.substr(2),this.slashes=!0)}if(!d[T]&&(x||T&&!m[T])){for(var D,A,w=-1,_=0;_<c.length;_++){-1!==(E=g.indexOf(c[_]))&&(-1===w||E<w)&&(w=E)}-1!==(A=-1===w?g.lastIndexOf("@"):g.lastIndexOf("@",w))&&(D=g.slice(0,A),g=g.slice(A+1),this.auth=decodeURIComponent(D)),w=-1;for(_=0;_<p.length;_++){var E;-1!==(E=g.indexOf(p[_]))&&(-1===w||E<w)&&(w=E)}-1===w&&(w=g.length),this.host=g.slice(0,w),g=g.slice(w),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var I=this.hostname.split(/\./),N=(_=0,I.length);_<N;_++){var S=I[_];if(S&&!S.match(f)){for(var C="",U=0,k=S.length;U<k;U++)S.charCodeAt(U)>127?C+="x":C+=S[U];if(!C.match(f)){var F=I.slice(0,_),q=I.slice(_+1),R=S.match(y);R&&(F.push(R[1]),q.unshift(R[2])),q.length&&(g="/"+q.join(".")+g),this.hostname=F.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var L=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+L,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!v[j])for(_=0,N=l.length;_<N;_++){var M=l[_];if(-1!==g.indexOf(M)){var J=encodeURIComponent(M);J===M&&(J=escape(M)),g=g.split(M).join(J)}}var z=g.indexOf("#");-1!==z&&(this.hash=g.substr(z),g=g.slice(0,z));var H=g.indexOf("?");if(-1!==H?(this.search=g.substr(H),this.query=g.substr(H+1),e&&(this.query=b.parse(this.query)),g=g.slice(0,H)):e&&(this.search="",this.query={}),g&&(this.pathname=g),m[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var Y=this.search||"";this.path=L+Y}return this.href=this.format(),this},s.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",s=!1,i="";this.host?s=t+this.host:this.hostname&&(s=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(i=b.stringify(this.query));var a=this.search||i&&"?"+i||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||m[e])&&!1!==s?(s="//"+(s||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):s||(s=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),e+s+(r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(a=a.replace("#","%23"))+n},s.prototype.resolve=function(t){return this.resolveObject(g(t,!1,!0)).format()},s.prototype.resolveObject=function(t){if(o.isString(t)){var e=new s;e.parse(t,!1,!0),t=e}for(var r=new s,n=Object.keys(this),i=0;i<n.length;i++){var a=n[i];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),h=0;h<u.length;h++){var l=u[h];"protocol"!==l&&(r[l]=t[l])}return m[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!m[t.protocol]){for(var p=Object.keys(t),c=0;c<p.length;c++){var f=p[c];r[f]=t[f]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||d[t.protocol])r.pathname=t.pathname;else{for(var y=(t.pathname||"").split("/");y.length&&!(t.host=y.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==y[0]&&y.unshift(""),y.length<2&&y.unshift(""),r.pathname=y.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var v=r.pathname||"",b=r.search||"";r.path=v+b}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var g=r.pathname&&"/"===r.pathname.charAt(0),O=t.host||t.pathname&&"/"===t.pathname.charAt(0),T=O||g||r.host&&t.pathname,j=T,x=r.pathname&&r.pathname.split("/")||[],D=(y=t.pathname&&t.pathname.split("/")||[],r.protocol&&!m[r.protocol]);if(D&&(r.hostname="",r.port=null,r.host&&(""===x[0]?x[0]=r.host:x.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===y[0]?y[0]=t.host:y.unshift(t.host)),t.host=null),T=T&&(""===y[0]||""===x[0])),O)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,x=y;else if(y.length)x||(x=[]),x.pop(),x=x.concat(y),r.search=t.search,r.query=t.query;else if(!o.isNullOrUndefined(t.search)){if(D)r.hostname=r.host=x.shift(),(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=t.search,r.query=t.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=x.slice(-1)[0],w=(r.host||t.host||x.length>1)&&("."===A||".."===A)||""===A,_=0,E=x.length;E>=0;E--)"."===(A=x[E])?x.splice(E,1):".."===A?(x.splice(E,1),_++):_&&(x.splice(E,1),_--);if(!T&&!j)for(;_--;_)x.unshift("..");!T||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),w&&"/"!==x.join("/").substr(-1)&&x.push("");var P,I=""===x[0]||x[0]&&"/"===x[0].charAt(0);D&&(r.hostname=r.host=I?"":x.length?x.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(T=T||r.host&&x.length)&&!I&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},s.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,r){"use strict";t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return/^[a-z][a-z0-9+.-]*:/.test(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),o=r(11);e.parseTD=function(t,e){console.debug("parseTD() parsing\n```\n"+t+"\n```");var s=JSON.parse(t);if(void 0===s["@context"])s["@context"]=n.DEFAULT_CONTEXT;else if(Array.isArray(s["@context"]))-1===(i=s["@context"]).indexOf(n.DEFAULT_CONTEXT)&&i.push(n.DEFAULT_CONTEXT);else if(s["@context"]!==n.DEFAULT_CONTEXT){var i=s["@context"];s["@context"]=[i,n.DEFAULT_CONTEXT]}if(void 0===s["@type"])s["@type"]=n.DEFAULT_THING_TYPE;else if(Array.isArray(s["@type"])){var a=s["@type"];-1===a.indexOf(n.DEFAULT_THING_TYPE)&&a.unshift(n.DEFAULT_THING_TYPE)}else if(s["@type"]!==n.DEFAULT_THING_TYPE){var u=s["@type"];s["@type"]=[n.DEFAULT_THING_TYPE,u]}if(void 0!==s.properties&&s.properties instanceof Object)for(var h in s.properties){var l=s.properties[h];void 0!==l.readOnly&&"boolean"==typeof l.readOnly||(l.readOnly=!1),void 0!==l.writeOnly&&"boolean"==typeof l.writeOnly||(l.writeOnly=!1),void 0!=l.observable&&"boolean"==typeof l.observable||(l.observable=!1)}"object"==typeof s.properties&&null!==s.properties||(s.properties={}),"object"==typeof s.actions&&null!==s.actions||(s.actions={}),"object"==typeof s.events&&null!==s.events||(s.events={}),void 0===s.security&&console.warn("parseTD() found no security metadata");var p=[],c={properties:"Property",actions:"Action",events:"Event"};for(var f in c)for(var y in s[f]){if(!s[f][y].hasOwnProperty("forms"))throw new Error(c[f]+" '"+y+"' has no forms field");Array.isArray(s[f][y].forms)||(s[f][y].forms=[s[f][y].forms]);for(var v=0,d=s[f][y].forms;v<d.length;v++){if(!(x=d[v]).hasOwnProperty("href"))throw new Error("Form of "+c[f]+" '"+y+"' has no href field");if(!o(x.href)&&!s.hasOwnProperty("base"))throw new Error("Form of "+c[f]+" '"+y+"' has relative URI while TD has no base field");p.push(x)}}if(s.hasOwnProperty("base")&&(void 0===e||!0===e)){console.log("parseTD() normalizing 'base' into 'forms'");for(var m=r(10),b=s.base.indexOf(":"),g=s.base.substr(0,b+1),O=s.base.replace(g,"http:"),T=0,j=p;T<j.length;T++){var x;if(!(x=j[T]).href.match(/^([a-z0-9\+-\.]+\:).+/i)){console.debug("parseTDString() applying base '"+s.base+"' to '"+x.href+"'");var D=m.resolve(O,x.href);D=D.replace("http:",g),x.href=D}}}return s},e.serializeTD=function(t){var e=JSON.parse(JSON.stringify(t));if(e.security&&0!==e.security.length||(e.securityDefinitions={nosec_sc:{scheme:"nosec"}},e.security=["nosec_sc"]),e.forms&&0===e.forms.length&&delete e.forms,e.properties&&0===Object.keys(e.properties).length)delete e.properties;else if(e.properties)for(var r in e.properties){var n=e.properties[r];void 0!==n.readOnly&&"boolean"==typeof n.readOnly||(n.readOnly=!1),void 0!==n.writeOnly&&"boolean"==typeof n.writeOnly||(n.writeOnly=!1),void 0!=n.observable&&"boolean"==typeof n.observable||(n.observable=!1)}if(e.actions&&0===Object.keys(e.actions).length)delete e.actions;else if(e.actions)for(var o in e.actions){var s=e.actions[o];void 0!==s.idempotent&&"boolean"==typeof s.idempotent||(s.idempotent=!1),void 0!==s.safe&&"boolean"==typeof s.safe||(s.safe=!1)}e.events&&0===Object.keys(e.events).length&&delete e.events,e.links&&0===e.links.length&&delete e.links;var i=JSON.stringify(e);return console.debug("serializeTD() produced\n```\n"+i+"\n```"),i}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.tdRepoURI=t}return t.prototype.addNewTD=function(t,e){return""},t.prototype.deleteTD=function(t){return!0},t.prototype.checkIfTDisInRepo=function(t){return""},t.prototype.freeTextSearch=function(t){return[]},t.prototype.tripleSearch=function(t){return[]},t}();e.default=n},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var o=r(0);e.Thing=o.default;var s=r(13);e.TDRepository=s.default,n(r(0)),n(r(12)),n(r(2)),n(r(1))}]);
var TDTools=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}([function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=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])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONTEXT="https://www.w3.org/2019/wot/td/v1",t.DEFAULT_CONTEXT_LANGUAGE="en",t.DEFAULT_THING_TYPE="Thing";var o=function(){return function(){}}();t.VersionInfo=o;var i=function(){return function(){this["@context"]=t.DEFAULT_CONTEXT,this["@type"]=t.DEFAULT_THING_TYPE,this.security=[],this.properties={},this.actions={},this.events={},this.links=[]}}();t.default=i;var a=function(){return function(){}}();t.ThingInteraction=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(a);t.ThingProperty=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(a);t.ThingAction=u;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(a);t.ThingEvent=p;var l=function(){return function(){}}();t.Security=l;var f=function(){return function(){}}();t.ExpectedResponse=f;var c=function(){return function(e,t){this.href=e,t&&(this.contentType=t)}}();t.Form=c},function(e,t,r){"use strict";function n(e){var t=JSON.parse(e);return console.log("NO TD MODIFICATIONS DONE YET!!!!!"),t}function o(e){var t=JSON.parse(e);if(null!=t.base&&(t.uris=[],t.uris.push(t.base),delete t.base),null!=t.interactions&&Array.isArray(t.interactions)){for(var r=0,n=t.interactions;r<n.length;r++){var o=n[r];null!=o["@type"]&&Array.isArray(o["@type"])&&(o["@type"].indexOf("Property")>=0&&(null==t.properties&&(t.properties=[]),t.properties.push(o),null!=o.outputData&&null!=o.outputData.valueType&&(o.valueType=o.outputData.valueType,delete o.outputData),i(t,o)),o["@type"].indexOf("Action")>=0&&(null==t.actions&&(t.actions=[]),t.actions.push(o),i(t,o)),o["@type"].indexOf("Event")>=0&&(null==t.events&&(t.events=[]),t.events.push(o),null!=o.outputData&&null!=o.outputData.valueType&&(o.valueType=o.outputData.valueType,delete o.outputData),i(t,o)))}delete t.interactions}return t}function i(e,t){if(null!=t.links&&Array.isArray(t.links)){for(var r=0,n=t.links;r<n.length;r++){var o=n[r];null==t.hrefs&&(t.hrefs=[]),t.hrefs.push(o.href),null==e.encodings&&(e.encodings=[]),e.encodings.indexOf(o.mediaType)<0&&e.encodings.push(o.mediaType)}delete t.links}}function a(e){var t=JSON.parse(e);if(null!=t.base&&(t.uris=[],t.uris.push(t.base),delete t.base),null!=t.interaction&&Array.isArray(t.interaction)){for(var r=0,n=t.interaction;r<n.length;r++){var o=n[r];null!=o["@type"]&&Array.isArray(o["@type"])&&(o["@type"].indexOf("Property")>=0&&(null==t.properties&&(t.properties=[]),t.properties.push(o),null!=o.outputData&&(o.valueType=o.outputData,delete o.outputData),s(t,o)),o["@type"].indexOf("Action")>=0&&(null==t.actions&&(t.actions=[]),t.actions.push(o),null!=o.outputData&&null!=o.outputData.type&&(o.outputData.valueType={},o.outputData.valueType.type=o.outputData.type,delete o.outputData.type),null!=o.inputData&&null!=o.inputData.type&&(o.inputData.valueType={},o.inputData.valueType.type=o.inputData.type,delete o.inputData.type),s(t,o)),o["@type"].indexOf("Event")>=0&&(null==t.events&&(t.events=[]),t.events.push(o),null!=o.outputData&&(o.valueType=o.outputData,delete o.outputData),s(t,o)))}delete t.interaction}return t}function s(e,t){if(null!=t.link&&Array.isArray(t.link)){for(var r=0,n=t.link;r<n.length;r++){var o=n[r];null==t.hrefs&&(t.hrefs=[]),t.hrefs.push(o.href),null==e.encodings&&(e.encodings=[]),e.encodings.indexOf(o.mediaType)<0&&e.encodings.push(o.mediaType)}delete t.links}}Object.defineProperty(t,"__esModule",{value:!0}),t.transformTDV1StringToV2String=n,t.transformTDV1ObjToV2Obj=function(e){return n(JSON.stringify(e))},t.transformTDV2StringToV1String=o,t.transformTDV2ObjToV1Obj=function(e){return o(JSON.stringify(e))},t.transformTDV3StringToV1String=a,t.transformTDV3ObjToV1Obj=function(e){return a(JSON.stringify(e))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findProtocol=function(e){var t=e.base,r=t.indexOf(":");return t.substring(0,r)},t.findPort=function(e){var t=e.base,r=t.indexOf(":",6),n=t.indexOf("/",r),o=t.substring(r+1,n);return parseInt(o)}},function(e,t,r){!function(t){var r=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,n=/^([^\/?#]*)(.*)$/,o=/(?:\/|^)\.(?=\/)/g,i=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,a={buildAbsoluteURL:function(e,t,r){if(r=r||{},e=e.trim(),!(t=t.trim())){if(!r.alwaysNormalize)return e;var o=a.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");return o.path=a.normalizePath(o.path),a.buildURLFromParts(o)}var i=a.parseURL(t);if(!i)throw new Error("Error trying to parse relative URL.");if(i.scheme)return r.alwaysNormalize?(i.path=a.normalizePath(i.path),a.buildURLFromParts(i)):t;var s=a.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var u=n.exec(s.path);s.netLoc=u[1],s.path=u[2]}s.netLoc&&!s.path&&(s.path="/");var p={scheme:s.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};if(!i.netLoc&&(p.netLoc=s.netLoc,"/"!==i.path[0]))if(i.path){var l=s.path,f=l.substring(0,l.lastIndexOf("/")+1)+i.path;p.path=a.normalizePath(f)}else p.path=s.path,i.params||(p.params=s.params,i.query||(p.query=s.query));return null===p.path&&(p.path=r.alwaysNormalize?a.normalizePath(i.path):i.path),a.buildURLFromParts(p)},parseURL:function(e){var t=r.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(o,"");e.length!==(e=e.replace(i,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=a}()},function(e,t,r){"use strict";e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return/^[a-z][a-z0-9+.-]*:/.test(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(4),i=r(3);t.parseTD=function(e,t){console.debug("parseTD() parsing\n```\n"+e+"\n```");var r=JSON.parse(e);if(void 0===r["@context"])r["@context"]=[n.DEFAULT_CONTEXT];else if(Array.isArray(r["@context"]))-1===(a=r["@context"]).indexOf(n.DEFAULT_CONTEXT)&&a.push(n.DEFAULT_CONTEXT);else if(r["@context"]!==n.DEFAULT_CONTEXT){var a=r["@context"];r["@context"]=[a,n.DEFAULT_CONTEXT]}if(function(e){if(Array.isArray(e["@context"])){for(var t=e["@context"],r=!1,o=0,i=t;o<i.length;o++){var a=i[o];a instanceof Object&&void 0!==a["@language"]&&(r=!0)}r||t.push({"@language":n.DEFAULT_CONTEXT_LANGUAGE})}}(r),void 0===r["@type"])r["@type"]=n.DEFAULT_THING_TYPE;else if(Array.isArray(r["@type"])){var s=r["@type"];-1===s.indexOf(n.DEFAULT_THING_TYPE)&&s.unshift(n.DEFAULT_THING_TYPE)}else if(r["@type"]!==n.DEFAULT_THING_TYPE){var u=r["@type"];r["@type"]=[n.DEFAULT_THING_TYPE,u]}if(void 0!==r.properties&&r.properties instanceof Object)for(var p in r.properties){var l=r.properties[p];void 0!==l.readOnly&&"boolean"==typeof l.readOnly||(l.readOnly=!1),void 0!==l.writeOnly&&"boolean"==typeof l.writeOnly||(l.writeOnly=!1),void 0!=l.observable&&"boolean"==typeof l.observable||(l.observable=!1)}if(void 0!==r.actions&&r.actions instanceof Object)for(var f in r.actions){var c=r.actions[f];void 0!==c.safe&&"boolean"==typeof c.safe||(c.safe=!1),void 0!==c.idempotent&&"boolean"==typeof c.idempotent||(c.idempotent=!1)}"object"==typeof r.properties&&null!==r.properties||(r.properties={}),"object"==typeof r.actions&&null!==r.actions||(r.actions={}),"object"==typeof r.events&&null!==r.events||(r.events={}),void 0===r.security&&console.warn("parseTD() found no security metadata");var y=[],v={properties:"Property",actions:"Action",events:"Event"};for(var h in v)for(var d in r[h]){if(!r[h][d].hasOwnProperty("forms"))throw new Error(v[h]+" '"+d+"' has no forms field");Array.isArray(r[h][d].forms)||(r[h][d].forms=[r[h][d].forms]);for(var T=0,b=r[h][d].forms;T<b.length;T++){if(!(m=b[T]).hasOwnProperty("href"))throw new Error("Form of "+v[h]+" '"+d+"' has no href field");if(!o(m.href)&&!r.hasOwnProperty("base"))throw new Error("Form of "+v[h]+" '"+d+"' has relative URI while TD has no base field");y.push(m)}}if(r.hasOwnProperty("base")&&(void 0===t||!0===t)){console.log("parseTD() normalizing 'base' into 'forms'");for(var O=0,g=y;O<g.length;O++){var m;(m=g[O]).href.match(/^([a-z0-9\+-\.]+\:).+/i)||(console.debug("parseTDString() applying base '"+r.base+"' to '"+m.href+"'"),m.href=i.buildAbsoluteURL(r.base,m.href))}}return r},t.serializeTD=function(e){var t=JSON.parse(JSON.stringify(e));if(t.security&&0!==t.security.length||(t.securityDefinitions={nosec_sc:{scheme:"nosec"}},t.security=["nosec_sc"]),t.forms&&0===t.forms.length&&delete t.forms,t.properties&&0===Object.keys(t.properties).length)delete t.properties;else if(t.properties)for(var r in t.properties){var n=t.properties[r];void 0!==n.readOnly&&"boolean"==typeof n.readOnly||(n.readOnly=!1),void 0!==n.writeOnly&&"boolean"==typeof n.writeOnly||(n.writeOnly=!1),void 0!=n.observable&&"boolean"==typeof n.observable||(n.observable=!1)}if(t.actions&&0===Object.keys(t.actions).length)delete t.actions;else if(t.actions)for(var o in t.actions){var i=t.actions[o];void 0!==i.idempotent&&"boolean"==typeof i.idempotent||(i.idempotent=!1),void 0!==i.safe&&"boolean"==typeof i.safe||(i.safe=!1)}t.events&&0===Object.keys(t.events).length&&delete t.events,t.links&&0===t.links.length&&delete t.links;var a=JSON.stringify(t);return console.debug("serializeTD() produced\n```\n"+a+"\n```"),a}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.tdRepoURI=e}return e.prototype.addNewTD=function(e,t){return""},e.prototype.deleteTD=function(e){return!0},e.prototype.checkIfTDisInRepo=function(e){return""},e.prototype.freeTextSearch=function(e){return[]},e.prototype.tripleSearch=function(e){return[]},e}();t.default=n},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0});var o=r(0);t.Thing=o.default;var i=r(6);t.TDRepository=i.default,n(r(0)),n(r(5)),n(r(2)),n(r(1))}]);

@@ -5,2 +5,3 @@ "use strict";

var isAbsoluteUrl = require('is-absolute-url');
var URLToolkit = require('url-toolkit');
function parseTD(td, normalize) {

@@ -10,3 +11,3 @@ console.debug("parseTD() parsing\n```\n" + td + "\n```");

if (thing["@context"] === undefined) {
thing["@context"] = TD.DEFAULT_CONTEXT;
thing["@context"] = [TD.DEFAULT_CONTEXT];
}

@@ -23,2 +24,3 @@ else if (Array.isArray(thing["@context"])) {

}
addDefaultLanguage(thing);
if (thing["@type"] === undefined) {

@@ -51,2 +53,13 @@ thing["@type"] = TD.DEFAULT_THING_TYPE;

}
if (thing.actions !== undefined && thing.actions instanceof Object) {
for (var actName in thing.actions) {
var act = thing.actions[actName];
if (act.safe === undefined || typeof act.safe !== "boolean") {
act.safe = false;
}
if (act.idempotent === undefined || typeof act.idempotent !== "boolean") {
act.idempotent = false;
}
}
}
if (typeof thing.properties !== 'object' || thing.properties === null) {

@@ -89,6 +102,2 @@ thing.properties = {};

console.log("parseTD() normalizing 'base' into 'forms'");
var url = require('url');
var n = thing.base.indexOf(':');
var scheme = thing.base.substr(0, n + 1);
var base = thing.base.replace(scheme, 'http:');
for (var _b = 0, allForms_1 = allForms; _b < allForms_1.length; _b++) {

@@ -98,5 +107,3 @@ var form = allForms_1[_b];

console.debug("parseTDString() applying base '" + thing.base + "' to '" + form.href + "'");
var href = url.resolve(base, form.href);
href = href.replace('http:', scheme);
form.href = href;
form.href = URLToolkit.buildAbsoluteURL(thing.base, form.href);
}

@@ -109,2 +116,21 @@ }

exports.parseTD = parseTD;
function addDefaultLanguage(thing) {
if (Array.isArray(thing["@context"])) {
var arrayContext = thing["@context"];
var languageSet = false;
for (var _i = 0, arrayContext_1 = arrayContext; _i < arrayContext_1.length; _i++) {
var arrayEntry = arrayContext_1[_i];
if (arrayEntry instanceof Object) {
if (arrayEntry["@language"] !== undefined) {
languageSet = true;
}
}
}
if (!languageSet) {
arrayContext.push({
"@language": TD.DEFAULT_CONTEXT_LANGUAGE
});
}
}
}
function serializeTD(thing) {

@@ -111,0 +137,0 @@ var copy = JSON.parse(JSON.stringify(thing));

import * as WoT from "wot-typescript-definitions";
export declare const DEFAULT_CONTEXT: string;
export declare const DEFAULT_CONTEXT_LANGUAGE: string;
export declare const DEFAULT_THING_TYPE: string;
export declare class Versioning implements WoT.Versioning {
export declare class VersionInfo implements WoT.VersionInfo {
instance: string;

@@ -9,5 +10,10 @@ }

id: string;
name: string;
title: string;
titles: WoT.MultiLanguage;
description: string;
descriptions: WoT.MultiLanguage;
support: string;
modified: string;
created: string;
version: VersionInfo;
securityDefinitions: {

@@ -14,0 +20,0 @@ [key: string]: WoT.Security;

@@ -13,10 +13,11 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_CONTEXT = "http://www.w3.org/ns/td";
exports.DEFAULT_CONTEXT = "https://www.w3.org/2019/wot/td/v1";
exports.DEFAULT_CONTEXT_LANGUAGE = "en";
exports.DEFAULT_THING_TYPE = "Thing";
var Versioning = (function () {
function Versioning() {
var VersionInfo = (function () {
function VersionInfo() {
}
return Versioning;
return VersionInfo;
}());
exports.Versioning = Versioning;
exports.VersionInfo = VersionInfo;
var Thing = (function () {

@@ -23,0 +24,0 @@ function Thing() {

{
"name": "@node-wot/td-tools",
"version": "0.6.1",
"version": "0.6.2-SNAPSHOT.1",
"description": "W3C Web of Things (WoT) Thing Description parser, serializer, and other tools",

@@ -27,7 +27,8 @@ "author": "Eclipse Thingweb <thingweb-dev@eclipse.org> (https://thingweb.io/)",

"webpack": "4.16.0",
"webpack-command": "^0.4.1",
"wot-typescript-definitions": "0.6.0"
"webpack-command": "^0.4.1"
},
"dependencies": {
"is-absolute-url": "2.1.0"
"wot-typescript-definitions": "0.6.2-SNAPSHOT.2",
"is-absolute-url": "2.1.0",
"url-toolkit": "2.1.6"
},

@@ -34,0 +35,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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