Commit Graph

14 Commits

Author SHA1 Message Date
Manfred Steiner b66da2c76e rebase to branch next, fixing issue #434 (can delete attributes) 2019-08-26 08:22:26 +02:00
Philipp Tusch 0e91a06137 Remove useless console.log 2016-10-18 22:32:50 -05:00
Patrick Mooney cefd6f484d Move Change getters/setters to prototype 2015-10-31 09:50:23 -05:00
Patrick Mooney 59bebe537b Make Attribute detection more strict
The old Attribute.isAttribute would allow objects lacking the toBer
method to be attached to Change objects.  This would result in errors
during serialization.

With the stricter Attribute detection, it's necessary to convert
Attribute-like objects containing type (string) and vals (array)
properties into real Attribute objects.  This precise detection is
necessary to avoid falling back to the object-keys-into-attributes

That other logic which will turn a well structured Attribute-like object
such as this:

  { type: 'valid', vals: ['something'] }

... and turn it into something broken like this:

  [
    { type: 'type', vals: ['valid'] },
    { type: 'vals', vals: ['something'] }
  ]
2014-07-17 13:33:02 -05:00
Patrick Mooney a80cedd870 Add Change.apply method for object modification 2014-07-16 14:53:13 -05:00
Patrick Mooney 1d2cf79bff Add ducktyping Change.isChange method
Similar to Filter.isFilter, this should help mitigate instanceof issues.
2014-06-24 14:14:17 -05:00
Mark Cavage afeb354eac Initial setup for 0.5 (use eng.git layout) 2012-02-18 08:15:52 +00:00
Mark Cavage 920b9e00f4 GH-31 allow changing multiple fields in a single ldap_modify with better object sytnax 2011-11-08 13:31:00 -08:00
Mark Cavage d2d99d14a6 Change constructor to match docs 2011-09-23 08:48:17 -07:00
Mark Cavage dda17ef190 lots of fixes. committing the last few days of work. (my commit messages are useless right now) 2011-08-12 16:37:47 -07:00
Mark Cavage 05be0dd966 Sorted attributes/changes in add/modify requests 2011-08-08 10:03:00 -05:00
Mark Cavage 7706cd5e4e Refactoring server into something less sucky 2011-08-06 15:44:26 -05:00
Mark Cavage 1042048aaf Allow plain JS objects in client APIs where it makes sense 2011-08-04 14:25:12 -07:00
Mark Cavage ca1443f102 Initial working client/server version 2011-08-04 13:32:01 -07:00