Socket
Socket
Sign inDemoInstall

ember-cli-moment-shim

Package Overview
Dependencies
299
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.7.1 to 3.8.0

15

addon/lib.js
/* globals self */
export default self.moment;
import config from 'ember-get-config';
let moment;
const localeOutputPath = config.moment && config.moment.includeTimezone;
if (typeof self.FastBoot === 'undefined') {
moment = self.moment;
} else if (localeOutputPath) {
moment = self.FastBoot.require('moment-timezone');
} else {
moment = self.FastBoot.require('moment');
}
export default moment;

46

index.js

@@ -28,14 +28,2 @@ /* globals require, module, process */

updateFastBootManifest(manifest) {
let target = 'fastboot-moment.js';
if (this._options.includeTimezone) {
target = 'fastboot-moment-timezone.js';
}
manifest.vendorFiles.push('moment/' + target);
return manifest;
},
importDependencies() {

@@ -46,6 +34,3 @@ let options = this._options;

this.import(
{
development: 'vendor/moment-timezone/tz.js',
production: 'vendor/moment-timezone/tz.min.js'
},
'vendor/moment-timezone/tz.js',
{ prepend: true }

@@ -57,6 +42,3 @@ );

this.import(
{
development: 'vendor/moment/min/moment-with-locales.js',
production: 'vendor/moment/min/moment-with-locales.min.js'
},
'vendor/moment/moment-with-locales.js',
{ prepend: true }

@@ -74,6 +56,3 @@ );

this.import(
{
development: 'vendor/moment/moment.js',
production: 'vendor/moment/min/moment.min.js'
},
'vendor/moment/moment.js',
{ prepend: true }

@@ -128,13 +107,5 @@ );

treeForPublic() {
let hasFastBoot = this.project.addons.some(
addon => addon.name === 'ember-cli-fastboot'
);
let publicTree = this._super.treeForPublic.apply(this, arguments);
let options = this._options;
let trees = [];
if (publicTree && hasFastBoot) {
trees.push(publicTree);
}
if (options.localeOutputPath) {

@@ -187,3 +158,2 @@ trees.push(

let timezonePath;
let timezoneMinPath;

@@ -193,3 +163,2 @@ switch (options.includeTimezone) {

timezonePath = 'builds/moment-timezone-with-data.js';
timezoneMinPath = 'builds/moment-timezone-with-data.min.js';
break;

@@ -206,7 +175,5 @@ case '2010-2020':

timezonePath = 'builds/moment-timezone-with-data-*.js';
timezoneMinPath = 'builds/moment-timezone-with-data-*.min.js';
break;
case 'none':
timezonePath = 'moment-timezone.js';
timezoneMinPath = 'builds/moment-timezone.min.js';
break;

@@ -229,9 +196,2 @@ default:

);
trees.push(
rename(
funnel(timezoneNode, { include: [timezoneMinPath] }),
() => 'moment-timezone/tz.min.js'
)
);
}

@@ -238,0 +198,0 @@

The MIT License (MIT)
Copyright (c) 2015
Copyright (c) 2019

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

{
"name": "ember-cli-moment-shim",
"version": "3.7.1",
"version": "3.8.0",
"description": "Brings moment and moment-timezone into your Ember applications",

@@ -11,6 +11,2 @@ "keywords": [

],
"homepage": "https://github.com/jasonmit/ember-cli-moment-shim",
"bugs": {
"url": "https://github.com/jasonmit/ember-cli-moment-shim/issues"
},
"repository": {

@@ -26,10 +22,15 @@ "type": "git",

},
"homepage": "https://github.com/jasonmit/ember-cli-moment-shim",
"bugs": {
"url": "https://github.com/jasonmit/ember-cli-moment-shim/issues"
},
"scripts": {
"build": "ember build",
"lint:js": "eslint ./*.js addon addon-test-support app config lib server test-support tests",
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint .",
"start": "ember serve",
"test": "ember try:each"
"test": "EMBER_CLI_IGNORE_ADDON_NAME_MISMATCH=true ember test",
"test:all": "EMBER_CLI_IGNORE_ADDON_NAME_MISMATCH=true ember try:each"
},
"dependencies": {
"ember-cli-babel": "^6.6.0",
"broccoli-funnel": "^2.0.0",

@@ -40,3 +41,5 @@ "broccoli-merge-trees": "^2.0.0",

"chalk": "^1.1.3",
"ember-cli-babel": "^7.1.2",
"ember-cli-import-polyfill": "^0.2.0",
"ember-get-config": "",
"lodash.defaults": "^4.2.0",

@@ -47,27 +50,31 @@ "moment": "^2.19.3",

"devDependencies": {
"broccoli-asset-rev": "^2.4.5",
"ember-cli": "~3.0.0",
"ember-cli-dependency-checker": "^2.0.0",
"ember-cli-eslint": "^4.2.1",
"ember-cli-htmlbars": "^2.0.1",
"ember-cli-htmlbars-inline-precompile": "^1.0.0",
"ember-cli-inject-live-reload": "^1.4.1",
"ember-cli-qunit": "^4.1.1",
"ember-cli-shims": "^1.2.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^2.0.0",
"ember-disable-prototype-extensions": "^1.1.2",
"@ember/optional-features": "^0.6.3",
"broccoli-asset-rev": "^2.7.0",
"ember-cli": "~3.9.0",
"ember-cli-dependency-checker": "^3.1.0",
"ember-cli-eslint": "^4.2.3",
"ember-cli-fastboot": "^2.1.1",
"ember-cli-fastboot-testing": "^0.0.17",
"ember-cli-htmlbars": "^3.0.0",
"ember-cli-htmlbars-inline-precompile": "^1.0.3",
"ember-cli-inject-live-reload": "^1.8.2",
"ember-cli-sri": "^2.1.1",
"ember-cli-template-lint": "^1.0.0-beta.1",
"ember-cli-uglify": "^2.1.0",
"ember-disable-prototype-extensions": "^1.1.3",
"ember-export-application-global": "^2.0.0",
"ember-load-initializers": "^1.0.0",
"ember-load-initializers": "^1.1.0",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-resolver": "^4.0.0",
"ember-source": "~3.0.0",
"ember-source-channel-url": "^1.0.1",
"ember-try": "^0.2.23",
"eslint-plugin-ember": "^5.0.0",
"eslint-plugin-node": "^5.2.1",
"loader.js": "^4.2.3"
"ember-qunit": "^3.4.1",
"ember-resolver": "^5.0.1",
"ember-source": "~3.9.0",
"ember-source-channel-url": "^1.1.0",
"ember-try": "^1.0.0",
"eslint-plugin-ember": "^5.2.0",
"eslint-plugin-node": "^7.0.1",
"loader.js": "^4.7.0",
"qunit-dom": "^0.8.0"
},
"engines": {
"node": "^4.5 || 6.* || >= 7.*"
"node": "6.* || 8.* || >= 10.*"
},

@@ -74,0 +81,0 @@ "ember-addon": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc