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

enketo-core

Package Overview
Dependencies
Maintainers
1
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enketo-core - npm Package Compare versions

Comparing version 4.4.2 to 4.4.3

5

CHANGELOG.md

@@ -6,2 +6,7 @@ Change Log

[4.4.3] - 2015-11-24
--------------------
##### Added
- Ability to obtain deprecatedID from model.
[4.4.2] - 2015-11-13

@@ -8,0 +13,0 @@ --------------------

8

package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://enketo.org",
"version": "4.4.2",
"version": "4.4.3",
"license": "Apache-2.0",

@@ -34,7 +34,7 @@ "os": [ "darwin", "linux" ],

"grunt-contrib-jshint": "0.x.x",
"grunt-contrib-uglify": "0.9.x",
"grunt-contrib-uglify": "0.11.x",
"grunt-contrib-watch": "0.x.x",
"grunt-jsbeautifier": "0.x.x",
"grunt-karma": "0.12.x",
"grunt-sass": "1.0.x",
"grunt-sass": "1.1.x",
"jasmine-core": "2.3.x",

@@ -57,3 +57,3 @@ "karma": "0.13.x",

"dependencies": {
"bootstrap-datepicker": "1.4.x",
"bootstrap-datepicker": "1.5.x",
"bootstrap-slider-basic": "3.2.x",

@@ -60,0 +60,0 @@ "bootstrap-timepicker": "0.2.x",

@@ -300,2 +300,11 @@ if ( typeof exports === 'object' && typeof exports.nodeName !== 'string' && typeof define !== 'function' ) {

/**
* Gets the deprecated ID
*
* @return {string} deprecatedID
*/
FormModel.prototype.getDeprecatedID = function() {
return this.node( '/*/meta/deprecatedID' ).getVal()[ 0 ] || "";
};
/**
* Gets the instance Name

@@ -302,0 +311,0 @@ *

@@ -324,2 +324,16 @@ var Model = require( '../../src/js/Form-model' );

describe( 'DeprecatedID value getter', function() {
it( 'returns "" if deprecatedID node does not exist', function() {
var model = new Model( '<model><instance><data></data></instance></model>' );
model.init();
expect( model.getDeprecatedID() ).toEqual( '' );
} );
it( 'returns value of deprecatedID node', function() {
var model = new Model( '<model><instance><data><meta><deprecatedID>a</deprecatedID></data></instance></model>' );
model.init();
expect( model.getDeprecatedID() ).toEqual( 'a' );
} );
} );
describe( 'XPath Evaluator (see github.com/MartijnR/xpathjs_javarosa for comprehensive tests!)', function() {

@@ -326,0 +340,0 @@ var i, t = [

Sorry, the diff of this file is not supported yet

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