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

can-stache-key

Package Overview
Dependencies
Maintainers
7
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-stache-key - npm Package Compare versions

Comparing version 1.0.0-pre.13 to 1.0.0-pre.14

13

can-stache-key-test.js

@@ -244,15 +244,2 @@ var observeReader = require("can-stache-key");

testHelpers.dev.devOnlyTest("a warning is displayed when using @", function() {
var teardown = testHelpers.dev.willWarn("functions are no longer called by default so @ is unnecessary in '@func'.");
var func = function() {
QUnit.ok(false, "method called");
};
var data = { func: func };
var reads = observeReader.reads("@func");
observeReader.read(data, reads);
QUnit.equal(teardown(), 1, "warning displayed");
});
testHelpers.dev.devOnlyTest("a warning is given for `callMethodsOnObservables: true`", function() {

@@ -259,0 +246,0 @@ var teardown = testHelpers.dev.willWarn("can-stache-key: read() called with `callMethodsOnObservables: true`.");

@@ -159,11 +159,2 @@ var Observation = require('can-observation');

read: function(value, i, reads, options, state, prev){
if( isAt(i, reads) ) {
dev.warn(
(options.filename ? options.filename + ':' : '') +
(options.lineNumber ? options.lineNumber + ': ' : '') +
"functions are no longer called by default so @ is unnecessary in '" +
"@" + reads[0].key + "'."
);
}
if(options.callMethodsOnObservables && canReflect.isObservableLike(prev) && canReflect.isMapLike(prev)) {

@@ -170,0 +161,0 @@ dev.warn("can-stache-key: read() called with `callMethodsOnObservables: true`.");

2

package.json
{
"name": "can-stache-key",
"version": "1.0.0-pre.13",
"version": "1.0.0-pre.14",
"description": "Read and write keys on a value",

@@ -5,0 +5,0 @@ "homepage": "https://canjs.com",

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