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

fulcrum-core

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fulcrum-core - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

13

dist/values/text-value.js

@@ -11,2 +11,6 @@ 'use strict';

var _numberUtils = require('../utils/number-utils');
var _numberUtils2 = _interopRequireDefault(_numberUtils);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -41,2 +45,11 @@

}
}, {
key: 'displayValue',
get: function get() {
if (this.element.isNumeric && this.textValue != null) {
return _numberUtils2.default.localizedStringFromMachineString(this.textValue, this.element.isDecimalFormat);
}
return this.textValue || '';
}
}]);

@@ -43,0 +56,0 @@

2

package.json
{
"name": "fulcrum-core",
"version": "0.6.2",
"version": "0.6.3",
"description": "Fulcrum Core",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/fulcrumapp/fulcrum-core",

import TextualValue from './textual-value';
import NumberUtils from '../utils/number-utils';

@@ -12,2 +13,10 @@ export default class TextValue extends TextualValue {

}
get displayValue() {
if (this.element.isNumeric && this.textValue != null) {
return NumberUtils.localizedStringFromMachineString(this.textValue, this.element.isDecimalFormat);
}
return this.textValue || '';
}
}

@@ -128,5 +128,5 @@ import setup from '../helper';

value.toJSON().should.eql('13.2');
value.toJSON().should.eql('13.2000');
value.length.should.eql(4);
value.length.should.eql(7);

@@ -190,6 +190,6 @@ value.columnValue.should.eql(13.2);

value.textValue.should.eql('13.2');
value.textValue.should.eql('13.2000');
// conditions
value.isEqual('13.2').should.eql(true);
value.isEqual('13.2000').should.eql(true);
value.isEqual('13.20').should.eql(false); // TODO(zhm) seems wrong

@@ -201,3 +201,3 @@ value.isEqual('12').should.eql(false);

value.contains('13.2').should.eql(true);
value.contains('13.20').should.eql(false);
value.contains('13.200000').should.eql(false);
value.contains('a').should.eql(false);

@@ -208,3 +208,3 @@ value.contains(null).should.eql(false);

value.startsWith('13.2').should.eql(true);
value.startsWith('13.20').should.eql(false);
value.startsWith('13.200000').should.eql(false);
value.startsWith('a').should.eql(false);

@@ -211,0 +211,0 @@ value.startsWith(null).should.eql(false);

@@ -1,1 +0,153 @@

