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

@wework/floormap-utils

Package Overview
Dependencies
Maintainers
29
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wework/floormap-utils - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1-next.34

38

dist/floormap-utils.cjs.js

@@ -101,3 +101,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

only: outlineOnly,
color: outlineColor
color: outlineColor,
};

@@ -172,3 +172,3 @@

_rotation = {
z: locationAngle
z: locationAngle,
};

@@ -199,3 +199,3 @@ _instancingId = instancingId;

outline: outline,
opacity: opacity
opacity: opacity,
},

@@ -208,3 +208,3 @@ points: points,

visible: true,
zOrder: zOrder
zOrder: zOrder,
};

@@ -241,5 +241,5 @@ if (_instancingId) {

color: 'black',
fontWeight: 'bold'
fontWeight: 'bold',
},
interactable: false
interactable: false,
});

@@ -274,5 +274,5 @@ }

img: img,
maxWidth: maxWidth$1
maxWidth: maxWidth$1,
},
interactable: false
interactable: false,
});

@@ -375,3 +375,3 @@ }

y: parseFloat(b[1]),
z: parseFloat(b[2])
z: parseFloat(b[2]),
});

@@ -558,4 +558,4 @@ });

extrude: obj.extrude,
opacity: obj.style ? obj.style.opacity : 1.0
}
opacity: obj.style ? obj.style.opacity : 1.0,
},
});

@@ -567,3 +567,3 @@ objs.forEach(function (o) {

style: {
color: o.style.color
color: o.style.color,
},

@@ -573,3 +573,3 @@ position: o.position,

interactable: o.interactable,
visible: o.visible
visible: o.visible,
});

@@ -587,9 +587,9 @@ });

color: obj.style.outline.color,
only: true
}
only: true,
},
},
points: obj.points,
extrude: obj.extrude,
zOrder: obj.zOrder
}
zOrder: obj.zOrder,
},
});

@@ -601,7 +601,7 @@ objs.forEach(function (o) {

style: {
color: o.style.color
color: o.style.color,
},
position: o.position,
rotation: o.rotation,
visible: o.visible
visible: o.visible,
});

@@ -608,0 +608,0 @@ });

@@ -99,3 +99,3 @@ var nook = 'https://cdn.spacemob.co/img/nook@2x.png';

only: outlineOnly,
color: outlineColor
color: outlineColor,
};

@@ -170,3 +170,3 @@

_rotation = {
z: locationAngle
z: locationAngle,
};

@@ -197,3 +197,3 @@ _instancingId = instancingId;

outline: outline,
opacity: opacity
opacity: opacity,
},

@@ -206,3 +206,3 @@ points: points,

visible: true,
zOrder: zOrder
zOrder: zOrder,
};

@@ -239,5 +239,5 @@ if (_instancingId) {

color: 'black',
fontWeight: 'bold'
fontWeight: 'bold',
},
interactable: false
interactable: false,
});

@@ -272,5 +272,5 @@ }

img: img,
maxWidth: maxWidth$1
maxWidth: maxWidth$1,
},
interactable: false
interactable: false,
});

@@ -373,3 +373,3 @@ }

y: parseFloat(b[1]),
z: parseFloat(b[2])
z: parseFloat(b[2]),
});

@@ -556,4 +556,4 @@ });

extrude: obj.extrude,
opacity: obj.style ? obj.style.opacity : 1.0
}
opacity: obj.style ? obj.style.opacity : 1.0,
},
});

@@ -565,3 +565,3 @@ objs.forEach(function (o) {

style: {
color: o.style.color
color: o.style.color,
},

@@ -571,3 +571,3 @@ position: o.position,

interactable: o.interactable,
visible: o.visible
visible: o.visible,
});

@@ -585,9 +585,9 @@ });

color: obj.style.outline.color,
only: true
}
only: true,
},
},
points: obj.points,
extrude: obj.extrude,
zOrder: obj.zOrder
}
zOrder: obj.zOrder,
},
});

@@ -599,7 +599,7 @@ objs.forEach(function (o) {

style: {
color: o.style.color
color: o.style.color,
},
position: o.position,
rotation: o.rotation,
visible: o.visible
visible: o.visible,
});

@@ -606,0 +606,0 @@ });

