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

shipday-dispatch-js-lib

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shipday-dispatch-js-lib - npm Package Compare versions

Comparing version 0.0.2 to 0.0.4

2

artifact/min/shipday-lib.js

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

(function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,b.ShipdayDispatch=a()}})(function(){var a=Math.floor;return function(){function b(d,e,g){function a(j,i){if(!e[j]){if(!d[j]){var f="function"==typeof require&&require;if(!i&&f)return f(j,!0);if(h)return h(j,!0);var c=new Error("Cannot find module '"+j+"'");throw c.code="MODULE_NOT_FOUND",c}var k=e[j]={exports:{}};d[j][0].call(k.exports,function(b){var c=d[j][1][b];return a(c||b)},k,k.exports,b,d,e,g)}return e[j].exports}for(var h="function"==typeof require&&require,c=0;c<g.length;c++)a(g[c]);return a}return b}()({1:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d=a("./services/hello.world");Object.keys(d).forEach(function(a){"default"===a||"__esModule"===a||a in c&&c[a]===d[a]||Object.defineProperty(c,a,{enumerable:!0,get:function(){return d[a]}})});var e=a("./services/random.generator");Object.keys(e).forEach(function(a){"default"===a||"__esModule"===a||a in c&&c[a]===e[a]||Object.defineProperty(c,a,{enumerable:!0,get:function(){return e[a]}})});var f=a("./services/dateTimeHelper");Object.keys(f).forEach(function(a){"default"===a||"__esModule"===a||a in c&&c[a]===f[a]||Object.defineProperty(c,a,{enumerable:!0,get:function(){return f[a]}})})},{"./services/dateTimeHelper":2,"./services/hello.world":3,"./services/random.generator":4}],2:[function(b,c,d){"use strict";function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}Object.defineProperty(d,"__esModule",{value:!0}),d.dateTimeHelper=void 0;var g=function b(){var c=this;e(this,b),f(this,"getTodayYearMonthData",function(){var a=new Date,b=a.getDate(),c=a.getMonth()+1;c=10>c?"0"+c:c,b=10>b?"0"+b:b;var d=a.getFullYear();return d+"-"+c+"-"+b}),f(this,"getThisWeekRange",function(){var a=new Date,b=[],d=a.getDay(),e=d,f=new Date;return f.setDate(a.getDate()-e),b[0]=c.getDateForTableFilterMonthDateYear(f),f=new Date,f.setDate(a.getDate()-e+6),b[1]=c.getDateForTableFilterMonthDateYear(f),b}),f(this,"getDateForTableFilterMonthDateYear",function(a){var b=a.getFullYear(),c=a.getDate(),d=a.getMonth()+1;c=10>c?"0"+c:c;var e=this.getMonthFromNumber(d);return e+" "+c+", "+b}),f(this,"getMonthFromNumber",function(a){return 1===a?"Jan":2===a?"Feb":3===a?"Mar":4===a?"Apr":5===a?"May":6===a?"Jun":7===a?"Jul":8===a?"Aug":9===a?"Sep":10===a?"Oct":11===a?"Nov":12===a?"Dec":void 0}),f(this,"getBrowserTimeZoneOffset",function(){var a=new Date().getTimezoneOffset();if(0>a){var b=this.getHourMinuteSecondFromSeconds(60*(-1*a));return"+"+b}var b=this.getHourMinuteSecondFromSeconds(60*a);return"-"+b}),f(this,"getHourMinuteSecondFromSeconds",function(b){var c=Math.ceil,d=a(b/3600),e=b%3600,f=a(e/60),g=c(e%60);return 10>d&&(d="0"+d),10>f&&(f="0"+f),10>g&&(g="0"+g),d+":"+f+":"+g}),f(this,"getHourMinuteFromMin",function(b){var c=a(b/60),d=a(b%60),e="",f="";return e=1>=c?"Hour":"Hours",f=1>=d?"Min":"Mins",c+" "+e+" "+d+" "+f})},h=function(){return new g}();d.dateTimeHelper=h},{}],3:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.sayHello=function(){return"Hello from Shipday Dispatch Application"}},{}],4:[function(b,c,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.getAlphaNumericValue=function(b){for(var c=[],d=0;d<b;d++)c.push("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[a(Math.random()*"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".length)]);return c.join("")}},{}]},{},[1])(1)});
(function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,b.ShipdayDispatch=a()}})(function(){var a=Math.floor;return function(){function b(d,e,g){function a(j,i){if(!e[j]){if(!d[j]){var f="function"==typeof require&&require;if(!i&&f)return f(j,!0);if(h)return h(j,!0);var c=new Error("Cannot find module '"+j+"'");throw c.code="MODULE_NOT_FOUND",c}var k=e[j]={exports:{}};d[j][0].call(k.exports,function(b){var c=d[j][1][b];return a(c||b)},k,k.exports,b,d,e,g)}return e[j].exports}for(var h="function"==typeof require&&require,c=0;c<g.length;c++)a(g[c]);return a}return b}()({1:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d=a("./services/hello.world");Object.keys(d).forEach(function(a){"default"===a||"__esModule"===a||a in c&&c[a]===d[a]||Object.defineProperty(c,a,{enumerable:!0,get:function(){return d[a]}})});var e=a("./services/random.generator");Object.keys(e).forEach(function(a){"default"===a||"__esModule"===a||a in c&&c[a]===e[a]||Object.defineProperty(c,a,{enumerable:!0,get:function(){return e[a]}})});var f=a("./services/dateTimeHelper");Object.keys(f).forEach(function(a){"default"===a||"__esModule"===a||a in c&&c[a]===f[a]||Object.defineProperty(c,a,{enumerable:!0,get:function(){return f[a]}})})},{"./services/dateTimeHelper":2,"./services/hello.world":3,"./services/random.generator":4}],2:[function(b,c,d){"use strict";function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}Object.defineProperty(d,"__esModule",{value:!0}),d.dateTimeHelper=void 0;var g=function b(){var c=this;e(this,b),f(this,"getTodayYearMonthData",function(){var a=new Date,b=a.getDate(),c=a.getMonth()+1;c=10>c?"0"+c:c,b=10>b?"0"+b:b;var d=a.getFullYear();return d+"-"+c+"-"+b}),f(this,"getThisWeekRange",function(){var a=new Date,b=[],d=a.getDay(),e=d,f=new Date;return f.setDate(a.getDate()-e),b[0]=c.getDateForTableFilterMonthDateYear(f),f=new Date,f.setDate(a.getDate()-e+6),b[1]=c.getDateForTableFilterMonthDateYear(f),b}),f(this,"getDateForTableFilterMonthDateYear",function(a){var b=a.getFullYear(),c=a.getDate(),d=a.getMonth()+1;c=10>c?"0"+c:c;var e=this.getMonthFromNumber(d);return e+" "+c+", "+b}),f(this,"getMonthFromNumber",function(a){return 1===a?"Jan":2===a?"Feb":3===a?"Mar":4===a?"Apr":5===a?"May":6===a?"Jun":7===a?"Jul":8===a?"Aug":9===a?"Sep":10===a?"Oct":11===a?"Nov":12===a?"Dec":void 0}),f(this,"getBrowserTimeZoneOffset",function(){var a=new Date().getTimezoneOffset();if(0>a){var b=this.getHourMinuteSecondFromSeconds(60*(-1*a));return"+"+b}var b=this.getHourMinuteSecondFromSeconds(60*a);return"-"+b}),f(this,"getHourMinuteSecondFromSeconds",function(b){var c=Math.ceil,d=a(b/3600),e=b%3600,f=a(e/60),g=c(e%60);return 10>d&&(d="0"+d),10>f&&(f="0"+f),10>g&&(g="0"+g),d+":"+f+":"+g}),f(this,"getHourMinuteFromMin",function(b){var c=a(b/60),d=a(b%60),e="",f="";return e=1>=c?"Hour":"Hours",f=1>=d?"Min":"Mins",c+" "+e+" "+d+" "+f})},h=function(){return new g}();d.dateTimeHelper=h},{}],3:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.sayHello=function(){return"Hello from Shipday Dispatch Application 2021!"}},{}],4:[function(b,c,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.getAlphaNumericValue=function(b){for(var c=[],d=0;d<b;d++)c.push("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[a(Math.random()*"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".length)]);return c.join("")}},{}]},{},[1])(1)});

@@ -200,3 +200,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.ShipdayDispatch = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

function sayHello() {
return "Hello from Shipday Dispatch Application";
return "Hello from Shipday Dispatch Application 2021!";
}

@@ -203,0 +203,0 @@

{
"name": "shipday-dispatch-js-lib",
"version": "0.0.2",
"version": "0.0.4",
"description": "",

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

@@ -1,5 +0,33 @@

#### Setup
## Setup details
- [Package details](#package-details)
- [Usage](#usage)
- [Setup](#setup)
- [Test](#test)
- [Build](#build)
- [Minify](#minify)
- [Test, build and minify (Default task)](#test-build-and-minify-default-task)
- [Publish](#publish)
### Package details
---
[https://www.npmjs.com/package/shipday-dispatch-js-lib](https://www.npmjs.com/package/shipday-dispatch-js-lib)
### Usage
---
##### On browser
```
<script src="https://www.unpkg.com/shipday-dispatch-js-lib@version/artifact/min/shipday-lib.js">
</script>
```
##### On node environment
```
npm i shipday-dispatch-js-lib
```
### Setup
---
Run below command in project directory.

@@ -13,3 +41,3 @@

#### Test
### Test
---

@@ -21,3 +49,3 @@ Run below command in project directory.

#### Build
### Build
---

@@ -29,3 +57,3 @@ Run below command in project directory. Output will be in [artifact/shipday-lib.js](artifact/shipday-lib.js).

#### Minify
### Minify
---

@@ -37,3 +65,3 @@ Run below command in project directory. Output will be in [artifact/min/shipday-lib.js](artifact/min/shipday-lib.js).

#### Test, build and minify (Default task)
### Test, build and minify (Default task)
---

@@ -45,3 +73,3 @@ Run below command in project directory.

#### Publish
### Publish
---

@@ -48,0 +76,0 @@ To publish package to [npm registry](https://www.npmjs.com/package/shipday-dispatch-js-lib):

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