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

@shopify/dates

Package Overview
Dependencies
Maintainers
13
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/dates - npm Package Compare versions

Comparing version 0.0.2-sknext-beta.2 to 0.0.8-sknext-beta.8

1

build/ts/apply-time-zone-offset.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.applyTimeZoneOffset = void 0;
var get_time_zone_offset_1 = require("./get-time-zone-offset");

@@ -4,0 +5,0 @@ function applyTimeZoneOffset(date, timeZone1, timeZone2) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimeUnit = void 0;
var TimeUnit;

@@ -4,0 +5,0 @@ (function (TimeUnit) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deprecatedTimezones = void 0;
exports.deprecatedTimezones = {

@@ -4,0 +5,0 @@ 'America/Indiana': 'America/Indiana/Indianapolis',

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDateTimeParts = void 0;
var tslib_1 = require("tslib");

@@ -4,0 +5,0 @@ var decorators_1 = require("@shopify/decorators");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTimeZoneOffset = void 0;
var get_date_time_parts_1 = require("./get-date-time-parts");

@@ -4,0 +5,0 @@ function getTimeZoneOffset(date, timeZone1, timeZone2) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFutureDate = void 0;
function isFutureDate(date, now) {

@@ -4,0 +5,0 @@ if (now === void 0) { now = new Date(); }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isLessThanOneDayAgo = void 0;
var is_future_date_1 = require("./is-future-date");

@@ -4,0 +5,0 @@ var constants_1 = require("./constants");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isLessThanOneHourAgo = void 0;
var is_future_date_1 = require("./is-future-date");

@@ -4,0 +5,0 @@ var constants_1 = require("./constants");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isLessThanOneMinuteAgo = void 0;
var is_future_date_1 = require("./is-future-date");

@@ -4,0 +5,0 @@ var constants_1 = require("./constants");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isLessThanOneWeekAgo = void 0;
var is_future_date_1 = require("./is-future-date");

@@ -4,0 +5,0 @@ var constants_1 = require("./constants");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isLessThanOneWeekAway = void 0;
var is_future_date_1 = require("./is-future-date");

@@ -4,0 +5,0 @@ var constants_1 = require("./constants");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isLessThanOneYearAgo = void 0;
var is_future_date_1 = require("./is-future-date");

@@ -4,0 +5,0 @@ var constants_1 = require("./constants");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isLessThanOneYearAway = void 0;
var is_future_date_1 = require("./is-future-date");

@@ -4,0 +5,0 @@ var constants_1 = require("./constants");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSameDay = void 0;
var get_date_time_parts_1 = require("./get-date-time-parts");

@@ -4,0 +5,0 @@ var is_same_month_1 = require("./is-same-month");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSameMonth = void 0;
var get_date_time_parts_1 = require("./get-date-time-parts");

@@ -4,0 +5,0 @@ var is_same_year_1 = require("./is-same-year");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSameYear = void 0;
var get_date_time_parts_1 = require("./get-date-time-parts");

@@ -4,0 +5,0 @@ function isSameYear(date1, date2, timeZone) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isToday = void 0;
var is_same_day_1 = require("./is-same-day");

@@ -4,0 +5,0 @@ function isToday(date, timeZone) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isTomorrow = void 0;
var is_same_day_1 = require("./is-same-day");

@@ -4,0 +5,0 @@ function isTomorrow(date, timeZone) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isYesterday = void 0;
var is_same_day_1 = require("./is-same-day");

@@ -4,0 +5,0 @@ function isYesterday(date, timeZone) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapDeprecatedTimezones = void 0;
var deprecated_timezones_1 = require("./deprecated-timezones");

@@ -4,0 +5,0 @@ function mapDeprecatedTimezones(timezone) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseDateStringParts = void 0;
var tslib_1 = require("tslib");

@@ -4,0 +5,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseDateString = void 0;
var apply_time_zone_offset_1 = require("./apply-time-zone-offset");

@@ -4,0 +5,0 @@ var parse_date_string_parts_1 = require("./parse-date-string-parts");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sanitiseDateString = void 0;
/**

@@ -4,0 +5,0 @@ * In Microsoft Edge, Intl.DateTimeFormat returns invisible characters

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.unapplyTimeZoneOffset = void 0;
var get_time_zone_offset_1 = require("./get-time-zone-offset");

@@ -4,0 +5,0 @@ function unapplyTimeZoneOffset(date, timeZone1, timeZone2) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dateTimeFormatCacheKey = exports.formatDate = exports.memoizedGetDateTimeFormat = void 0;
var tslib_1 = require("tslib");

@@ -4,0 +5,0 @@ var intl = new Map();

6

build/ts/utilities/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var formatDate_1 = require("./formatDate");
exports.formatDate = formatDate_1.formatDate;
exports.memoizedGetDateTimeFormat = formatDate_1.memoizedGetDateTimeFormat;
Object.defineProperty(exports, "formatDate", { enumerable: true, get: function () { return formatDate_1.formatDate; } });
Object.defineProperty(exports, "memoizedGetDateTimeFormat", { enumerable: true, get: function () { return formatDate_1.memoizedGetDateTimeFormat; } });
var timezone_1 = require("./timezone");
exports.getIanaTimeZone = timezone_1.getIanaTimeZone;
Object.defineProperty(exports, "getIanaTimeZone", { enumerable: true, get: function () { return timezone_1.getIanaTimeZone; } });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getIanaTimeZone = void 0;
var formatDate_1 = require("./formatDate");

@@ -4,0 +5,0 @@ function getIanaTimeZone(locale, options) {

{
"name": "@shopify/dates",
"version": "0.0.2-sknext-beta.2",
"version": "0.0.8-sknext-beta.8",
"license": "MIT",

@@ -27,7 +27,7 @@ "description": "Lightweight date operations library",

"dependencies": {
"@shopify/decorators": "0.0.2-sknext-beta.2",
"@shopify/decorators": "0.0.8-sknext-beta.8",
"tslib": "^1.9.3"
},
"devDependencies": {
"@shopify/jest-dom-mocks": "0.0.2-sknext-beta.2"
"@shopify/jest-dom-mocks": "0.0.8-sknext-beta.8"
},

@@ -34,0 +34,0 @@ "files": [

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