New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

css-band-aid

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-band-aid - npm Package Compare versions

Comparing version 4.2.2 to 4.2.3

.eslintignore

12

lib/chunk.js
'use strict';
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _getIterator = require('babel-runtime/core-js/get-iterator')['default'];
var _regeneratorRuntime = require('babel-runtime/regenerator')['default'];
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];
Object.defineProperty(exports, '__esModule', {

@@ -9,3 +13,3 @@ value: true

exports['default'] = chunk;
var marked0$0 = [chunks].map(regeneratorRuntime.mark);
var marked0$0 = [chunks].map(_regeneratorRuntime.mark);

@@ -34,3 +38,3 @@ var _css = require('css');

var rules, splitRules, selectorCount, i, rule, ruleSelectorCount;
return regeneratorRuntime.wrap(function chunks$(context$1$0) {
return _regeneratorRuntime.wrap(function chunks$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {

@@ -96,3 +100,3 @@ case 0:

try {
for (var _iterator = chunks(fullAst)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
for (var _iterator = _getIterator(chunks(fullAst)), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _step$value = _step.value;

@@ -99,0 +103,0 @@ var ast = _step$value.ast;

@@ -0,11 +1,8 @@

/* eslint no-process-exit: 0 */
'use strict';
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];
/* eslint no-process-exit: 0 */
require('colors');
var _colors = require('colors');
var _colors2 = _interopRequireWildcard(_colors);
var _yargs = require('yargs');

@@ -12,0 +9,0 @@

'use strict';
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _slicedToArray = require('babel-runtime/helpers/sliced-to-array')['default'];
var _slicedToArray = function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } };
var _Promise = require('babel-runtime/core-js/promise')['default'];
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];
Object.defineProperty(exports, '__esModule', {

@@ -12,6 +14,4 @@ value: true

var _colors = require('colors');
require('colors');
var _colors2 = _interopRequireWildcard(_colors);
var _yargs = require('yargs');

@@ -49,3 +49,3 @@

var chunks = data.map(function (ast, index) {
var chunkData = data.map(function (ast, index) {
var outputFilename = _path2['default'].join(outputDir, '' + basename + '.' + index + '.css');

@@ -62,3 +62,3 @@

return Promise.all([chunks, sourcemaps]).then(function (_ref2) {
return _Promise.all([chunkData, sourcemaps]).then(function (_ref2) {
var _ref22 = _slicedToArray(_ref2, 1);

@@ -85,3 +85,3 @@

return acc.concat([x]);
}, []).toPromise(Promise).then(function () {
}, []).toPromise(_Promise).then(function () {
console.log('complete');

@@ -88,0 +88,0 @@ })['catch'](function (err) {

'use strict';
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];

@@ -5,0 +5,0 @@ Object.defineProperty(exports, '__esModule', {

'use strict';
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];

@@ -5,0 +5,0 @@ Object.defineProperty(exports, '__esModule', {

'use strict';
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];

@@ -5,0 +5,0 @@ Object.defineProperty(exports, '__esModule', {

'use strict';
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _Promise = require('babel-runtime/core-js/promise')['default'];
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];
Object.defineProperty(exports, '__esModule', {

@@ -10,10 +12,2 @@ value: true

var _import = require('lodash');
var _import2 = _interopRequireWildcard(_import);
var _path = require('path');
var _path2 = _interopRequireWildcard(_path);
var _fsp = require('fs-promise');

@@ -83,3 +77,3 @@

return acc.concat([x]);
}, []).toPromise(Promise);
}, []).toPromise(_Promise);
}

@@ -86,0 +80,0 @@

'use strict';
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];

@@ -5,0 +5,0 @@ Object.defineProperty(exports, '__esModule', {

'use strict';
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];

@@ -21,11 +21,2 @@ Object.defineProperty(exports, '__esModule', {

// CLI Runner will work with pre-transpiled babel output, thus needing this
// polyfill. Not necessary when running unit tests. Babel will throw if this
// module is loaded twice. Using ES6 dynamic module loading will not work
// either since that polyfill will not be available till after a polyfill is
// loaded. Hence the reason for falling back to CommonJS style module import.
if (!global._babelPolyfill) {
require('babel/polyfill');
}
function defaultOptions(options) {

@@ -32,0 +23,0 @@ var _defaultOptions = {

'use strict';
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _Object$keys = require('babel-runtime/core-js/object/keys')['default'];
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];
Object.defineProperty(exports, '__esModule', {

@@ -38,3 +40,3 @@ value: true

Object.keys(_commands2['default']).map(function (key) {
_Object$keys(_commands2['default']).map(function (key) {
return _commands2['default'][key];

@@ -41,0 +43,0 @@ }).forEach(function (x) {

@@ -21,3 +21,3 @@ {

"repository": "css-band-aid/css-band-aid",
"version": "4.2.2",
"version": "4.2.3",
"license": "Apache v2",

@@ -35,3 +35,3 @@ "bin": {

"dependencies": {
"babel": "^5.0.12",
"babel-runtime": "^5.1.11",
"colors": "^1.0.3",

@@ -47,10 +47,14 @@ "columnify": "^1.4.1",

"devDependencies": {
"babel": "^5.0.12",
"babel-eslint": "^3.0.1",
"chai": "^2.2.0",
"eslint": "^0.19.0",
"mocha": "^2.2.1"
},
"scripts": {
"build": "rm -rf lib && babel src --out-dir lib",
"test": "mocha --reporter spec --ui exports",
"prepublish": "npm run build"
"build": "rm -rf lib && babel --optional runtime src --out-dir lib",
"test": "mocha --reporter spec --ui exports && npm run lint",
"lint": "eslint ./",
"prepublish": "npm run test && npm run build"
}
}
/* eslint no-process-exit: 0 */
import colors from 'colors';
import 'colors';
import yargs from 'yargs';

@@ -4,0 +4,0 @@ import parseCliArgs from './parse-cli-args';

/* eslint no-process-exit: 0 */
import colors from 'colors';
import 'colors';
import yargs from 'yargs';

@@ -16,3 +16,3 @@ import common from './common-yargs';

.then(({data, maps, totalSelectorCount}) => {
let chunks = data.map((ast, index) => {
let chunkData = data.map((ast, index) => {
let outputFilename = path.join(outputDir, `${basename}.${index}.css`);

@@ -29,3 +29,3 @@

return Promise.all([chunks, sourcemaps])
return Promise.all([chunkData, sourcemaps])
.then(([chunks, ]) => chunks);

@@ -117,2 +117,2 @@ });

parseArgs
}
};

@@ -104,2 +104,2 @@ /* eslint no-process-exit: 0 */

parseArgs
}
};

@@ -7,2 +7,2 @@ import count from './count';

chunk
}
};
export default {
SELECTOR_LIMIT: 4095
}
};
/* eslint no-use-before-define: 0 */
import _ from 'lodash';
import path from 'path';
import fsp from 'fs-promise';

@@ -65,2 +63,2 @@ import css from 'css';

countPath
}
};

@@ -48,2 +48,2 @@ /* eslint no-use-before-define: 0 */

ensureDir
}
};

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

// CLI Runner will work with pre-transpiled babel output, thus needing this
// polyfill. Not necessary when running unit tests. Babel will throw if this
// module is loaded twice. Using ES6 dynamic module loading will not work
// either since that polyfill will not be available till after a polyfill is
// loaded. Hence the reason for falling back to CommonJS style module import.
if (!global._babelPolyfill) {
require('babel/polyfill');
}
import fsp from 'fs-promise';

@@ -11,0 +2,0 @@ import chunker from './chunk';

import { expect } from 'chai';
import fs from 'fs';
import path from 'path';
import fsp from 'fs-promise';
import { chunkFile } from '../src';

@@ -6,0 +4,0 @@ import _ from 'lodash';

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