{"record":{"status":"complete","version":2,"id":"20eda76b-90aa-4a6b-8a69-a5dca3db4d15","created_at":"2015-12-03T02:16:06Z","updated_at":"2015-12-03T19:06:16Z","client_created_at":"2015-12-03T02:14:50Z","client_updated_at":"2015-12-03T19:06:12Z","created_by":"Zac McCormick","created_by_id":"4f7e6dd114414027bd000032","updated_by":"Zac McCormick","updated_by_id":"4f7e6dd114414027bd000032","form_id":"18300cfb-20e3-4e8b-9aef-878636b09ac4","project_id":null,"assigned_to":null,"assigned_to_id":null,"form_values":{"8530":[{"caption":null,"audio_id":"e5539685-1eca-4dfd-baf7-fd6f1021ca7b"}],"4412":{"other_values":[],"choice_values":["Linux","Ubuntu","11.1"]},"7b1f":"Inline name","ce49":"1337.37","31e8":{"other_values":[],"choice_values":["operations_critical"]},"93bd":{"signature_id":"24fa474e-311f-4b72-9617-7a3ed0c4c8a7","timestamp":"2015-12-03T02:15:06"},"ae75":"Test","0755":"1969-12-31","f464":{"other_values":["Another"],"choice_values":["24","38"]},"b410":"Drill down name","a861":"12","e840":[{"caption":null,"photo_id":"2b1fa188-39f6-4540-8bcd-9c6641e7748a"}],"cfe6":"13.2","849a":"EC1532 014123","3a9c":"yes","8fd4":"2015-12-02","fe3c":{"sub_admin_area":"Pinellas","suite":null,"locality":"Saint Petersburg","postal_code":"33714","admin_area":"FL","country":"US","thoroughfare":"55th Ave N","sub_thoroughfare":"4261"},"dfd5":"21:14","857d":"1337","cff5":[{"id":"4b7b79e3-6748-4952-9d05-d79f398eed26","form_values":{"bc81":"100"},"updated_at":"1449108890","geometry":{"type":"Point","coordinates":[-82.6910743956293,27.822308060739]},"created_at":"1449108883","version":2,"created_by_id":"4f7e6dd114414027bd000032","updated_by_id":"4f7e6dd114414027bd000032"},{"id":"78acb22d-32fa-44f5-a1f0-57e587440530","form_values":{"bc81":"101"},"updated_at":"1449108895","geometry":{"type":"Point","coordinates":[-82.6910743956293,27.822308060739]},"created_at":"1449108891","version":2,"created_by_id":"4f7e6dd114414027bd000032","updated_by_id":"4f7e6dd114414027bd000032"},{"id":"f1731544-ef6e-4c0b-aa4a-4b1d11d6d354","form_values":{"bc81":"103"},"updated_at":"1449108900","geometry":{"type":"Point","coordinates":[-82.6910743956293,27.822308060739]},"created_at":"1449108897","version":2,"created_by_id":"4f7e6dd114414027bd000032","updated_by_id":"4f7e6dd114414027bd000032"}],"01ed":"no","38b1":[{"caption":null,"video_id":"b7c7fd6f-37bb-4e62-acb5-c5db638bfc4e"}],"e1f6":"text value"},"latitude":27.7695993399641,"longitude":-82.6439975202084,"altitude":15.7674179077148,"speed":-1.0,"course":-1.0,"horizontal_accuracy":88.0370385747084,"vertical_accuracy":10.0}}
{
"record": {
"altitude": 15.7674179077148,
"assigned_to": null,
"assigned_to_id": null,
"client_created_at": "2015-12-03T02:14:50Z",
"client_updated_at": "2015-12-03T19:06:12Z",
"course": -1.0,
"created_at": "2015-12-03T02:16:06Z",
"created_by": "Zac McCormick",
"created_by_id": "4f7e6dd114414027bd000032",
"form_id": "18300cfb-20e3-4e8b-9aef-878636b09ac4",
"form_values": {
"01ed": "no",
"0755": "1969-12-31",
"31e8": {
"choice_values": [
"operations_critical"
],
"other_values": []
},
"38b1": [
{
"caption": null,
"video_id": "b7c7fd6f-37bb-4e62-acb5-c5db638bfc4e"
}
],
"3a9c": "yes",
"4412": {
"choice_values": [
"Linux",
"Ubuntu",
"11.1"
],
"other_values": []
},
"7b1f": "Inline name",
"849a": "EC1532 014123",
"8530": [
{
"audio_id": "e5539685-1eca-4dfd-baf7-fd6f1021ca7b",
"caption": null
}
],
"857d": "1337",
"8fd4": "2015-12-02",
"93bd": {
"signature_id": "24fa474e-311f-4b72-9617-7a3ed0c4c8a7",
"timestamp": "2015-12-03T02:15:06"
},
"a861": "12",
"ae75": "Test",
"b410": "Drill down name",
"ce49": "1337.37",
"cfe6": "13.2000",
"cff5": [
{
"created_at": "1449108883",
"created_by_id": "4f7e6dd114414027bd000032",
"form_values": {
"bc81": "100"
},
"geometry": {
"coordinates": [
-82.6910743956293,
27.822308060739
],
"type": "Point"
},
"id": "4b7b79e3-6748-4952-9d05-d79f398eed26",
"updated_at": "1449108890",
"updated_by_id": "4f7e6dd114414027bd000032",
"version": 2
},
{
"created_at": "1449108891",
"created_by_id": "4f7e6dd114414027bd000032",
"form_values": {
"bc81": "101"
},
"geometry": {
"coordinates": [
-82.6910743956293,
27.822308060739
],
"type": "Point"
},
"id": "78acb22d-32fa-44f5-a1f0-57e587440530",
"updated_at": "1449108895",
"updated_by_id": "4f7e6dd114414027bd000032",
"version": 2
},
{
"created_at": "1449108897",
"created_by_id": "4f7e6dd114414027bd000032",
"form_values": {
"bc81": "103"
},
"geometry": {
"coordinates": [
-82.6910743956293,
27.822308060739
],
"type": "Point"
},
"id": "f1731544-ef6e-4c0b-aa4a-4b1d11d6d354",
"updated_at": "1449108900",
"updated_by_id": "4f7e6dd114414027bd000032",
"version": 2
}
],
"dfd5": "21:14",
"e1f6": "text value",
"e840": [
{
"caption": null,
"photo_id": "2b1fa188-39f6-4540-8bcd-9c6641e7748a"
}
],
"f464": {
"choice_values": [
"24",
"38"
],
"other_values": [
"Another"
]
},
"fe3c": {
"admin_area": "FL",
"country": "US",
"locality": "Saint Petersburg",
"postal_code": "33714",
"sub_admin_area": "Pinellas",
"sub_thoroughfare": "4261",
"suite": null,
"thoroughfare": "55th Ave N"
}
},
"horizontal_accuracy": 88.0370385747084,
"id": "20eda76b-90aa-4a6b-8a69-a5dca3db4d15",
"latitude": 27.7695993399641,
"longitude": -82.6439975202084,
"project_id": null,
"speed": -1.0,
"status": "complete",
"updated_at": "2015-12-03T19:06:16Z",
"updated_by": "Zac McCormick",
"updated_by_id": "4f7e6dd114414027bd000032",
"version": 2,
"vertical_accuracy": 10.0
}
}

Sorry, the diff of this file is not supported yet

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