rtts-assert
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -1,4 +0,7 @@ | ||
define([], function() { | ||
define(['traceur/bin/traceur-runtime'], function($__0) { | ||
"use strict"; | ||
var __moduleName = "assert"; | ||
if (!$__0 || !$__0.__esModule) | ||
$__0 = {'default': $__0}; | ||
$__0; | ||
var POSITION_NAME = ['', '1st', '2nd', '3rd']; | ||
@@ -12,4 +15,4 @@ function argPositionName(i) { | ||
for (var params = [], | ||
$__2 = 0; $__2 < arguments.length; $__2++) | ||
params[$__2] = arguments[$__2]; | ||
$__3 = 0; $__3 < arguments.length; $__3++) | ||
params[$__3] = arguments[$__3]; | ||
var actual, | ||
@@ -135,12 +138,12 @@ type; | ||
for (var types = [], | ||
$__3 = 0; $__3 < arguments.length; $__3++) | ||
types[$__3] = arguments[$__3]; | ||
$__4 = 0; $__4 < arguments.length; $__4++) | ||
types[$__4] = arguments[$__4]; | ||
return assert.define('array of ' + types.map(prettyPrint).join('/'), function(value) { | ||
var $__5; | ||
var $__6; | ||
if (assert(value).is(Array)) { | ||
for (var $__0 = value[Symbol.iterator](), | ||
$__1; !($__1 = $__0.next()).done; ) { | ||
var item = $__1.value; | ||
for (var $__1 = value[Symbol.iterator](), | ||
$__2; !($__2 = $__1.next()).done; ) { | ||
var item = $__2.value; | ||
{ | ||
($__5 = assert(item)).is.apply($__5, $traceurRuntime.toObject(types)); | ||
($__6 = assert(item)).is.apply($__6, $traceurRuntime.toObject(types)); | ||
} | ||
@@ -155,5 +158,5 @@ } | ||
if (assert(value).is(Object)) { | ||
for (var $__0 = properties[Symbol.iterator](), | ||
$__1; !($__1 = $__0.next()).done; ) { | ||
var property = $__1.value; | ||
for (var $__1 = properties[Symbol.iterator](), | ||
$__2; !($__2 = $__1.next()).done; ) { | ||
var property = $__2.value; | ||
{ | ||
@@ -183,11 +186,11 @@ assert(value[property]).is(definition[property]); | ||
return {is: function is() { | ||
var $__5; | ||
var $__6; | ||
for (var types = [], | ||
$__4 = 0; $__4 < arguments.length; $__4++) | ||
types[$__4] = arguments[$__4]; | ||
$__5 = 0; $__5 < arguments.length; $__5++) | ||
types[$__5] = arguments[$__5]; | ||
var allErrors = []; | ||
var errors; | ||
for (var $__0 = types[Symbol.iterator](), | ||
$__1; !($__1 = $__0.next()).done; ) { | ||
var type = $__1.value; | ||
for (var $__1 = types[Symbol.iterator](), | ||
$__2; !($__2 = $__1.next()).done; ) { | ||
var type = $__2.value; | ||
{ | ||
@@ -204,3 +207,3 @@ errors = []; | ||
} | ||
($__5 = currentStack).push.apply($__5, $traceurRuntime.toObject(allErrors)); | ||
($__6 = currentStack).push.apply($__6, $traceurRuntime.toObject(allErrors)); | ||
return false; | ||
@@ -207,0 +210,0 @@ }}; |
"use strict"; | ||
var __moduleName = "assert"; | ||
require('traceur/bin/traceur-runtime'); | ||
var POSITION_NAME = ['', '1st', '2nd', '3rd']; | ||
@@ -4,0 +5,0 @@ function argPositionName(i) { |
@@ -0,1 +1,2 @@ | ||
import 'traceur/bin/traceur-runtime'; | ||
var POSITION_NAME = ['', '1st', '2nd', '3rd']; | ||
@@ -2,0 +3,0 @@ function argPositionName(i) { |
{ | ||
"name": "rtts-assert", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A type assertion library for Traceur.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/assert.js", |
@@ -7,2 +7,4 @@ // TODO(vojta): | ||
import 'traceur/bin/traceur-runtime'; | ||
var POSITION_NAME = ['', '1st', '2nd', '3rd']; | ||
@@ -9,0 +11,0 @@ function argPositionName(i) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54107
1248