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

dxf-parser

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dxf-parser - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

.vscode/settings.json

84

.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/index.js",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"preLaunchTask": null,
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"externalConsole": false,
"sourceMaps": false,
"outDir": null
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"address": "localhost",
"restart": false,
"sourceMaps": false,
"outDir": null,
"localRoot": "${workspaceRoot}",
"remoteRoot": null
},
{
"name": "Attach to Process",
"type": "node",
"request": "attach",
"processId": "${command.PickProcess}",
"port": 5858,
"sourceMaps": false,
"outDir": null
},
{
"name": "Run mocha",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": ["test/**/*.js", "--no-timeouts"],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"env": { "NODE_ENV": "testing"}
}
]
}
"version": "0.1.0",
// List of configurations. Add new configurations or edit existing ones.
// ONLY "node" and "mono" are supported, change "type" to switch.
"configurations": [
{
// Name of configuration; appears in the launch configuration drop down menu.
"name": "Run mocha",
// Type of configuration. Possible values: "node", "mono".
"type": "node",
// Workspace relative or absolute path to the program.
"program": "${workspaceRoot}\\node_modules\\mocha\\bin\\_mocha",
// Automatically stop program after launch.
"stopOnEntry": false,
// Command line arguments passed to the program.
"args": ["test/entities/LineParser.test.js"],
// Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
"cwd": "${workspaceRoot}",
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
"runtimeExecutable": null,
// Environment variables passed to the program.
"env": { },
// Use JavaScript source maps (if they exist).
"sourceMaps": false,
// If JavaScript source maps are enabled, the generated code is expected in this directory.
"outDir": null
}
]
}

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

var blocks = {}, block;
curr = scanner.next();
while(curr.value !== 'EOF') {

@@ -631,3 +631,3 @@ if(groupIs(0, 'ENDSEC')) {

}
if(groupIs(0, 'ENDBLK')) {

@@ -993,3 +993,3 @@ curr = scanner.next();

}
var entity;

@@ -1234,3 +1234,3 @@ // Supported entities here

if(curr.code === 0 || vertexIsFinished) break;
switch(curr.code) {

@@ -1466,3 +1466,4 @@ case 10: // X

case 70: // 1 = Closed shape, 128 = plinegen?, 0 = default
entity.shape = (curr.value === 1);
entity.shape = ((curr.value & 1) === 1);
entity.hasContinuousLinetypePattern = ((curr.value & 128) === 128);
curr = scanner.next();

@@ -1642,2 +1643,6 @@ break;

break;
case 50: // Rotation in degrees
entity.rotation = curr.value;
curr = scanner.next();
break;
case 1: // Text

@@ -1831,7 +1836,7 @@ entity.text = curr.value;

};
var ensureHandle = function(entity) {
if(!entity) throw new TypeError('entity cannot be undefined or null');
if(!entity.handle) entity.handle = lastHandle++;
if(!entity.handle) entity.handle = lastHandle++;
};

@@ -1838,0 +1843,0 @@

@@ -154,5 +154,5 @@ var DxfArrayScanner = require('./DxfArrayScanner.js'),

var blocks = {}, block;
curr = scanner.next();
while(curr.value !== 'EOF') {

@@ -243,3 +243,3 @@ if(groupIs(0, 'ENDSEC')) {

}
if(groupIs(0, 'ENDBLK')) {

@@ -605,3 +605,3 @@ curr = scanner.next();

}
var entity;

@@ -846,3 +846,3 @@ // Supported entities here

if(curr.code === 0 || vertexIsFinished) break;
switch(curr.code) {

@@ -1078,3 +1078,4 @@ case 10: // X

case 70: // 1 = Closed shape, 128 = plinegen?, 0 = default
entity.shape = (curr.value === 1);
entity.shape = ((curr.value & 1) === 1);
entity.hasContinuousLinetypePattern = ((curr.value & 128) === 128);
curr = scanner.next();

@@ -1254,2 +1255,6 @@ break;

break;
case 50: // Rotation in degrees
entity.rotation = curr.value;
curr = scanner.next();
break;
case 1: // Text

@@ -1443,7 +1448,7 @@ entity.text = curr.value;

};
var ensureHandle = function(entity) {
if(!entity) throw new TypeError('entity cannot be undefined or null');
if(!entity.handle) entity.handle = lastHandle++;
if(!entity.handle) entity.handle = lastHandle++;
};

@@ -1450,0 +1455,0 @@

{
"name": "dxf-parser",
"version": "0.4.6",
"version": "0.4.7",
"description": "Parse dxf files into a readable, logical js object.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -68,4 +68,1 @@

```
#### Contributors
bzuillsmith@gmail.com

@@ -52,2 +52,6 @@ // Type definitions for mocha 2.2.5

declare function before(description: string, action: () => void): void;
declare function before(description: string, action: (done: MochaDone) => void): void;
declare function setup(action: () => void): void;

@@ -61,2 +65,6 @@

declare function after(description: string, action: () => void): void;
declare function after(description: string, action: (done: MochaDone) => void): void;
declare function teardown(action: () => void): void;

@@ -70,2 +78,6 @@

declare function beforeEach(description: string, action: () => void): void;
declare function beforeEach(description: string, action: (done: MochaDone) => void): void;
declare function suiteSetup(action: () => void): void;

@@ -79,2 +91,6 @@

declare function afterEach(description: string, action: () => void): void;
declare function afterEach(description: string, action: (done: MochaDone) => void): void;
declare function suiteTeardown(action: () => void): void;

@@ -107,2 +123,8 @@

checkLeaks(): Mocha;
/**
* Function to allow assertion libraries to throw errors directly into mocha.
* This is useful when running tests in a browser because window.onerror will
* only receive the 'message' attribute of the Error.
*/
throwError(error: Error): void;
/** Enables growl support. */

@@ -109,0 +131,0 @@ growl(): Mocha;

Sorry, the diff of this file is too big to display

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