@@ -105,3 +105,3 @@ (function (global, factory) {

only: outlineOnly,
color: outlineColor
color: outlineColor,
};

@@ -176,3 +176,3 @@

_rotation = {
z: locationAngle
z: locationAngle,
};

@@ -203,3 +203,3 @@ _instancingId = instancingId;

outline: outline,
opacity: opacity
opacity: opacity,
},

@@ -212,3 +212,3 @@ points: points,

visible: true,
zOrder: zOrder
zOrder: zOrder,
};

@@ -245,5 +245,5 @@ if (_instancingId) {

color: 'black',
fontWeight: 'bold'
fontWeight: 'bold',
},
interactable: false
interactable: false,
});

@@ -278,5 +278,5 @@ }

img: img,
maxWidth: maxWidth$1
maxWidth: maxWidth$1,
},
interactable: false
interactable: false,
});

@@ -379,3 +379,3 @@ }

y: parseFloat(b[1]),
z: parseFloat(b[2])
z: parseFloat(b[2]),
});

@@ -562,4 +562,4 @@ });

extrude: obj.extrude,
opacity: obj.style ? obj.style.opacity : 1.0
}
opacity: obj.style ? obj.style.opacity : 1.0,
},
});

@@ -571,3 +571,3 @@ objs.forEach(function (o) {

style: {
color: o.style.color
color: o.style.color,
},

@@ -577,3 +577,3 @@ position: o.position,

interactable: o.interactable,
visible: o.visible
visible: o.visible,
});

@@ -591,9 +591,9 @@ });

color: obj.style.outline.color,
only: true
}
only: true,
},
},
points: obj.points,
extrude: obj.extrude,
zOrder: obj.zOrder
}
zOrder: obj.zOrder,
},
});

@@ -605,7 +605,7 @@ objs.forEach(function (o) {

style: {
color: o.style.color
color: o.style.color,
},
position: o.position,
rotation: o.rotation,
visible: o.visible
visible: o.visible,
});

@@ -612,0 +612,0 @@ });

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

