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

assets-expander

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assets-expander - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

.gitattributes

6

History.md

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

0.4.0 / 2012-08-06
==================
* Added full windows support with tests.
* Patched yaml.js to support CRLF line endings.
0.3.1 / 2012-08-02

@@ -2,0 +8,0 @@ ==================

2

lib/assets.js

@@ -10,3 +10,3 @@ var fs = require('fs'),

try {
this.yamlSource = yaml.eval(fs.readFileSync(pathToYaml).toString());
this.yamlSource = yaml.eval(fs.readFileSync(pathToYaml, 'utf-8'));
} catch (e) {

@@ -13,0 +13,0 @@ throw new AssetsExpander.YamlSyntaxError(e.toString());

@@ -11,3 +11,3 @@ {

},
"version": "0.3.1",
"version": "0.4.0",
"main": "index.js",

@@ -14,0 +14,0 @@ "devDependencies": {

@@ -12,2 +12,4 @@

var isWindows = process.platform == 'win32';
/**

@@ -26,3 +28,3 @@ * Return 'near "context"' where context

.slice(0, 25)
.replace(/\n/g, '\\n')
.replace(isWindows ? /\r\n/g : /\n/g, '\\n')
.replace(/"/g, '\\\"')

@@ -40,5 +42,5 @@ return 'near "' + str + '"'

['comment', /^#[^\n]*/],
['indent', /^\n( *)/],
['indent', isWindows ? /^\r\n( *)/ : /^\n( *)/],
['space', /^ +/],
['empty', /^\n$/],
['empty', isWindows ? /^\r\n$/ : /^\n$/],
['true', /^(enabled|true|yes|on)/],

@@ -45,0 +47,0 @@ ['false', /^(disabled|false|no|off)/],

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