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

can-reflect

Package Overview
Dependencies
Maintainers
13
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-reflect - npm Package Compare versions

Comparing version 1.17.9 to 1.17.10

4

package.json
{
"name": "can-reflect",
"version": "1.17.9",
"version": "1.17.10",
"description": "reflection on unknown data types",

@@ -47,4 +47,4 @@ "homepage": "http://canjs.com",

"test-saucelabs": "0.0.6",
"testee": "^0.8.0"
"testee": "^0.9.0"
}
}
# can-reflect
[![Sauce Test Status](https://saucelabs.com/browser-matrix/can-reflect.svg)](https://saucelabs.com/u/can-reflect)
[![Join the chat at https://gitter.im/canjs/canjs](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/canjs/canjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/canjs/can-reflect/blob/master/LICENSE.md)
[![Join our Slack](https://img.shields.io/badge/slack-join%20chat-611f69.svg)](https://www.bitovi.com/community/slack?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join our Discourse](https://img.shields.io/discourse/https/forums.bitovi.com/posts.svg)](https://forums.bitovi.com/?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/canjs/can-reflect/blob/master/LICENSE.md)
[![npm version](https://badge.fury.io/js/can-reflect.svg)](https://www.npmjs.com/package/can-reflect)

@@ -11,2 +10,4 @@ [![Travis build status](https://travis-ci.org/canjs/can-reflect.svg?branch=master)](https://travis-ci.org/canjs/can-reflect)

[![Sauce Test Status](https://saucelabs.com/browser-matrix/can-reflect.svg)](https://saucelabs.com/u/can-reflect)
Reflect allows you to reflection on unknown data types.

@@ -29,2 +30,1 @@

[MIT](https://github.com/canjs/can-reflect/blob/master/LICENSE.md)

@@ -63,2 +63,19 @@ var QUnit = require('steal-qunit');

QUnit.test('cloneKeySort with dates', function (assert) {
var obj = {
"z": new Date(1999000),
"a": new Date(2001000)
};
var same = {
"a": new Date(2001000),
"z": new Date(1999000)
};
var sorted = schemaReflections.cloneKeySort(obj);
assert.equal( JSON.stringify( sorted ), JSON.stringify( same ) );
assert.equal( sorted.a.getTime(), 2001000 );
});
QUnit.test("getIdentity", function(){

@@ -65,0 +82,0 @@

@@ -16,3 +16,3 @@ "use strict";

function sort(obj) {
if(typeReflections.isPrimitive(obj)) {
if(typeReflections.isPrimitive(obj) || obj instanceof Date) {
return obj;

@@ -19,0 +19,0 @@ }

@@ -34,5 +34,5 @@ 'use strict';

browserName: 'Safari',
'appium-version': '1.6.3',
'appium-version': '1.9.1',
platformName: 'iOS',
platformVersion: '10.0',
platformVersion: '10.3',
deviceName: 'iPhone 7 Simulator'

@@ -39,0 +39,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