!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a(e.FloormapUtils={})}(this,function(e){function w(e){for(var a=1/0,c=1/0,t=-1/0,s=-1/0,n=0;n<e.length;n++)a=Math.min(a,e[n].x),c=Math.min(c,e[n].y),t=Math.max(t,e[n].x),s=Math.max(s,e[n].y);return{x:(t+a)/2,y:(s+c)/2}}var t="https://cdn.spacemob.co/img/meeting_room@2x.png",s="https://cdn.spacemob.co/img/IT_room@2x.png",n="https://cdn.spacemob.co/img/pantry@2x.png",H=function(e,a){switch(e){case"CIRCULATE":case"WE":return.1;default:return a}},B=function(e,a){switch(e){case"WORK":return 0;case"MEET":return-.01;case"WASH":return-.02;case"OPERATE":return-.03;case"WE":return-(a/2+.01);case"CIRCULATE":return-(a/2+.02);default:return 0}},P=function(e){switch(e){case"WORK":return"rgb(171,221,231)";case"CIRCULATE":return"rgb(255,247,223)";case"MEET":return"rgb(183,240,217)";case"WE":return"rgb(255,210,106)";case"OPERATE":return"rgb(226,226,226)";case"WASH":return"rgb(195,195,195)";default:return"rgb(253,235,236)"}},_=function(e,a){var c=null;switch(a.toUpperCase()){case"PHONE BOOTH":c="https://cdn.spacemob.co/img/phone_booth@2x.png";break;case"WT":case"NOOK":case"BOOTH":case"BOOTHS":c="https://cdn.spacemob.co/img/nook@2x.png";break;case"LOUNGE":case"HONESTY MKT":case"HONESTY MARKET":case"PANTRY":case"BAR":case"BEER ISLAND":case"COMMUNITY BAR":c=n;break;case"GAME RM":case"GAME ROOM":case"DART BOARD":c="https://cdn.spacemob.co/img/gameroom@2x.png";break;case"WOMEN WC":case"WOMENS WC":case"W RESTROOM":case"RESTROOM":case"UNISEX RESTROOM":case"UNISEX":case"ADA RESTROOM":case"ADA WC":c="https://cdn.spacemob.co/img/wc_f@2x.png";break;case"MEN WC":case"MENS WC":case"MALE WC":case"M RESTROOM":c="https://cdn.spacemob.co/img/wc_m@2x.png";break;case"IT":c=s;break;case"PRINTER":case"PRINT":case"PRINTER NOOK":case"PRINTING ALCOVE":c="https://cdn.spacemob.co/img/printer@2x.png";break;case"MECH":case"MECHANICAL CLOSET":c="https://cdn.spacemob.co/img/mechanical@2x.png";break;case"STOR":case"STORE":case"STORAGE":case"BIKE STORAGE":case"F&B STORAGE":case"CLEANING STORAGE":case"COAT CLOSET":c="https://cdn.spacemob.co/img/storage@2x.png";break;case"TRASH":case"TRASH ROOM":c="https://cdn.spacemob.co/img/trash@2x.png";break;case"MOTHER RM":case"MOTHERS ROOM":c="https://cdn.spacemob.co/img/motherroom@2x.png";break;case"F&B":c=n;break;case"MAIL":case"MAIL & PACKAGE ROOM":c="https://cdn.spacemob.co/img/mail_room@2x.png";break;case"SHOWER":case"SHOWERS":c="https://cdn.spacemob.co/img/shower@2x.png";break;case"SERVICE LIFT":case"ELEVATOR FOYER":c="https://cdn.spacemob.co/img/servicelift@2x.png";break;case"WELLNESS RM":case"WELLNESS ROOM":case"FITNESS RM":c="https://cdn.spacemob.co/img/wellnessroom@2x.png";break;case"ELEC":case"ELECTRICAL CLOSET":c="https://cdn.spacemob.co/img/electrical@2x.png";break;case"FIRE":case"FIRE COMMAND CENTER":c="https://cdn.spacemob.co/img/fire_extinguisher@2x.png";break;case"MOP":case"JC":case"JANITOR":case"MOP CLOSET":c="https://cdn.spacemob.co/img/maintenance@2x.png";break;case"CONV. BOOTH":c=t}if(a.startsWith("IT ")&&(c=s),!c)switch(e){case"MEET":c=t}return c},F=function(e){for(var a=1/0,c=1/0,t=-1/0,s=-1/0,n=0;n<e.length;n++)a=Math.min(a,e[n].x),c=Math.min(c,e[n].y),t=Math.max(t,e[n].x),s=Math.max(s,e[n].y);return{width:t-a,height:s-c}},o=function(e,a,c){if(0!==e.length){var t=e[0];if(c.createInstancedMesh({id:a,mesh:{points:t.points,extrude:t.extrude,opacity:t.style?t.style.opacity:1}}),e.forEach(function(e){c.addToInstancedMesh({id:e.id,instancingId:a,style:{color:e.style.color},position:e.position,rotation:e.rotation,interactable:e.interactable,visible:e.visible})}),c.drawInstancedMesh({id:a}),t.style.outline&&t.style.outline.color){var s=a+"_OUTLINE";c.createInstancedMesh({id:s,mesh:{style:{outline:{color:t.style.outline.color,only:!0}},points:t.points,extrude:t.extrude,zOrder:t.zOrder}}),e.forEach(function(e){c.addToInstancedMesh({id:e.id+"_outline",instancingId:s,style:{color:e.style.color},position:e.position,rotation:e.rotation,visible:e.visible})}),c.drawInstancedMesh({id:s})}}};e.createRenderObjects=function(e){var s=e.id,a=e.shapes,c=e.type,t=e.subType,n=e.programType,r=e.roomNumber,o=e.hasWindow,i=e.locationAngle,p=e.centroid,E=e.instancingId,l=[],d="BACK",O="#474747",g=1,h=!0,b=!1,T=H(n,6),u=B(n,6),m=P(n),R=_(n,t),M=0;if("object"===c)switch(t){case"CHAIR":m="rgb(206,206,206)",d="FRONT",u=-(6-(T=1))/2,O="rgb(150,150,150)";break;case"TABLE":case"HOTDESK_TABLE":m="rgb(246,241,241)",d="FRONT",T=.5,u=-1.5,g=.8,O="rgb(150,150,150)",M=1}else"space"===c||"room"===c||console.warn("invalid type:",c);var f={only:!1,color:O};switch(t){case"HALLWAY":case"ELEV LOBBY":f=null}switch(n){case"MEET":switch(b=!0,t){case"NOOK":case"PHONE BOOTH":case"wt":b=!1}break;case"WORK":b=!0,o&&(m="rgb(228,243,247)");break;case"WASH":case"SERVE":break;case"OPERATE":case"WE":break;case"CIRCULATE":f=null;break;default:n&&console.log("invalid programType:",n)}f&&(f.color=O);var A=a,y={z:u},I=null,S=null;if(E&&(p?((y=p).z=u,S=E,I={z:i},h=!1):console.warn("centroid is not available",JSON.stringify(e))),A&&0!==A.length){if(A.forEach(function(e,a){var c=s;0!==a&&(c=s+"/"+a);var t={id:c,type:"MESH",style:{color:m,side:d,outline:f,opacity:g},points:e,interactable:h,extrude:T,position:y,rotation:I,visible:!0,zOrder:M};S&&(t.instancingId=S),l.push(t)}),b&&r){var x=w(A[0]),C={x:.5,y:.5};R&&(C.y=1.25);var N=F(A[0]).width/2*.8;3<N&&(N=2.9),l.push({id:s+"_TEXT",type:"TEXT",text:r,position:x,scalar:N,center:C,style:{color:"black",fontWeight:"bold"},interactable:!1})}if(R){var L=w(A[0]),v={x:.5,y:.5};p&&((L=p).z=0),b&&r&&(v.y=.25);var W=3,k=F(A[0]);W>k.width?W=k.width-.1:W>k.height&&(W=k.height-.1),l.push({id:s+"_SPRITE",type:"SPRITE",position:L,scalar:1,center:v,style:{img:R,maxWidth:W},interactable:!1})}return l}console.warn("Invalid shapes",JSON.stringify(e))},e.getCenter=w,e.getSize=F,e.stringArrayToPoints=function(e){if(e&&e.constructor===Array){var a=[];return e.forEach(function(e){e&&e.constructor===Array&&3===e.length&&a.push({x:parseFloat(e[0]),y:parseFloat(e[1]),z:parseFloat(e[2])})}),a}},e.applyInstancing=function(t,s){var n=new Map,r=function(){for(var e=0;e<t.length;e++){var a=t[e];if(a.instancingId){var c=n.get(a.instancingId);c||(c=[]),c.push(a),n.set(a.instancingId,c),t.splice(e,1),r()}}};r(),n.forEach(function(e,a,c){o(e,a,s)})},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a(e.FloormapUtils={})}(this,function(e){function w(e){for(var a=1/0,c=1/0,t=-1/0,s=-1/0,n=0;n<e.length;n++)a=Math.min(a,e[n].x),c=Math.min(c,e[n].y),t=Math.max(t,e[n].x),s=Math.max(s,e[n].y);return{x:(t+a)/2,y:(s+c)/2}}var t="https://cdn.spacemob.co/img/meeting_room@2x.png",s="https://cdn.spacemob.co/img/IT_room@2x.png",n="https://cdn.spacemob.co/img/pantry@2x.png",H=function(e,a){switch(e){case"CIRCULATE":case"WE":return.1;default:return a}},B=function(e,a){switch(e){case"WORK":return 0;case"MEET":return-.01;case"WASH":return-.02;case"OPERATE":return-.03;case"WE":return-(a/2+.01);case"CIRCULATE":return-(a/2+.02);default:return 0}},P=function(e){switch(e){case"WORK":return"rgb(171,221,231)";case"CIRCULATE":return"rgb(255,247,223)";case"MEET":return"rgb(183,240,217)";case"WE":return"rgb(255,210,106)";case"OPERATE":return"rgb(226,226,226)";case"WASH":return"rgb(195,195,195)";default:return"rgb(253,235,236)"}},_=function(e,a){var c=null;switch(a.toUpperCase()){case"PHONE BOOTH":c="https://cdn.spacemob.co/img/phone_booth@2x.png";break;case"WT":case"NOOK":case"BOOTH":case"BOOTHS":c="https://cdn.spacemob.co/img/nook@2x.png";break;case"LOUNGE":case"HONESTY MKT":case"HONESTY MARKET":case"PANTRY":case"BAR":case"BEER ISLAND":case"COMMUNITY BAR":c=n;break;case"GAME RM":case"GAME ROOM":case"DART BOARD":c="https://cdn.spacemob.co/img/gameroom@2x.png";break;case"WOMEN WC":case"WOMENS WC":case"W RESTROOM":case"RESTROOM":case"UNISEX RESTROOM":case"UNISEX":case"ADA RESTROOM":case"ADA WC":c="https://cdn.spacemob.co/img/wc_f@2x.png";break;case"MEN WC":case"MENS WC":case"MALE WC":case"M RESTROOM":c="https://cdn.spacemob.co/img/wc_m@2x.png";break;case"IT":c=s;break;case"PRINTER":case"PRINT":case"PRINTER NOOK":case"PRINTING ALCOVE":c="https://cdn.spacemob.co/img/printer@2x.png";break;case"MECH":case"MECHANICAL CLOSET":c="https://cdn.spacemob.co/img/mechanical@2x.png";break;case"STOR":case"STORE":case"STORAGE":case"BIKE STORAGE":case"F&B STORAGE":case"CLEANING STORAGE":case"COAT CLOSET":c="https://cdn.spacemob.co/img/storage@2x.png";break;case"TRASH":case"TRASH ROOM":c="https://cdn.spacemob.co/img/trash@2x.png";break;case"MOTHER RM":case"MOTHERS ROOM":c="https://cdn.spacemob.co/img/motherroom@2x.png";break;case"F&B":c=n;break;case"MAIL":case"MAIL & PACKAGE ROOM":c="https://cdn.spacemob.co/img/mail_room@2x.png";break;case"SHOWER":case"SHOWERS":c="https://cdn.spacemob.co/img/shower@2x.png";break;case"SERVICE LIFT":case"ELEVATOR FOYER":c="https://cdn.spacemob.co/img/servicelift@2x.png";break;case"WELLNESS RM":case"WELLNESS ROOM":case"FITNESS RM":c="https://cdn.spacemob.co/img/wellnessroom@2x.png";break;case"ELEC":case"ELECTRICAL CLOSET":c="https://cdn.spacemob.co/img/electrical@2x.png";break;case"FIRE":case"FIRE COMMAND CENTER":c="https://cdn.spacemob.co/img/fire_extinguisher@2x.png";break;case"MOP":case"JC":case"JANITOR":case"MOP CLOSET":c="https://cdn.spacemob.co/img/maintenance@2x.png";break;case"CONV. BOOTH":c=t}if(a.startsWith("IT ")&&(c=s),!c)switch(e){case"MEET":c=t}return c},F=function(e){for(var a=1/0,c=1/0,t=-1/0,s=-1/0,n=0;n<e.length;n++)a=Math.min(a,e[n].x),c=Math.min(c,e[n].y),t=Math.max(t,e[n].x),s=Math.max(s,e[n].y);return{width:t-a,height:s-c}},o=function(e,a,c){if(0!==e.length){var t=e[0];if(c.createInstancedMesh({id:a,mesh:{points:t.points,extrude:t.extrude,opacity:t.style?t.style.opacity:1}}),e.forEach(function(e){c.addToInstancedMesh({id:e.id,instancingId:a,style:{color:e.style.color},position:e.position,rotation:e.rotation,interactable:e.interactable,visible:e.visible})}),c.drawInstancedMesh({id:a}),t.style.outline&&t.style.outline.color){var s=a+"_OUTLINE";c.createInstancedMesh({id:s,mesh:{style:{outline:{color:t.style.outline.color,only:!0}},points:t.points,extrude:t.extrude,zOrder:t.zOrder}}),e.forEach(function(e){c.addToInstancedMesh({id:e.id+"_outline",instancingId:s,style:{color:e.style.color},position:e.position,rotation:e.rotation,visible:e.visible})}),c.drawInstancedMesh({id:s})}}};e.createRenderObjects=function(e){var s=e.id,a=e.shapes,c=e.type,t=e.subType,n=e.programType,r=e.roomNumber,o=e.hasWindow,i=e.locationAngle,p=e.centroid,E=e.instancingId,l=[],d="BACK",O="#474747",g=1,h=!0,b=!1,T=H(n,6),u=B(n,6),m=P(n),R=_(n,t),M=0;if("object"===c)switch(t){case"CHAIR":m="rgb(206,206,206)",d="FRONT",u=-(6-(T=1))/2,O="rgb(150,150,150)";break;case"TABLE":case"HOTDESK_TABLE":m="rgb(246,241,241)",d="FRONT",T=.5,u=-1.5,g=.8,O="rgb(150,150,150)",M=1}else"space"===c||"room"===c||console.warn("invalid type:",c);var f={only:!1,color:O};switch(t){case"HALLWAY":case"ELEV LOBBY":f=null}switch(n){case"MEET":switch(b=!0,t){case"NOOK":case"PHONE BOOTH":case"wt":b=!1}break;case"WORK":b=!0,o&&(m="rgb(228,243,247)");break;case"WASH":case"SERVE":break;case"OPERATE":case"WE":break;case"CIRCULATE":f=null;break;default:n&&console.log("invalid programType:",n)}f&&(f.color=O);var A=a,y={z:u},I=null,S=null;if(E&&(p?((y=p).z=u,S=E,h=!(I={z:i})):console.warn("centroid is not available",JSON.stringify(e))),A&&0!==A.length){if(A.forEach(function(e,a){var c=s;0!==a&&(c=s+"/"+a);var t={id:c,type:"MESH",style:{color:m,side:d,outline:f,opacity:g},points:e,interactable:h,extrude:T,position:y,rotation:I,visible:!0,zOrder:M};S&&(t.instancingId=S),l.push(t)}),b&&r){var x=w(A[0]),C={x:.5,y:.5};R&&(C.y=1.25);var N=F(A[0]).width/2*.8;3<N&&(N=2.9),l.push({id:s+"_TEXT",type:"TEXT",text:r,position:x,scalar:N,center:C,style:{color:"black",fontWeight:"bold"},interactable:!1})}if(R){var L=w(A[0]),v={x:.5,y:.5};p&&((L=p).z=0),b&&r&&(v.y=.25);var W=3,k=F(A[0]);W>k.width?W=k.width-.1:W>k.height&&(W=k.height-.1),l.push({id:s+"_SPRITE",type:"SPRITE",position:L,scalar:1,center:v,style:{img:R,maxWidth:W},interactable:!1})}return l}console.warn("Invalid shapes",JSON.stringify(e))},e.getCenter=w,e.getSize=F,e.stringArrayToPoints=function(e){if(e&&e.constructor===Array){var a=[];return e.forEach(function(e){e&&e.constructor===Array&&3===e.length&&a.push({x:parseFloat(e[0]),y:parseFloat(e[1]),z:parseFloat(e[2])})}),a}},e.applyInstancing=function(t,s){var n=new Map,r=function(){for(var e=0;e<t.length;e++){var a=t[e];if(a.instancingId){var c=n.get(a.instancingId);c||(c=[]),c.push(a),n.set(a.instancingId,c),t.splice(e,1),r()}}};r(),n.forEach(function(e,a,c){o(e,a,s)})},Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=floormap-utils.umd.min.js.map

@@ -5,5 +5,5 @@ export {

getSize,
stringArrayToPoints
stringArrayToPoints,
} from './src/spatial-service.js'
export { applyInstancing } from './src/instancing.js'
{
"name": "@wework/floormap-utils",
"version": "1.0.0",
"version": "1.0.1-next.34+3c99aeb",
"jsnext:main": "dist/floormap-utils.es.js",

@@ -14,4 +14,6 @@ "module": "dist/floormap-utils.es.js",

"format": "prettier --write --semi false '*.js' 'src/*.js' && standard --fix",
"test": "npm run lint && npm run testonly",
"build": "npm-run-all test clean rollup rollup:min size",
"test": "jest",
"test:cover": "jest --coverage",
"test:ci": "jest --ci --coverage",
"build": "npm-run-all rollup rollup:min size",
"clean": "rimraf dist",

@@ -21,3 +23,4 @@ "rollup": "rollup -c",

"size": "echo \"Gzipped Size: $(cat dist/floormap-utils.umd.min.js | gzip-size)\"",
"precommit": "lint-staged"
"precommit": "lint-staged",
"dev": "rollup -c -w"
},

@@ -45,2 +48,3 @@ "author": "",

"rollup-plugin-uglify": "^2.0.1",
"rollup-watch": "^4.3.1",
"standard": "^10.0.2",

@@ -71,3 +75,4 @@ "standard-version": "^4.0.0"

}
}
},
"gitHead": "3c99aeb114ff261cc1b53168af8acf3019ec34cb"
}

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