Socket
Socket
Sign inDemoInstall

moddle-xml

Package Overview
Dependencies
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moddle-xml - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

lib/reader.js

37

Gruntfile.js

@@ -23,3 +23,3 @@ module.exports = function(grunt) {

},
jshint: {

@@ -36,20 +36,23 @@ src: [

},
jasmine_node: {
options: {
specNameMatcher: '.*Spec',
jUnit: {
report: true,
savePath : 'tmp/reports/jasmine',
useDotNotation: true,
consolidate: true
}
},
all: [ 'test/spec/' ]
mochaTest: {
test: {
options: {
reporter: 'spec',
require: [
'./test/expect.js'
]
},
src: ['test/**/*.js']
}
},
watch: {
test: {
files: [ '<%= config.sources %>/**/*.js', '<%= config.tests %>/**/*.js'],
tasks: [ 'jasmine_node']
files: [ '<%= config.sources %>/**/*.js', '<%= config.tests %>/**/*.js' ],
tasks: [ 'test']
}
},
jsdoc: {

@@ -67,7 +70,7 @@ dist: {

// tasks
grunt.registerTask('test', [ 'jasmine_node' ]);
grunt.registerTask('auto-test', [ 'jasmine_node', 'watch:test' ]);
grunt.registerTask('test', [ 'mochaTest' ]);
grunt.registerTask('auto-test', [ 'test', 'watch:test' ]);
grunt.registerTask('default', [ 'jshint', 'test', 'jsdoc' ]);
};
'use strict';
module.exports.Reader = require('./lib/Reader');
module.exports.Writer = require('./lib/Writer');
module.exports.Reader = require('./lib/reader');
module.exports.Writer = require('./lib/writer');

@@ -13,3 +13,3 @@ 'use strict';

function hasLowerCaseAlias(pkg) {
return pkg.xml && pkg.xml.alias === 'lowerCase';
return pkg.xml && pkg.xml.tagAlias === 'lowerCase';
}

@@ -36,2 +36,4 @@

'xsi': 'http://www.w3.org/2001/XMLSchema-instance'
};
};
module.exports.XSI_TYPE = 'xsi:type';
{
"name": "moddle-xml",
"version": "0.4.1",
"version": "0.5.0",
"description": "XML import/export for documents described with moddle",

@@ -41,14 +41,15 @@ "directories": {

"devDependencies": {
"chai": "^1.10.0",
"grunt": "~0.4.2",
"grunt-contrib-watch": "~0.5.0",
"grunt-contrib-connect": "~0.6.0",
"grunt-contrib-jshint": "~0.7.2",
"grunt-contrib-watch": "~0.5.0",
"grunt-jsdoc": "~0.5.1",
"grunt-jasmine-node": "https://github.com/Nikku/grunt-jasmine-node/archive/v0.2.1-jasmine-node-upgrade.tar.gz",
"grunt-mocha-test": "^0.12.4",
"grunt-release": "^0.7.0",
"load-grunt-tasks": "~0.3.0",
"jsondiffpatch": "~0.1.4"
"mocha": "^2.1.0"
},
"dependencies": {
"moddle": "~0.4.0",
"moddle": "~0.5.0",
"lodash": "~2.4.0",

@@ -55,0 +56,0 @@ "sax": "~0.6.0",

@@ -6,3 +6,3 @@ {

"xml" : {
"alias": "lowerCase"
"tagAlias": "lowerCase"
},

@@ -14,3 +14,3 @@ "types": [

{ "name": "bounds", "serialize": "xsi:type", "type": "Rect" },
{ "name": "otherBounds", "type": "do:Rect", "serialize": "xsi:type", "isMany": true }
{ "name": "otherBounds", "type": "Rect", "serialize": "xsi:type", "isMany": true }
]

@@ -17,0 +17,0 @@ },

@@ -6,3 +6,3 @@ {

"xml" : {
"alias": "lowerCase"
"tagAlias": "lowerCase"
},

@@ -9,0 +9,0 @@ "types": [

@@ -6,3 +6,3 @@ {

"xml" : {
"alias": "lowerCase"
"tagAlias": "lowerCase"
},

@@ -9,0 +9,0 @@ "types": [

@@ -6,3 +6,3 @@ {

"xml" : {
"alias": "lowerCase"
"tagAlias": "lowerCase"
},

@@ -56,2 +56,13 @@ "types": [

{
"name": "WithBody",
"superClass": [ "Base" ],
"properties": [
{
"name": "someBody",
"serialize": "xsi:type",
"type": "SimpleBody"
}
]
},
{
"name": "SimpleBodyProperties",

@@ -58,0 +69,0 @@ "superClass": [ "Base" ],

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