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

xmlcreate

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmlcreate - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

6

CHANGES.md

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

## 2.0.2 ##
* Update dependencies
* Use ESLint instead of TSLint
* Use npm instead of gulp
## 2.0.1 ##

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

2

lib/error.d.ts

@@ -21,2 +21,2 @@ /**

*/
export declare function getContext(obj: any): string;
export declare function getContext(obj: unknown): string;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -61,6 +61,7 @@ /**

*/
get name(): string;
/**
* Sets the name of this attribute.
*/
name: string;
* Sets the name of this attribute.
*/
set name(name: string);
/**

@@ -67,0 +68,0 @@ * Adds a character reference to this attribute and returns the new

@@ -0,0 +0,0 @@ "use strict";

@@ -45,6 +45,7 @@ /**

*/
get charData(): string;
/**
* Sets this attribute text.
*/
charData: string;
* Sets this attribute text.
*/
set charData(charData: string);
/**

@@ -51,0 +52,0 @@ * Returns an XML string representation of this attribute text.

@@ -0,0 +0,0 @@ "use strict";

@@ -50,6 +50,7 @@ /**

*/
get charData(): string;
/**
* Sets the character data of this CDATA section.
*/
charData: string;
* Sets the character data of this CDATA section.
*/
set charData(charData: string);
/**

@@ -56,0 +57,0 @@ * Returns an XML string representation of this CDATA section.

@@ -0,0 +0,0 @@ "use strict";

@@ -46,6 +46,7 @@ /**

*/
get charData(): string;
/**
* Sets the text of this character data.
*/
charData: string;
* Sets the text of this character data.
*/
set charData(charData: string);
/**

@@ -52,0 +53,0 @@ * Returns an XML string representation of this character data.

@@ -0,0 +0,0 @@ "use strict";

@@ -66,6 +66,7 @@ /**

*/
get char(): string;
/**
* Sets the character of this character reference.
*/
char: string;
* Sets the character of this character reference.
*/
set char(char: string);
/**

@@ -75,7 +76,8 @@ * Gets whether the decimal or hexadecimal representation should be used

*/
get hex(): boolean;
/**
* Sets whether the decimal or hexadecimal representation should be used
* for this character reference.
*/
hex: boolean;
* Sets whether the decimal or hexadecimal representation should be used
* for this character reference.
*/
set hex(hex: boolean);
/**

@@ -82,0 +84,0 @@ * Returns an XML string representation of this character reference.

@@ -0,0 +0,0 @@ "use strict";

@@ -49,6 +49,7 @@ /**

*/
get charData(): string;
/**
* Sets the text of this comment.
*/
charData: string;
* Sets the text of this comment.
*/
set charData(charData: string);
/**

@@ -55,0 +56,0 @@ * Returns an XML string representation of this comment.

@@ -0,0 +0,0 @@ "use strict";

@@ -61,6 +61,7 @@ /**

*/
get encoding(): string | undefined;
/**
* Sets the encoding associated with this declaration.
*/
encoding: string | undefined;
* Sets the encoding associated with this declaration.
*/
set encoding(encoding: string | undefined);
/**

@@ -70,14 +71,16 @@ * Gets the value of the standalone attribute associated with this

*/
get standalone(): string | undefined;
/**
* Sets the value of the standalone attribute associated with this
* declaration.
*/
standalone: string | undefined;
* Sets the value of the standalone attribute associated with this
* declaration.
*/
set standalone(standalone: string | undefined);
/**
* Gets the XML version associated with this declaration.
*/
get version(): string;
/**
* Sets the XML version associated with this declaration.
*/
version: string;
* Sets the XML version associated with this declaration.
*/
set version(version: string);
/**

@@ -84,0 +87,0 @@ * Returns an XML string representation of this declaration.

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -73,20 +73,23 @@ /**

*/
get name(): string;
/**
* Sets the name of the DTD.
*/
name: string;
* Sets the name of the DTD.
*/
set name(name: string);
/**
* Gets the public identifier of the DTD.
*/
get pubId(): string | undefined;
/**
* Sets the public identifier of the DTD.
*/
pubId: string | undefined;
* Sets the public identifier of the DTD.
*/
set pubId(pubId: string | undefined);
/**
* Gets the system identifier of the DTD.
*/
get sysId(): string | undefined;
/**
* Sets the system identifier of the DTD.
*/
sysId: string | undefined;
* Sets the system identifier of the DTD.
*/
set sysId(sysId: string | undefined);
/**

@@ -93,0 +96,0 @@ * Adds an attribute-list declaration to this document type declaration

@@ -0,0 +0,0 @@ "use strict";

@@ -43,6 +43,7 @@ /**

*/
get charData(): string;
/**
* Sets the text of this entity declaration.
*/
charData: string;
* Sets the text of this entity declaration.
*/
set charData(charData: string);
/**

@@ -49,0 +50,0 @@ * Returns an XML string representation of this entity declaration.

@@ -0,0 +0,0 @@ "use strict";

@@ -43,6 +43,7 @@ /**

*/
get charData(): string;
/**
* Sets the text of this element declaration.
*/
charData: string;
* Sets the text of this element declaration.
*/
set charData(charData: string);
/**

@@ -49,0 +50,0 @@ * Returns an XML string representation of this element declaration.

@@ -0,0 +0,0 @@ "use strict";

@@ -43,6 +43,7 @@ /**

*/
get charData(): string;
/**
* Sets the text of this entity declaration.
*/
charData: string;
* Sets the text of this entity declaration.
*/
set charData(charData: string);
/**

@@ -49,0 +50,0 @@ * Returns an XML string representation of this entity declaration.

@@ -0,0 +0,0 @@ "use strict";

@@ -43,6 +43,7 @@ /**

*/
get charData(): string;
/**
* Sets the text of this notation declaration.
*/
charData: string;
* Sets the text of this notation declaration.
*/
set charData(charData: string);
/**

@@ -49,0 +50,0 @@ * Returns an XML string representation of this notation declaration.

@@ -0,0 +0,0 @@ "use strict";

@@ -43,6 +43,7 @@ /**

*/
get name(): string;
/**
* Sets the name of this parameter entity reference.
*/
name: string;
* Sets the name of this parameter entity reference.
*/
set name(name: string);
/**

@@ -49,0 +50,0 @@ * Returns an XML string representation of this parameter entity reference.

@@ -0,0 +0,0 @@ "use strict";

@@ -89,6 +89,7 @@ /**

*/
get name(): string;
/**
* Sets the name of this element.
*/
name: string;
* Sets the name of this element.
*/
set name(name: string);
/**

@@ -95,0 +96,0 @@ * Adds an attribute to this element and returns the new attribute.

@@ -0,0 +0,0 @@ "use strict";

@@ -43,6 +43,7 @@ /**

*/
get name(): string;
/**
* Sets the name of this entity reference.
*/
name: string;
* Sets the name of this entity reference.
*/
set name(name: string);
/**

@@ -49,0 +50,0 @@ * Returns an XML string representation of this entity reference.

@@ -0,0 +0,0 @@ "use strict";

@@ -50,13 +50,15 @@ /**

*/
get content(): string | undefined;
/**
* Sets the content of this processing instruction.
*/
content: string | undefined;
* Sets the content of this processing instruction.
*/
set content(content: string | undefined);
/**
* Gets the target of this processing instruction.
*/
get target(): string;
/**
* Sets the content of this processing instruction.
*/
target: string;
* Sets the content of this processing instruction.
*/
set target(target: string);
/**

@@ -63,0 +65,0 @@ * Returns an XML string representation of this processing instruction.

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -58,2 +58,2 @@ /**

*/
export declare function isUndefined(val: any): val is undefined;
export declare function isUndefined(val: unknown): val is undefined;

@@ -0,0 +0,0 @@ "use strict";

xmlcreate
Copyright (C) 2016-2019 Michael Kourlas
Copyright (C) 2016-2020 Michael Kourlas
{
"name": "xmlcreate",
"version": "2.0.1",
"version": "2.0.2",
"description": "Simple XML builder for Node.js",

@@ -15,3 +15,3 @@ "keywords": [

"name": "Michael Kourlas",
"email": "michael@kourlas.net"
"email": "michael@kourlas.com"
},

@@ -32,19 +32,27 @@ "files": [

},
"scripts": {
"build": "npm run-script prod && npm run-script test-prod && npm run-script docs",
"clean": "rimraf lib",
"clean-docs": "rimraf docs",
"clean-test": "rimraf test/lib",
"dev": "npm run-script clean && npm run-script lint && tsc -p tsconfig.json --sourceMap",
"docs": "npm run-script clean-docs && typedoc --mode file --module commonjs --out docs --target es5 --tsconfig tsconfig.json",
"lint": "eslint . --ext .ts",
"prod": "npm run-script clean && npm run-script lint && tsc -p tsconfig.json",
"test": "npm run-script test-prod",
"test-dev": "npm run-script clean-test && tsc -p test/tsconfig.json --sourceMap && mocha test/lib",
"test-prod": "npm run-script clean-test && tsc -p test/tsconfig.json && mocha test/lib"
},
"devDependencies": {
"@types/chai": "^4.1.7",
"@types/mocha": "^5.2.6",
"@types/chai": "^4.2.8",
"@types/mocha": "^7.0.1",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"chai": "^4.2.0",
"del": "^4.0.0",
"gulp": "^4.0.0",
"gulp-mocha": "^6.0.0",
"gulp-sourcemaps": "^2.6.5",
"gulp-tslint": "^8.1.4",
"gulp-typedoc": "^2.2.2",
"gulp-typescript": "^5.0.0",
"merge2": "^1.2.3",
"mocha": "^6.0.2",
"tslint": "^5.13.1",
"typedoc": "^0.14.2",
"typescript": "^3.3.3333"
"eslint": "^6.8.0",
"mocha": "^7.0.1",
"rimraf": "^3.0.1",
"typedoc": "^0.16.9",
"typescript": "^3.7.5"
}
}

@@ -29,3 +29,3 @@ # xmlcreate #

You can also build xmlcreate from source using npm and gulp:
You can also build xmlcreate from source using npm:

@@ -35,10 +35,10 @@ ```

npm install
./node_modules/.bin/gulp
npm run-script build
```
The `default` target will build the production variant of xmlcreate, run all
The `build` script will build the production variant of xmlcreate, run all
tests, and build the documentation.
You can build the production variant without running tests using the target
`prod`. You can also build the development version using the target `dev`.
You can build the production variant without running tests using the script
`prod`. You can also build the development version using the script `dev`.
The only difference between the two is that the development version includes

@@ -49,8 +49,8 @@ source maps.

The documentation for the current version is available [here](http://www.kourlas.com/node-xmlcreate/docs/2.0.1/).
The documentation for the current version is available [here](http://www.kourlas.com/node-xmlcreate/docs/2.0.2/).
You can also build the documentation using gulp:
You can also build the documentation using npm:
```
gulp docs
npm run-script docs
```

@@ -132,11 +132,11 @@

xmlcreate includes a set of tests to verify core functionality. You can run
the tests using gulp:
the tests using npm:
```
gulp test
npm run-script test
```
The `test` target builds the production variant of xmlcreate before running
the tests. The `test-prod` target does the same thing, while the `test-dev`
target builds the development variant first instead.
The `test` script builds the production variant of xmlcreate before running
the tests. The `test-prod` script does the same thing, while the `test-dev`
script builds the development variant first instead.

@@ -143,0 +143,0 @@ ## License ##

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